Today › AI API prices › Providers
xAI API prices: 31 models
Models31
Cheapest input$1.00
Median input$1.25all $0.55
Median output$2.50
Longest context1M
Cheapest first (3:1 input:output blend)
$1.25
$1.25
$1.25
$1.25
$1.56
$1.56
$1.56
$1.56
$1.56
$1.56
$1.56
$1.56
$1.56
$1.56
$1.56
- AI21 Labs
- Alibaba DashScope (Qwen)
- Anthropic
- Cerebras
- Cohere
- DeepSeek
- Fireworks AI
- Google Gemini
- Groq
- Mistral AI
- Moonshot AI
- OpenAI
- Perplexity
- Together AI
- Z.ai
- xAI
Prices come from the open-source LiteLLM price table (MIT), fetched daily, and may differ from the official pricing pages; always check the provider before you buy. US dollars.