Skip to main content
This guide covers how to send xAI usage data to Fenra.

Grok API

xAI’s API follows the OpenAI format:

Reasoning Tokens

For Grok-3 and Grok-4 models with reasoning, include reasoning tokens:

Prompt Caching

xAI automatically caches prompt prefixes. Include cached tokens:

Multimodal Tokens

For vision and audio models, track separate token types:

Tool Usage

When using tools like web search, track tool invocations:
For Live Search, track sources used:

Supported Models

Fenra supports all xAI models. Available models include:

Next Steps