grok-4.2

Grok · Per Token

grok-4.2Available
ChatTool UseVisionReasoningJSON Mode
Context Window: 2.0MMax Output Tokens: 2.0M

Pricing

Official PriceLemonData Price
Input$2.00$1.40
Output$6.00$4.20

Parameters

Context Window
2.0M tokens
Max Output Tokens
2.0M tokens

Best For

Chat

Conversational AI, customer support, and Q&A

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, which is up to 30% off the official pricing.

What is grok-4.2 best for?

grok-4.2 excels at Chat, Tool Use, Vision. 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