grok-4.2

Grok · Per Token

grok-4.2Available
Tool UseVisionReasoningJSON Mode
Context Window: 2MMax Output Tokens: 2M

Pricing

Official PriceLemonData PriceDiscount
Input$2.00$1.4030%
Output$6.00$4.2030%

Parameters

Context Window
2M tokens
Max Output Tokens
2M tokens

Best For

Vision

Image understanding, document analysis, and visual reasoning

Reasoning

Complex reasoning tasks, analytical work, and research

Cost Calculator

1M
0.5M
Estimated Monthly Cost$3.50

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

FAQ

How much does grok-4.2 cost?

On LemonData, grok-4.2 costs $1.4000 per 1M input tokens and $4.2000 per 1M output tokens, with model-specific platform pricing.

What is grok-4.2 best for?

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

How to use grok-4.2 API?

Get your API key from LemonData, then call https://api.lemondata.cc/v1/chat/completions using any compatible SDK. See the code examples above for detailed integration.

Related Models