Grok 4.6 API pricing
xAI's current flagship model for coding, agentic tasks, tool use and general knowledge work.
How much does Grok 4.6 API cost?
Grok 4.6 costs $2.00 per 1 million input tokens and $6.00 per 1 million output tokens through TokenGate.
| Condition | Input tokens / 1M | Cached input / 1M | Output tokens / 1M |
|---|---|---|---|
| Short context | $2.00 | $0.50 | $6.00 |
| Long context (≥ 200K) | $4.00 | $1.00 | $12.00 |
- Requests with 200K context or more use higher long-context pricing.
Estimate Grok 4.6 API cost
Estimated TokenGate cost, denominated in USDT.
Use Grok 4.6 with the OpenAI SDK
curl https://api.tokengate.com/v1/chat/completions \
-H "Authorization: Bearer $TOKENGATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-4.6","messages":[{"role":"user","content":"Hello"}]}'Change the model identifier to use another supported model through the same TokenGate integration.
Model specifications
- Provider
- xAI
- API model identifier
- grok-4.6
- Generation
- 4.6
- Provider lifecycle
- Active
- Context window
- 500K
- Input modalities
- Text, Image
- Output modalities
- Text
- Capabilities
- Function calling, Structured outputs, Vision, Reasoning, Tool use, Web search, Code execution
Best for
- Coding
- Agents
- Knowledge work
- Complex reasoning
Access Grok 4.6 through TokenGate
Use supported models through a single TokenGate integration.
- · One API integration
- · OpenAI-compatible interface
- · Payment in USDT
Frequently asked questions
Related models
GPT-5.6 Sol
OpenAI's GPT-5.6 flagship tier for complex professional work, coding and agentic workflows.
- Input / 1M
- $4.00
- Output / 1M
- $20.00
- Context
- 1.05M
- Generation
- 5.6
Streaming · Function calling · Structured outputs
GPT-5.6 Sol API pricingClaude Fable 5.1
Anthropic's most capable generally available model for ambitious coding, long-running agents, research and complex knowledge work.
- Input / 1M
- $10.00
- Output / 1M
- $50.00
- Context
- —
- Generation
- 5.1
Streaming · Function calling · Vision
Claude Fable 5.1 API pricingClaude Opus 5
Anthropic's Opus model for advanced coding, reasoning, long-running agents and professional knowledge work.
- Input / 1M
- $5.00
- Output / 1M
- $25.00
- Context
- —
- Generation
- 5
Streaming · Function calling · Vision
Claude Opus 5 API pricingTokenGate
