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.
31 modelsOpenAI- & Anthropic-compatiblePay-as-you-go
| Model | Tier | Context | Price in / out (1M) | |
|---|---|---|---|---|
| Grok 2 Vision | Paid | — | $2.10 / $10.50 | View |
| Grok 3 | Paid | — | $0.66 / $3.30 | View |
| Grok 3 Deepersearch | Paid | — | $0.57 / $2.89 | View |
| Grok 3 Deepsearch | Paid | — | $0.57 / $2.89 | View |
| Grok 3 Fast | Paid | — | $4.74 / $23.70 | View |
| Grok 3 Mini | Paid | — | $0.06 / $0.12 | View |
| Grok 3 Mini Fast | Paid | — | $0.63 / $4.20 | View |
| Grok 3 Reasoner | Paid | — | $0.57 / $2.89 | View |
| Grok 4 | Paid | — | $1.64 / $8.22 | View |
| Grok 4 | Paid | — | $3.15 / $15.75 | View |
| Grok 4 Fast | Paid | — | $0.02 / $0.05 | View |
| Grok 4.1 | Paid | — | $0.57 / $2.89 | View |
| Grok 4.1 Fast | Paid | 2M | $0.16 / $0.38 | View |
| Grok 4.1 Fast Non Reasoning | Paid | 2M | $0.18 / $0.18 | View |
| Grok 4.1 Fast Reasoning | Paid | 2M | $0.20 / $0.50 | View |
| Grok 4.2 | Paid | — | $2.65 / $3.04 | View |
| Grok 4.20 | Paid | — | $2.10 / $4.98 | View |
| Grok 4.20 Multi Agent | Paid | — | $1.31 / $2.63 | View |
| Grok 4.20 Multi Agent | Paid | — | $1.08 / $2.15 | View |
| Grok 4.20 Non Reasoning | Paid | — | $1.03 / $3.10 | View |
| Grok 4.20 Reasoning | Paid | — | $0.93 / $2.66 | View |
| Grok 4.3 | Paid | — | $1.31 / $2.63 | View |
| Grok 4.5 | Paid | — | $1.50 / $4.50 | View |
| Grok 4.6 | Paid | — | $2.10 / $6.30 | View |
| Grok Build 0.1 | Paid | — | $0.52 / $1.03 | View |
| Grok Code Fast 1 | Paid | — | $0.20 / $1.41 | View |
| Grok Imagine Image | Paid | — | See details | View |
| Grok Imagine Image 2.0 | Paid | — | See details | View |
| Grok Imagine Image Quality | Paid | — | See details | View |
| Grok Imagine Video | Paid | — | $18.30 / $7.80 | View |
| Grok Imagine Video 1.5 Preview | Paid | — | $18.30 / $7.80 | 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 31 Grok models, including Grok 2 Vision, Grok 3, Grok 3 Deepersearch. The catalog is refreshed as new models launch, so the list above is always current.