PromptPriceCalculate

xAI pricing

xAI API Pricing Calculator

Reasoning tokens and server-side tools can add billed usage.

Quick estimate

No API key needed. Pick a model, paste your question, choose the answer length, and get a close cost estimate.

$1.25/M input$2.5/M output1,000,000 ctxCache pricingBatchPriorityTool fees

3. How long will the AI answer be?

Your estimate will appear here.

Paste a prompt, choose an answer length, and calculate.

Active model pricing

ModelInput / 1MOutput / 1MCached / 1MNotes
Grok 4.3$1.25$2.5$0.2xAI general chat model seed.
Grok Build 0.1$1$2$0.2xAI coding-focused model seed.
How do I estimate xAI API cost?

Choose a xAI model, paste prompt text, optionally paste output text, and use advanced controls for cache, tier, region, and tools.

Does xAI pricing include more than tokens?

Reasoning tokens and server-side tools can add billed usage.