xAI API (Grok)
by xAI
Grok models via API with tool calling and configurable reasoning.
1. Price
No free tier on the pricing page. As reported on the official pricing page, checked Oct 22, 2026.
docs.x.ai/docs/models2. Commercial use
We have not read this API's terms yet. Until we do, check its terms of service for commercial use and whether it trains on what you send.
x.aiChecked against the maker's official pages, pricing on Oct 22, 2026. Tap a verdict to see its source.How we checkedReport an error
What xAI API (Grok) does
Grok models via API with tool calling and configurable reasoning.
- xAI API (Grok) is one of 42 APIs in the Model hosting and inference category on AgentGid.
- It is not among the 13 that can be started for free.
- 6 of them ship an official MCP server; xAI API (Grok) does not.
- Its official SDK is the 7th most downloaded in the category (917K a week).
xAI API (Grok) popularity
SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.
Pricing
None
No monthly plan
Grok 4.7: $2.00 per 1M input tokens, $6.00 per 1M output; 500k context
As reported on the official pricing page, checked Oct 22, 2026. Prices change: confirm before you buy. docs.x.ai/docs/models
Use it from an agent
4 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP no, status page no, AI assistants allowed yes
Checked Nov 13, 2026.
None found
pip install xai-sdkAlternatives
xAI API (Grok) This page
GPT models for text, vision, tool calling and agents, priced per 1M tokens.
Gemini models for text, image, audio and video input, priced per 1M tokens, with a free tier.
Mistral's open-weight and commercial models via API, priced per 1M tokens.
Fast inference API for open models such as GPT-OSS and Llama, priced per 1M tokens.
Get started
Install the official SDK.
pip install xai-sdkNo step-by-step start for xAI API (Grok) yet: we have not written its hand-checked card. Its official docs are linked at the top.