xAI
grok-4-fast
Grok · Per Token
grok-4-fastAvailableChatVisionWeb SearchTool UseJSON ModeFastContext Window: 2000KMax Output Tokens: 16K
Pricing
| Official Price | LemonData Price | |
|---|---|---|
| Input | $0.20 | $0.14 |
| Output | $0.50 | $0.35 |
Parameters
Context Window
2.0M tokens
Max Output Tokens
16K tokens
Best For
Chat
Conversational AI, customer support, and Q&A
Vision
Image understanding, document analysis, and visual reasoning
Cost Calculator
1M
0.5M
Estimated Monthly Cost$0.32
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-4-fast",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'FAQ
How much does grok-4-fast cost?
On LemonData, grok-4-fast costs $0.1400 per 1M input tokens and $0.3500 per 1M output tokens, which is up to 30% off the official pricing.
What is grok-4-fast best for?
grok-4-fast excels at Chat, Vision, Web Search. Access it through LemonData's unified API with a single API key.
How to use grok-4-fast 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.