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 2 VisionPaid$2.10 / $10.50View
Grok 3Paid$0.66 / $3.30View
Grok 3 DeepersearchPaid$0.57 / $2.89View
Grok 3 DeepsearchPaid$0.57 / $2.89View
Grok 3 FastPaid$4.74 / $23.70View
Grok 3 MiniPaid$0.06 / $0.12View
Grok 3 Mini FastPaid$0.63 / $4.20View
Grok 3 ReasonerPaid$0.57 / $2.89View
Grok 4Paid$1.64 / $8.22View
Grok 4Paid$3.15 / $15.75View
Grok 4 FastPaid$0.02 / $0.05View
Grok 4.1Paid$0.57 / $2.89View
Grok 4.1 FastPaid2M$0.16 / $0.38View
Grok 4.1 Fast Non ReasoningPaid2M$0.18 / $0.18View
Grok 4.1 Fast ReasoningPaid2M$0.20 / $0.50View
Grok 4.2Paid$2.65 / $3.04View
Grok 4.20Paid$2.10 / $4.98View
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.93 / $2.66View
Grok 4.3Paid$1.31 / $2.63View
Grok 4.5Paid$1.50 / $4.50View
Grok 4.6Paid$2.10 / $6.30View
Grok Build 0.1Paid$0.52 / $1.03View
Grok Code Fast 1Paid$0.20 / $1.41View
Grok Imagine ImagePaidSee detailsView
Grok Imagine Image 2.0PaidSee detailsView
Grok Imagine Image QualityPaidSee 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 2 Vision, Grok 3, Grok 3 Deepersearch. The catalog is refreshed as new models launch, so the list above is always current.
Create a free accountBrowse all models