Available now
Grok
xAI

grok-4.2

Text
Input$0.90/ 1M
Output$4.50/ 1M
Endpointsopenai

Capabilities

ReasoningTools

Quick stats

Context window256K

Performance

Loading performance data...
§ 01

Pricing

Input price$0.90 · 1M tokens
Output price$4.50 · 1M tokens
Compatible endpointsopenai
VendorxAI
§ 02

Call grok-4.2 from your code

Point any OpenAI-compatible SDK at UnoRouter and request the model by name. Replace YOUR_API_KEY with a real key from your dashboard.

bash
curl https://api.unorouter.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.2",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Sign in to auto-fill your API key

§ 03

Frequently asked questions

How much does grok-4.2 cost per 1M tokens?

Input is priced at $0.90 per 1M tokens, output at $4.50 per 1M tokens. Billing is per token, no rounding to batch sizes.

How do I access grok-4.2 via API?

Send requests to the UnoRouter /v1/chat/completions endpoint with model=grok-4.2. Any OpenAI-compatible client library works. Authentication uses a standard Bearer token.

§ 04

Similar models

Try grok-4.2 now

Create an API key and start making requests in under a minute.

View all models