grok-code-fast
xai · chat model
Input
$0.2000 / 1M tokens
Output
$1.5000 / 1M tokens
Cached input
$0.0200 / 1M tokens
Context
256.0K
Pricing
| Item | Raw value (per token) | Normalized |
|---|---|---|
| Input | 2e-7 | $0.2000 / 1M tokens |
| Output | 0.0000015 | $1.5000 / 1M tokens |
| Cached input | 2e-8 | $0.0200 / 1M tokens |
| Embedding | 2e-7 | $0.2000 / 1M tokens |
Token limits
Context window
256.0K
Max input tokens
256.0K
Max output tokens
256.0K
Max tokens
256.0K
Capabilities
| Capability | Supported |
|---|---|
| Vision | No |
| Function calling | Yes |
| Parallel function calling | No |
| Tool choice | Yes |
| Prompt caching | Yes |
| Reasoning | Yes |
| Response schema | No |
| System messages | No |
| Audio input | No |
| Audio output | No |
| Web search | No |
| PDF input | No |
| Video input | No |
Similar models
Models with comparable pricing in the same mode (chat).
| Model | Provider | Input | Output | Context | Coding | Features |
|---|---|---|---|---|---|---|
| grok-code-fast-1 | azure_ai | $0.2000 / 1M tokens | $1.5000 / 1M tokens | 131.1K | N/A | Tools |
| grok-code-fast-1 | xai | $0.2000 / 1M tokens | $1.5000 / 1M tokens | 256.0K | N/A | Tools Cache Reasoning |
| grok-code-fast-1-0825 | xai | $0.2000 / 1M tokens | $1.5000 / 1M tokens | 256.0K | N/A | Tools Cache Reasoning |
| Qwen3-Next-80B-A3B-Instruct | Together AI | $0.1500 / 1M tokens | $1.5000 / 1M tokens | N/A | N/A | Tools |
| Qwen3-Next-80B-A3B-Thinking | Together AI | $0.1500 / 1M tokens | $1.5000 / 1M tokens | N/A | N/A | Tools |
| qwen3-next-80b-a3b-instruct | novita | $0.1500 / 1M tokens | $1.5000 / 1M tokens | 32.8K | N/A | Tools |
Sources
| Pricing source | LiteLLM model cost map |
| Synced at | 2026-05-27 |
| Manual review | Not reviewed |
Raw LiteLLM fields
{
"cache_read_input_token_cost": 2e-8,
"input_cost_per_token": 2e-7,
"litellm_provider": "xai",
"max_input_tokens": 256000,
"max_output_tokens": 256000,
"max_tokens": 256000,
"mode": "chat",
"output_cost_per_token": 0.0000015,
"source": "https://docs.x.ai/docs/models",
"supports_function_calling": true,
"supports_prompt_caching": true,
"supports_reasoning": true,
"supports_tool_choice": true
}