Pay as you go
- Token-based billing with no monthly fee; Grok 4.7, 4.6, 4.5, 4.3 and 4.20 models; Batch API 20% off
- 按量计费,无年付折扣

Musk's xAI model interface provides Grok series calls, supports real-time information access, function calls, and image understanding, charges by token, can serve as a multi-vendor backup solution, has relatively simple documentation, and allows fast mode
Musk's xAI model interface provides Grok series calls, supports real-time information access, function calls, and image understanding, charges by token, can serve as a multi-vendor backup solution, has relatively simple documentation, and allows fast model version iterations.
Developers building on Grok models through the xAI API.
A playground lets you chat with models; the product itself is an API, not a chatbot.
File inputs are supported by some models and endpoints.
No image generation endpoint.
Vision models read images through the API.
Video generation is available through the Grok Imagine API.
No voice endpoints.
Web search is available through a dedicated endpoint.
Code execution or code models are available through the API.
Reasoning models are available through the API.
Agent frameworks and tool-calling are supported through the API.
Core product: a developer API with usage-based pricing.
Prices checked 11/25/2026
USD per 1M tokens
| Model / service | Input | Output | Cache read | Cache write |
|---|---|---|---|---|
| Grok 4.7 | $2.00 | $6.00 | $0.50 | — |
| Grok 4.6 | $2.00 | $6.00 | $0.50 | — |
| Grok 4.3 | $1.25 | $2.50 | $0.20 | — |
Grok 4.7 $2/$6 每百万 tokens;长上下文(≥200K)双倍计费;免费 API 档已于 2025 年取消 按 token 计费;Grok 4.7/4.6 $2.00/$6.00,Grok 4.3 $1.25/$2.50 每百万 tokens;提示 ≥200K tokens 时全量双倍计费;Batch API 8 折
The xAI API is a paid product with no free quota. Specific tiers and prices are based on the official website settlement page.
Adjust models, compare prices, and deploy fine-tuning yourself. Check the context length, concurrency limit, and whether invoices can be issued. It requires some learning curve to get started.
A single key calls hundreds of models, real-time price and availability comparison, supports automatic failover and cost-based routing, unified billing, suitable for multi-model access and backup solutions, and some smal…
Open-source model and dataset hub with inference APIs.
The most popular open-source machine learning library, complete with classic algorithms and unified APIs, covering everything from classification regression to clustering and dimensionality reduction, with abundant docum…
Baidu's open-source deep learning framework, free to use.
Tell people what it does. Our editors review each submission before publishing.

Social account login
No comments yet