xAI
grok-code-fast-1
Grok · Per Token
grok-code-fast-1Available⚡Cache 90% offChatTool UseJSON ModeFastContext Window: 131KMax Output Tokens: 131K
Pricing
| Official Price | LemonData Price | |
|---|---|---|
| Input | $0.20 | $0.14 |
| Output | $1.50 | $1.05 |
| Cache Read | $0.02 | $0.02 |
Parameters
Context Window
131K tokens
Max Output Tokens
131K tokens
Best For
Chat
Conversational AI, customer support, and Q&A
Cost Calculator
1M
0.5M
Estimated Monthly Cost$0.67
API Code Example
POST/v1/chat/completions
curl https://api.lemondata.cc/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxx" \
-d '{
"model": "grok-code-fast-1",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'FAQ
How much does grok-code-fast-1 cost?
On LemonData, grok-code-fast-1 costs $0.1400 per 1M input tokens and $1.0500 per 1M output tokens, which is up to 30% off the official pricing.
What is grok-code-fast-1 best for?
grok-code-fast-1 excels at Chat, Tool Use, JSON Mode. Access it through LemonData's unified API with a single API key.
How to use grok-code-fast-1 API?
Get your API key from LemonData, set the base URL to api.lemondata.cc/v1, and use any OpenAI-compatible SDK. See the code examples above.