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 AI, 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.

44.2/100 developing ▬ flat Agent 42/100 agent ready Full breakdown ↓
scored 2026-07-28 · rubric v0.6
AccessPaidSelf serve
1 APIs
AILLMFoundation ModelsGrokGenerative AI

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 44.2/100 · developing
Contract Quality 14.1 / 25
Developer Ergonomics 3.9 / 20
Commercial Clarity 9.5 / 20
Operational Transparency 4.8 / 13
Governance 5.0 / 12
Discoverability 6.9 / 10
Agent readiness — 42/100 · agent ready
Machine-Readable Contract 18 / 18
Agentic Access Contract 10 / 10
MCP Server 0 / 12
Machine-Readable Auth 10 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 7 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 6 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. 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. Want it done for you? Prioritized profiling — $2,500 →

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 1

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

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.
accessModel:
  pricing: paid
  onboarding: self-serve
  trial: false
  try_now: false
  public: false
  label: Paid · Self-serve signup
  confidence: high
  source:
  - plans
  - authentication
  generated: '2026-07-22'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/xai.png
tags:
- AI
- LLM
- Foundation Models
- Grok
- Generative AI
created: '2026-05-08'
modified: '2026-05-29'
specificationVersion: '0.19'
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