xAI
xAI is an AI research lab founded by Elon Musk. The xAI API exposes Grok foundation models for chat, function calling, vision, voice, image generation, and video generation, alongside research outputs from the Colossus training supercluster.
xAI publishes 1 API contract, indexed on the APIs.io network as 17 APIs, including Api Key API, Chat API, Complete API, and 14 more. Tagged areas include Artificial Intelligence, LLM, Foundation Models, Grok, and Generative AI.
The xAI catalog on APIs.io includes 1 event-driven AsyncAPI specification and 1 Spectral governance ruleset.
xAI’s developer surface includes engineering blog, authentication, documentation, and 11 more developer resources.
What this lets a business do 2
Business capabilities this provider's published APIs can perform, derived from its own contracts. Browse all capabilities →
What people ask xAI 17
The questions people put to an LLM, and the jobs they hand an agent, that xAI's APIs answer — each one linked to the operation that does it. Generated by API Evangelist
Showing 12 of 17 APIs with phrasing — see every API.
Kin Score
Markets this provider is in provisional
The Kin Score Market layer reads a provider inside its market: its position, and how deep its integrations go. Depth is only comparable within a position. Provisional and unweighted: not part of the Kin Score or agent readiness.
Depth is one figure for the provider, the mean of its strongest integrations, so it repeats on every row. It differs by market only where an assurance register's own evidence applies.
| Market | Position | Depth (provider-wide) | Registered MCP server | Declares compatibility |
|---|---|---|---|---|
| Speech and Voice AI | covered | 47.3 | - | - |
| GitHub Marketplace (GitHub-native publisher layer) | covered | 47.3 | - | - |
| Jamstack Hosting Integrations (Vercel Marketplace and Netlify Integrations publishers) | covered | 47.3 | - | - |
| Obsidian Community Plugins (third-party APIs the Obsidian plugin ecosystem integrates) | covered | 47.3 | - | - |
| Hugging Face Hub Organisations | covered | 47.3 | - | - |
Registered MCP server and declares compatibility are report only — not weighted. Undeclared means we found nothing we can read, so there is no number: we never infer integrations.
Used by apps
10 of the reference apps in Applications, across 8 categories, integrate with this provider, read from each app's own code, build or integrations page.
- AnythingLLM AI Assistant & Chat
- LibreChat AI Assistant & Chat
- LobeChat AI Assistant & Chat
- Twenty CRM & Sales Pipeline
- Dropbox Cloud Storage & File Sync
- GitHub Code Hosting, CI/CD & DevOps
- Expensify Expense & Spend Management
- GrowthBook Feature Flags & Experimentation
- Reactive Resume Job Search
- jambonz VoIP, Phone & Contact Center
Standards implemented 5
Standards this provider implements or carries. De facto ones are profiled and measured by the API Commons; formal ones come from the standards directory and are linked by the provider's own tags. The evidence column says how each claim was established — not that it was made.
APIs 17
Individual APIs this provider publishes, each with its own machine-readable definition.
xAI Api Key API
The Api Key API from xAI — 1 operation(s) for api key.
xAI Chat API
The Chat API from xAI — 2 operation(s) for chat.
xAI Complete API
The Complete API from xAI — 1 operation(s) for complete.
xAI Completions API
The Completions API from xAI — 1 operation(s) for completions.
xAI Documents API
The Documents API from xAI — 1 operation(s) for documents.
xAI Embedding Models API
The Embedding Models API from xAI — 2 operation(s) for embedding models.
xAI Embeddings API
The Embeddings API from xAI — 1 operation(s) for embeddings.
xAI Files API
The Files API from xAI — 3 operation(s) for files.
xAI Image Generation Models API
The Image Generation Models API from xAI — 2 operation(s) for image generation models.
xAI Images API
The Images API from xAI — 2 operation(s) for images.
xAI Language Models API
The Language Models API from xAI — 2 operation(s) for language models.
xAI Messages API
The Messages API from xAI — 1 operation(s) for messages.
xAI Models API
The Models API from xAI — 2 operation(s) for models.
xAI Responses API
The Responses API from xAI — 2 operation(s) for responses.
xAI Tokenize Text API
The Tokenize Text API from xAI — 1 operation(s) for tokenize text.
xAI Video Generation Models API
The Video Generation Models API from xAI — 2 operation(s) for video generation models.
xAI Videos API
The Videos API from xAI — 4 operation(s) for videos.
Scroll for all 17
Open Collections 2
Open, tool-agnostic API collections (OpenAPI-derived and Bruno).
xAI's REST v1 API
OPEN COLLECTIONxAI's REST API
OPEN COLLECTIONMCP Servers 1
Model Context Protocol servers that expose these APIs to AI agents.
xAI API pricing
Not yet checked against xAI's own pricing page. Compiled by API Evangelist on 2026-05-08 from x.ai/; confirm before you rely on a figure.
| Plan | Price |
|---|---|
| Pay-as-you-go (API) usage | — |
| Batch API usage | — |
| Enterprise / Custom enterprise | — |
Plan details, limits and sources →
Rate limits
- Requests Per Minute (RPM): see provider documentation requests
- Tokens Per Minute (TPM): see provider documentation tokens
- Batch API: not counted against synchronous limits requests
Compiled by API Evangelist, not yet checked against xAI's documentation. Rate-limit details →
Pricing Plans 1
Published pricing tiers and plan structures.
xAI Plans Pricing
PLANSRate Limits 1
Documented rate limits and quota policies.
xAI Rate Limits
RATE LIMITSFinOps 1
Cost, billing, and metering signals for API financial operations.
xAI Finops
FINOPSEvent Specifications 1
AsyncAPI definitions for this provider's event-driven and streaming APIs.
xAI Realtime WebSocket APIs
AsyncAPI 2.6 description of xAI's documented WebSocket APIs: - Real-time Speech-to-Text (STT) streaming at wss://api.x.ai/v1/stt - Voice Agent (bidirectional speech-to-speech) a...
ASYNCAPISpectral Rules 1
Spectral governance rulesets for linting and validating these APIs. Counts are the severity each rule declares, not results of running them.
xAI — asyncapi rules
SPECTRALOpenAPI Overlays 17
Overlays applied on top of this provider's contracts. Each card says who wrote it: a document the provider publishes, or one API Evangelist derived or generated.
xAI Api Key Api Phrasing Overlay
GENERATEDxAI Chat Api Phrasing Overlay
GENERATEDxAI Complete Api Phrasing Overlay
GENERATEDxAI Completions Api Phrasing Overlay
GENERATEDxAI Documents Api Phrasing Overlay
GENERATEDxAI Embeddings Api Phrasing Overlay
GENERATEDxAI Files Api Phrasing Overlay
GENERATEDxAI Images Api Phrasing Overlay
GENERATEDxAI Language Models Api Phrasing Overlay
GENERATEDxAI Messages Api Phrasing Overlay
GENERATEDxAI Models Api Phrasing Overlay
GENERATEDxAI Responses Api Phrasing Overlay
GENERATEDxAI Tokenize Text Api Phrasing Overlay
GENERATEDxAI Videos Api Phrasing Overlay
GENERATEDScroll for all 17
Security Posture 4
Authentication, domain security, vulnerability disclosure, and trust-center signals.
Agentic Access (API Evangelist recommendations) 1
Recommended x-agentic-access execution contracts for AI agents.
Resources
Documentation 1
Reference material describing how the API behaves
Agent Surfaces 1
MCP servers, agent skills, and machine-readable catalogs
Build 1
SDKs, sample code, and the tooling you integrate with
Access & Security 4
Authentication, authorization, and security posture
Operate 1
Status, limits, changes, and where to get help
Commercial 2
Pricing, plans, and the legal terms of use
Company 3
The organization behind the API
Other 1
Properties that don't map to a standard resource type
Source (apis.yml)
xAI API — frequently asked questions
Does xAI have an API?
Yes. APIs.io lists 17 APIs from xAI, including xAI Api Key API, xAI Chat API and xAI Complete API, and 14 more.
Is there an OpenAPI specification for the xAI API?
Yes. APIs.io indexes 17 OpenAPI specifications for xAI, each linked for download from this page.
How do I authenticate with the xAI API?
xAI uses bearer-token authentication (http · 1 scheme). The details are profiled on APIs.io as xAI Authentication.
How much does the xAI API cost?
APIs.io lists 3 pricing plans for xAI, with each plan's price, limits and inclusions under Pricing on this page.
Does xAI have an MCP server?
Yes. APIs.io lists 1 MCP server for xAI: Remote MCP server at docs.x.ai over HTTP; 4 tools listed.
Is the xAI API ready for AI agents?
xAI has a Kin Score of 32.8 out of 100 (thin) and an Agent Readiness score of 39.4 (agent-ready), scored by API Evangelist on 2026-11-28.
Work with this as data
Every provider here is available over the APIs.io API and to AI agents over MCP.