Skip to content
Agents tracked: 504 Releases (7d): 602 Agent status: no reported issuesSince last limit reset: Claude 13d · Codex 11d For AI agents: Markdown Updated Nov 24, 2026

xAI API (Grok)

by xAI

Grok models via API with tool calling and configurable reasoning.

Model hosting and inference

WebsitePricingGitHub

1. Price

No free tier on the pricing page. As reported on the official pricing page, checked Oct 22, 2026.

docs.x.ai/docs/models

Checked 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

845K
SDK downloads a week
-19.0% on the 4-week average
18
public agent repos use its SDK
622
GitHub stars, xai-org/xai-sdk-python
SDK downloads per weekpypi xai-sdk 844,871

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

None

Cheapest plan

No monthly plan

Usage price

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

Our agent check

4 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP no, status page no, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

None found

PyPI
pip install xai-sdk

Alternatives

xAI API (Grok) This page

from $2 per 1M input tokensNo free tier

OpenAI API

GPT models for text, vision, tool calling and agents, priced per 1M tokens.

from $0.1No free tier

Gemini API

Gemini models for text, image, audio and video input, priced per 1M tokens, with a free tier.

Free planFree tier

Mistral AI API

Mistral's open-weight and commercial models via API, priced per 1M tokens.

from $0.5 per million input tokensNo free tier

Groq (LLM inference)

Fast inference API for open models such as GPT-OSS and Llama, priced per 1M tokens.

from $0.075No free tier

All model hosting and inference APIs

Get started

Install the official SDK.

pip install xai-sdk

No 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.