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.

18 modelsOpenAI- & Anthropic-compatiblePay-as-you-go
ModelTierContextPrice in / out (1M)
Grok 2 VisionPaid$3.12 / $15.57View
Grok 3Paid$0.45 / $2.25View
Grok 3 DeepsearchPaid$0.42 / $2.13View
Grok 3 FastPaid$7.77 / $38.88View
Grok 3 MiniPaid$0.06 / $0.12View
Grok 3 Mini FastPaid$0.93 / $6.21View
Grok 3 ReasonerPaid$0.42 / $2.13View
Grok 4Paid$0.70 / $1.50View
Grok 4 FastPaid$0.15 / $0.38View
Grok 4.1 FastPaid2M$0.15 / $0.38View
Grok 4.1 Fast Non ReasoningPaid2M$0.18 / $0.18View
Grok 4.1 Fast ReasoningPaid2M$0.50 / $0.50View
Grok 4.2Paid$1.47 / $4.41View
Grok 4.20 0309Paid$3.12 / $9.33View
Grok 4.20 Multi AgentPaid$3.12 / $9.33View
Grok 4.3Paid$0.27 / $0.54View
Grok Code Fast 1Paid$0.30 / $2.34View
Grok Imagine ImagePaidSee detailsView

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.
Create a free accountBrowse all models