grok-4

Grok · Per Token

grok-4AvailableCache 75% off
ChatVisionTool UseContext Window: 256KMax Output Tokens: 131K

Pricing

Official PriceLemonData Price
Input$3.00$2.10
Output$15.00$10.50
Cache Read$0.75$0.75

Parameters

Context Window
256K tokens
Max Output Tokens
131K 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$7.35

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",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'

FAQ

How much does grok-4 cost?

On LemonData, grok-4 costs $2.1000 per 1M input tokens and $10.5000 per 1M output tokens, which is up to 30% off the official pricing.

What is grok-4 best for?

grok-4 excels at Chat, Vision, Tool Use. Access it through LemonData's unified API with a single API key.

How to use grok-4 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.

Related Models