xAI website screenshot

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 on the APIs.io network: v1 API. 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 authentication, documentation, and 10 more developer resources.

34.9/100 thin ▬ flat Agent 26/100 agent aware saas Full breakdown ↓
scored 2026-09-08 · rubric v0.20.0
AccessPaid
1 APIs
Artificial IntelligenceLLMFoundation ModelsGrokGenerative AI

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-09-08 · rubric v0.20.0
Create-or-Update Ergonomics applies to this provider. This API accepts writes, so it carries 10 points of the composite. It is scored from the published contracts themselves: whether a caller can create-or-update in one call, whether the write accepts a key the caller already holds, and whether the response says which branch ran. Without that, every write needs a search-and-branch in front of it, and the first time that check is skipped a duplicate record is created. Scored against the observed mean rather than raw — a provider at the catalog average is unchanged by this facet, not penalised by it.
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. Every facet and dimension name above is a link: it opens that measurement's own page — what it means, the exact checks that feed it, how the whole catalog distributes on it, and the providers at the top of it. This rating is computed from github.com/api-evangelist/xai: open an issue to ask a question, or submit a pull request to add artifacts. Submit an artifact on GitHub — free → Manage your own listing — the Influence plan, $499/mo →

APIs 1

Individual APIs this provider publishes, each with its own machine-readable definition.

xAI v1 API

The v1 API from xAI — 30 operation(s) for v1.

Open Collections 3

Open, tool-agnostic API collections (OpenAPI-derived and Bruno).

API Collection

OPEN COLLECTION

xAI's REST v1 API

OPEN COLLECTION

xAI's REST API

OPEN COLLECTION

Pricing Plans 1

Published pricing tiers and plan structures.

Xai Plans Pricing

3 plans

PLANS

Rate Limits 1

Documented rate limits and quota policies.

Xai Rate Limits

3 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Xai Finops

FINOPS

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

ASYNCAPI

Spectral Rules 1

Spectral governance rulesets for linting and validating these APIs.

xAI API Rules

8 rules · 1 errors 7 warnings

SPECTRAL

Security Posture 4

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Xai Authentication

http · 1 scheme

SECURITY

Xai Domain Security

TLSv1.3 · HSTS · DMARC

SECURITY

Xai Vulnerability Disclosure

security.txt · contact published

SECURITY

Xai Trust Center

HIPAA, GDPR

SECURITY

Agentic Access 1

Recommended x-agentic-access execution contracts for AI agents.

Xai Agentic Access

33 operations · 16 acting

33 operations · 16 acting

AGENTIC

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 2

The organization behind the API

Source (apis.yml)

apis.yml Raw ↑
aid: xai
url: https://raw.githubusercontent.com/api-evangelist/xai/refs/heads/main/apis.yml
name: xAI
kind: company
description: 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.
deliveryModel:
  model: saas
  open_source: false
  commercial: true
  callable_host: true
  label: Hosted service · you call their endpoint
  confidence: high
  source:
  - openapi
  - pricing
  generated: '2026-08-28'
  method: derived
accessModel:
  pricing: paid
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Paid
  confidence: medium
  source:
  - plans
  - authentication
  - security
  generated: '2026-09-03'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/xai.png
tags:
- Artificial Intelligence
- LLM
- Foundation Models
- Grok
- Generative AI
tags_raw:
- AI
- LLM
- Foundation Models
- Grok
- Generative AI
created: '2026-05-08'
modified: '2026-05-29'
specificationVersion: '0.23'
apis:
- aid: xai:xai-v1-api
  name: xAI v1 API
  description: The v1 API from xAI — 30 operation(s) for v1.
  humanURL: https://docs.x.ai/docs/api-reference
  baseURL: https://api.x.ai/v1
  tags:
  - v1
  properties:
  - type: OpenAPI
    url: openapi/xai-v1-api-openapi.yml
  - type: Documentation
    url: https://docs.x.ai/docs/overview
  - type: APIReference
    url: https://docs.x.ai/docs/api-reference#chat-completions
  - type: Documentation
    url: https://docs.x.ai/docs/api-reference#responses
  - type: Documentation
    url: https://docs.x.ai/docs/guides/image-generations
  - type: APIReference
    url: https://docs.x.ai/docs/api-reference#image-generations
  - type: Documentation
    url: https://docs.x.ai/docs/guides/video-generation
  - type: Documentation
    url: https://docs.x.ai/docs/guides/voice
  - type: AsyncAPI
    url: asyncapi/xai-asyncapi.yml
  - type: Documentation
    url: https://docs.x.ai/docs/guides/embeddings
  - type: Documentation
    url: https://docs.x.ai/docs/api-reference#models
  - type: Documentation
    url: https://docs.x.ai/docs/guides/batch
common:
- type: AgenticAccess
  url: agentic-access/xai-agentic-access.yml
- type: TrustCenter
  url: security/xai-trust-center.yml
- type: VulnerabilityDisclosure
  url: security/xai-vulnerability-disclosure.yml
- type: DomainSecurity
  url: security/xai-domain-security.yml
- type: Authentication
  url: authentication/xai-authentication.yml
- type: GitHubOrganization
  url: https://github.com/xai-org
- type: LinkedIn
  url: https://www.linkedin.com/company/x-ai
- type: Website
  url: https://x.ai/
- type: Documentation
  url: https://docs.x.ai/
- type: Plans
  url: plans/xai-plans-pricing.yml
- type: RateLimits
  url: rate-limits/xai-rate-limits.yml
- type: FinOps
  url: finops/xai-finops.yml
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com

Work with this as data

Every provider here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for providers

9 MCP tools reach this
  • find_providersBrowse and filter every provider in the catalog.
  • get_provider_artifactsEvery artifact this provider publishes, grouped by type.
  • get_provider_operationsEvery operation across all of their OpenAPIs — one call instead of parsing every spec.
  • get_provider_toolsEvery MCP tool they ship, with the operation each wraps.
  • get_provider_evidenceHow each part of their score was established. Free — the basis for a claim should not sit behind it.
  • get_provider_ratingPRO — composite, band, trend and facet scores.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This provider
curl "https://apis.io/api/v1/providers/xai"
All providers
curl "https://apis.io/api/v1/providers?limit=25"
Every operation they expose
curl "https://apis.io/api/v1/providers/xai/operations?limit=25"
How their score was established
curl "https://apis.io/api/v1/providers/xai/evidence"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.