Model families
Create a free accountBrowse all models
Grok API
xAI’s Grok family, including the fast and vision variants, through a single OpenAI-compatible endpoint. Compare every Grok version’s context, capabilities and price in one place.
18 modelsOpenAI- & Anthropic-compatiblePay-as-you-go
| Model | Tier | Context | Price in / out (1M) | |
|---|---|---|---|---|
| Grok 2 Vision | Paid | — | $3.12 / $15.57 | View |
| Grok 3 | Paid | — | $0.45 / $2.25 | View |
| Grok 3 Deepsearch | Paid | — | $0.42 / $2.13 | View |
| Grok 3 Fast | Paid | — | $7.77 / $38.88 | View |
| Grok 3 Mini | Paid | — | $0.06 / $0.12 | View |
| Grok 3 Mini Fast | Paid | — | $0.93 / $6.21 | View |
| Grok 3 Reasoner | Paid | — | $0.42 / $2.13 | View |
| Grok 4 | Paid | — | $0.70 / $1.50 | View |
| Grok 4 Fast | Paid | — | $0.15 / $0.38 | View |
| Grok 4.1 Fast | Paid | 2M | $0.15 / $0.38 | View |
| Grok 4.1 Fast Non Reasoning | Paid | 2M | $0.18 / $0.18 | View |
| Grok 4.1 Fast Reasoning | Paid | 2M | $0.50 / $0.50 | View |
| Grok 4.2 | Paid | — | $1.47 / $4.41 | View |
| Grok 4.20 0309 | Paid | — | $3.12 / $9.33 | View |
| Grok 4.20 Multi Agent | Paid | — | $3.12 / $9.33 | View |
| Grok 4.3 | Paid | — | $0.27 / $0.54 | View |
| Grok Code Fast 1 | Paid | — | $0.30 / $2.34 | View |
| Grok Imagine Image | Paid | — | See details | View |
Call Grok in three lines
Same code as the OpenAI SDK — change the base URL and key, pick a model id:
from openai import OpenAI
client = OpenAI(
base_url="https://api.airforce/v1",
api_key="YOUR_KEY",
)
resp = client.chat.completions.create(
model="grok-2-vision",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)Frequently asked questions
- How do I use Grok models through Api.Airforce?
- Point any OpenAI-compatible client at https://api.airforce/v1 and set the model id (for example "grok-2-vision"). Your existing OpenAI SDK works unchanged — you only swap the base URL and API key. The same key also speaks the Anthropic Messages API.
- Are Grok models free?
- Grok models are premium — you add credits (a monthly plan or a pay-as-you-go top-up) to call them. A free account can still use the open free-tier models from other families at $0.
- How much do Grok models cost on Api.Airforce?
- Billing is pay-as-you-go per token, at rates that sit well below the official APIs. The exact per-model input and output prices are listed in the table above and update automatically as upstream prices change.
- Which Grok models are available?
- Currently 18 Grok models, including Grok 2 Vision, Grok 3, Grok 3 Deepsearch. The catalog is refreshed as new models launch, so the list above is always current.