xAIPaidOperational
Grok 4.2
API model name: grok-4.2
Grok 4.2 is xAI's chat model, served on the Api.Airforce unified API. It is priced at $1.47 per million input tokens and $4.42 per million output tokens. That is below the provider's $1.25 official input rate. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Api.Airforce price vs. the provider's official rate.
Specifications
- Provider
- xAI
- Type
- chat model
What is Grok 4.2 used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
Grok 4.2 vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| Grok 4.2 | — | — | $1.47 | $4.42 |
| Grok 2 Vision | — | — | $3.12 | $15.57 |
| Grok 3 | — | — | $0.45 | $2.25 |
| Grok 3 Deepsearch | — | — | $0.42 | $2.13 |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
Grok 2 VisionxAI · $3.12 / 1MGrok 3xAI · $0.45 / 1MGrok 3 DeepsearchxAI · $0.42 / 1MGrok 3 FastxAI · $7.77 / 1MGrok 3 MinixAI · $0.06 / 1MGrok 3 Mini FastxAI · $0.93 / 1MGrok 3 ReasonerxAI · $0.42 / 1MGrok 4xAI · $0.70 / 1MGrok 4 FastxAI · $0.15 / 1MGrok 4.1 Fast Non ReasoningxAI · $0.18 / 1MGrok 4.1 Fast ReasoningxAI · $0.50 / 1MGrok 4.20xAI · $3.12 / 1M
Grok 4.2 — frequently asked questions
- How much does Grok 4.2 cost?
- Grok 4.2 is billed pay-as-you-go at $1.47 per 1M input tokens and $4.42 per 1M output tokens. There is no subscription — you only pay for what you use.
- What can Grok 4.2 do?
- Grok 4.2 is xAI's chat model, accessible through the Api.Airforce API.
- Is Grok 4.2 free to use?
- Grok 4.2 is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Grok 4.2 via the API?
- Grok 4.2 is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID grok-4.2 with your Api.Airforce API key.
- Who makes Grok 4.2?
- Grok 4.2 is xAI's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
Use Grok 4.2 via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass grok-4.2 as the model.
cURL
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.2",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="grok-4.2",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "grok-4.2",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);