Grok API
Grok API
Two Grok models are available through the same passthrough as the rest of the Text API, on all four request formats.
Both reason by default and report the thinking budget under usage.completion_tokens_details.reasoning_tokens, which is included in completion_tokens and billed as output.
OpenAI Chat Completions
POST https://api.beatapi.io/v1/chat/completions
Long context pricing
Grok switches to a higher rate once the prompt reaches 200,000 tokens, and the higher rate then applies to every token in that request — input, cached input, and output all double. Below the threshold the standard rate applies to the whole request.
This threshold is 200K, not the 272K used by the GPT-5.6 family. A prompt sized against the wrong one bills at double the expected rate.
Other SDK formats
OpenAI Responses
POST https://api.beatapi.io/v1/responses
Anthropic Messages
POST https://api.beatapi.io/v1/messages
Gemini-compatible content
POST https://api.beatapi.io/v1beta/models/{model}:generateContent
Authentication and availability
List the currently enabled text models before rollout:
The same API key and USD balance are shared across Text, Image, Video, Workflow, Effect, and Realtime APIs. Calls are metered from actual token usage; inspect request IDs, model, token totals, status, and settled amount in Dashboard usage logs.
Production checklist
- Budget output tokens for reasoning, not just for the answer.
- Watch the 200K prompt threshold — crossing it doubles the whole request.
- Keep API keys on trusted servers and redact them from logs.
- Log the response request ID for support and billing audits.
- Handle
401,402,429,502, and503as distinct operational cases.
Continue with media models
The same BeatAPI account can call GPT-5.6, Claude, Gemini, and the Image and Video APIs without adding another billing or authentication system.

