grok-code-fast-1
xai · chat model
grok-code-fast-1 is listed here as a chat model from xai. This page shows simple API pricing, token limits, and capability flags so you can compare it with similar options.
Input
$0.2000 / 1M tokens
Output
$1.5000 / 1M tokens
Cached input
$0.0200 / 1M tokens
Context
256.0K
Quick read
Best for
Use this page when you need a fast view of cost, context size, and supported features before testing the model in your own workload.
Things to verify
Always check the provider page for discounts, cache pricing, region rules, and any model limits that may not appear in public metadata.
Pricing
| Item | Price |
|---|---|
| Input | $0.2000 / 1M tokens |
| Output | $1.5000 / 1M tokens |
| Cached input | $0.0200 / 1M tokens |
| Embedding | $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 | — |
| Function calling | ✅ |
| Parallel function calling | — |
| Tool choice | ✅ |
| Prompt caching | ✅ |
| Reasoning | ✅ |
| Response schema | — |
| System messages | — |
| Audio input | — |
| Audio output | — |
| Web search | — |
| PDF input | — |
| Video input | — |
Sources
| Source links | |
| Pricing data | LiteLLM model cost map |
| Synced at | 2026-05-28 |
Docs
| Official docs |
Similar models
This list is ranked by overall similarity. Use filters to emphasize the lens that matters most for the replacement you are making.
Comparing from
| Model | Cost | Input shape | Features | Context | Why it is close |
|---|---|---|---|---|---|
| grok-code-fast-1 xai | In $0.2000 / 1M tokens Out $1.5000 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 256.0K | Current model Reference row |
| Model | Cost | Input shape | Features | Context | Why it is close |
|---|---|---|---|---|---|
| grok-code-fast xai | In $0.2000 / 1M tokens Out $1.5000 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 256.0K | Same provider Overall 100% |
| grok-code-fast-1-0825 xai | In $0.2000 / 1M tokens Out $1.5000 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 256.0K | Same provider Overall 100% |
| minimax-m2 OpenRouter | In $0.2550 / 1M tokens Out $1.0200 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 204.8K | Text covered Overall 92% |
| deepseek-chat-v3.1 OpenRouter | In $0.2000 / 1M tokens Out $0.8000 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 163.8K | Text covered Overall 89% |
| deepseek-v3.2 azure_ai | In $0.5800 / 1M tokens Out $1.6800 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 163.8K | Text covered Overall 88% |
| deepseek-v3.2-speciale azure_ai | In $0.5800 / 1M tokens Out $1.6800 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 163.8K | Text covered Overall 88% |
| glm-4.6 OpenRouter | In $0.4000 / 1M tokens Out $1.7500 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 131.0K | Text covered Overall 87% |
| deepseek-v3.2 OpenRouter | In $0.2800 / 1M tokens Out $0.4000 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 163.8K | Text covered Overall 84% |
| minimax-m2.5 OpenRouter | In $0.3000 / 1M tokens Out $1.1000 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 65.5K | Text covered Overall 83% |
| grok-3-mini xai | In $0.3000 / 1M tokens Out $0.5000 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 131.1K | Same provider Overall 77% |
| grok-3-mini-beta xai | In $0.3000 / 1M tokens Out $0.5000 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 131.1K | Same provider Overall 77% |
| grok-3-mini-latest xai | In $0.3000 / 1M tokens Out $0.5000 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 131.1K | Same provider Overall 77% |
| deepseek-r1-0528 OpenRouter | In $0.5000 / 1M tokens Out $2.1500 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 8.2K | Text covered Overall 77% |
| deepseek-r1 OpenRouter | In $0.5500 / 1M tokens Out $2.1900 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 8.2K | Text covered Overall 76% |
| grok-code-fast-1 azure_ai | In $0.2000 / 1M tokens Out $1.5000 / 1M tokens | text
Output: text | Function callingTool choice | 131.1K | Text covered Overall 76% |
| grok-3-mini-fast xai | In $0.6000 / 1M tokens Out $4.0000 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 131.1K | Same provider Overall 75% |
| qwen3-next-80b-a3b-instruct novita | In $0.1500 / 1M tokens Out $1.5000 / 1M tokens | text
Output: text | Function callingTool choice | 32.8K | Text covered Overall 67% |
| Qwen3-Next-80B-A3B-Instruct Together AI | In $0.1500 / 1M tokens Out $1.5000 / 1M tokens | text
Output: text | Function callingTool choice | N/A | Text covered Overall 66% |
| Qwen3-Next-80B-A3B-Thinking Together AI | In $0.1500 / 1M tokens Out $1.5000 / 1M tokens | text
Output: text | Function callingTool choice | N/A | Text covered Overall 66% |
No models match this filter.