Model families

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
ModelTierContextPrice in / out (1M)
Grok 1.5 VideoPaid——View
Grok 2 VisionPaid—$2.10 / $10.50View
Grok 3Paid—$3.50 / $17.50View
Grok 3 DeepersearchPaid—$0.57 / $2.89View
Grok 3 DeepsearchPaid—$0.57 / $2.89View
Grok 3 FastPaid—$7.77 / $38.85View
Grok 3 MiniPaid—$0.84 / $1.47View
Grok 3 Mini FastPaid—$0.63 / $4.20View
Grok 3 ReasonerPaid—$0.57 / $2.89View
Grok 4Paid—$0.74 / $1.58View
Grok 4Paid—$3.15 / $15.75View
Grok 4 FastPaid—$0.21 / $0.53View
Grok 4.1Paid—$0.57 / $2.89View
Grok 4.1 FastPaid2M$0.16 / $0.38View
Grok 4.2Paid—$1.08 / $2.15View
Grok 4.20Paid—$2.76 / $5.52View
Grok 4.20 Multi AgentPaid—$1.31 / $2.63View
Grok 4.20 Multi AgentPaid—$1.08 / $2.15View
Grok 4.20 Non ReasoningPaid—$1.03 / $3.10View
Grok 4.20 ReasoningPaid—$0.89 / $2.58View
Grok 4.3Paid—$0.27 / $0.54View
Grok 4.5Paid—$1.50 / $4.50View
Grok 4.6Paid—$2.10 / $6.30View
Grok 4.7Paid—$2.10 / $6.30View
Grok Build 0.1Paid—$0.52 / $1.03View
Grok Code Fast 1Paid—$0.33 / $2.31View
Grok Imagine ImagePaid—$228.38 / $228.38View
Grok Imagine Image 2.0Paid—See detailsView
Grok Imagine Image QualityPaid—See detailsView
Grok Imagine VideoPaid—$18.30 / $7.80View
Grok Imagine Video 1.5 PreviewPaid—$18.30 / $7.80View

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 1.5 Video, Grok 2 Vision, Grok 3. The catalog is refreshed as new models launch, so the list above is always current.
Create a free accountBrowse all models