Change
240a09d
240a09d6b9f06be4df3079500a2d709536a7e09d · commit on GitHub
xai-llms-txt: changed (17023 bytes, HTTP 200)
raw/xai-llms-txt/response.txt added
- Source
- xai-llms-txt
- Lines added
- +203
- Lines removed
- -0
- Stored bytes at this commit
- 17,023
- Timestamp
- observed
- Raw artifact at this commit
- raw/xai-llms-txt/response.txt
Recorded headers
| observed_at | 2026-09-26T04:52:22.087Z |
|---|---|
| origin_date | null |
| status | 200 |
| final URL | https://docs.x.ai/llms.txt |
| etag | null |
| last-modified | null |
| date | Sat, 26 Sep 2026 04:52:22 GMT |
| age | null |
| cache-control | public, max-age=3600, stale-while-revalidate=86400 |
| cf-cache-status | DYNAMIC |
| content-encoding | gzip |
| content-length | null |
@
@@ -0,0 +1,203 @@+
# SpaceXAI API Documentation+
+
> Official SpaceXAI (xAI) developer documentation at https://docs.x.ai — Grok models, REST API reference, SDKs, guides, pricing, and app docs. The API is served at https://api.x.ai.+
+
Every documentation page is available as markdown: append `.md` to its URL, or request the page URL with an `Accept: text/markdown` header.+
+
Add the programming language you want code examples in to the `Accept-Language` header (for example `Accept-Language: en, python`) to receive only that language’s examples. Pin an SDK with a subtag: `python-xai`, `python-openai`, `javascript-ai-sdk`, `javascript-openai`.+
+
## API+
+
- [Get Started](https://docs.x.ai/developers/quickstart.md)+
- [Get Started — Overview](https://docs.x.ai/overview.md)+
- [Get Started — Grok 4.7](https://docs.x.ai/developers/grok-4-7.md)+
- [Get Started — Models](https://docs.x.ai/developers/models.md)+
- [Get Started — Pricing](https://docs.x.ai/developers/pricing.md)+
- [Get Started — Release Notes](https://docs.x.ai/developers/release-notes.md)+
- [Text](https://docs.x.ai/developers/model-capabilities/text/generate-text.md)+
- [Text — Streaming](https://docs.x.ai/developers/model-capabilities/text/streaming.md)+
- [Text — Reasoning](https://docs.x.ai/developers/model-capabilities/text/reasoning.md)+
- [Text — Structured Outputs](https://docs.x.ai/developers/model-capabilities/text/structured-outputs.md)+
- [Text — Image Understanding](https://docs.x.ai/developers/model-capabilities/images/understanding.md)+
- [Text — Multi Agent](https://docs.x.ai/developers/model-capabilities/text/multi-agent.md)+
- [Imagine](https://docs.x.ai/developers/model-capabilities/imagine.md)+
- [Imagine — Image Generation](https://docs.x.ai/developers/model-capabilities/images/generation.md)+
- [Imagine — Image Editing](https://docs.x.ai/developers/model-capabilities/images/editing.md)+
- [Imagine — Multi-Image Editing](https://docs.x.ai/developers/model-capabilities/images/multi-image-editing.md)+
- [Imagine — Video Generation](https://docs.x.ai/developers/model-capabilities/video/generation.md)+
- [Imagine — Image-to-Video](https://docs.x.ai/developers/model-capabilities/video/image-to-video.md)+
- [Imagine — Reference-to-Video](https://docs.x.ai/developers/model-capabilities/video/reference-to-video.md)+
- [Imagine — Video Editing](https://docs.x.ai/developers/model-capabilities/video/editing.md)+
- [Imagine — Video Extension](https://docs.x.ai/developers/model-capabilities/video/extension.md)+
- [Voice](https://docs.x.ai/developers/model-capabilities/audio/voice.md)+
- [Voice — Speech to Speech](https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech.md)+
- [Voice — Speech to Speech — SIP Phone Calls](https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech/sip.md)+
- [Voice — Speech to Speech — Prompting Guide](https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech/prompting-guide.md)+
- [Voice — Text to Speech](https://docs.x.ai/developers/model-capabilities/audio/text-to-speech.md)+
- [Voice — Speech to Text](https://docs.x.ai/developers/model-capabilities/audio/speech-to-text.md)+
- [Voice — Custom Voices](https://docs.x.ai/developers/model-capabilities/audio/custom-voices.md)+
- [Voice — Ephemeral Tokens](https://docs.x.ai/developers/model-capabilities/audio/ephemeral-tokens.md)+
- [Files & Collections](https://docs.x.ai/developers/files.md)+
- [Files & Collections — Managing Files](https://docs.x.ai/developers/files/managing-files.md)+
- [Files & Collections — Public URLs](https://docs.x.ai/developers/files/public-urls.md)+
- [Files & Collections — Chat with Files](https://docs.x.ai/developers/model-capabilities/files/chat-with-files.md)+
- [Files & Collections — Collections](https://docs.x.ai/developers/files/collections.md)+
- [Files & Collections — Collections via API](https://docs.x.ai/developers/files/collections/api.md)+
- [Files & Collections — Collection Metadata](https://docs.x.ai/developers/files/collections/metadata.md)+
- [Files & Collections — Generated Media](https://docs.x.ai/developers/model-capabilities/imagine/files.md)+
- [Files & Collections — Generated Media — Referencing Files as Input](https://docs.x.ai/developers/model-capabilities/imagine/files/inputs.md)+
- [Files & Collections — Generated Media — Persisting Generated Output](https://docs.x.ai/developers/model-capabilities/imagine/files/outputs.md)+
- [Tools](https://docs.x.ai/developers/tools/overview.md)+
- [Tools — Function Calling](https://docs.x.ai/developers/tools/function-calling.md)+
- [Tools — Web Search](https://docs.x.ai/developers/tools/web-search.md)+
- [Tools — X Search](https://docs.x.ai/developers/tools/x-search.md)+
- [Tools — Code Execution](https://docs.x.ai/developers/tools/code-execution.md)+
- [Tools — Image Generation](https://docs.x.ai/developers/tools/image-generation.md)+
- [Tools — Collections Search (RAG)](https://docs.x.ai/developers/tools/collections-search.md)+
- [Tools — Remote MCP Tools](https://docs.x.ai/developers/tools/remote-mcp.md)+
- [Tools — In Depth](https://docs.x.ai/developers/tools/citations.md)+
- [Tools — In Depth — Streaming & Sync](https://docs.x.ai/developers/tools/streaming-and-sync.md)+
- [Tools — In Depth — Tool Usage Details](https://docs.x.ai/developers/tools/tool-usage-details.md)+
- [Tools — In Depth — Advanced Usage](https://docs.x.ai/developers/tools/advanced-usage.md)+
- [Advanced API Usage](https://docs.x.ai/developers/rate-limits.md)+
- [Advanced API Usage — Prompt Caching](https://docs.x.ai/developers/advanced-api-usage/prompt-caching.md)+
- [Advanced API Usage — Prompt Caching — How It Works](https://docs.x.ai/developers/advanced-api-usage/prompt-caching/how-it-works.md)+
- [Advanced API Usage — Prompt Caching — Maximizing Cache Hits](https://docs.x.ai/developers/advanced-api-usage/prompt-caching/maximizing-cache-hits.md)+
- [Advanced API Usage — Prompt Caching — What Breaks Caching](https://docs.x.ai/developers/advanced-api-usage/prompt-caching/multi-turn.md)+
- [Advanced API Usage — Prompt Caching — Usage & Pricing](https://docs.x.ai/developers/advanced-api-usage/prompt-caching/usage-and-pricing.md)+
- [Advanced API Usage — Prompt Caching — Best Practices & FAQ](https://docs.x.ai/developers/advanced-api-usage/prompt-caching/best-practices.md)+
- [Advanced API Usage — Context Compaction](https://docs.x.ai/developers/advanced-api-usage/context-compaction.md)+
- [Advanced API Usage — Priority Processing](https://docs.x.ai/developers/advanced-api-usage/priority-processing.md)+
- [Advanced API Usage — Batch API](https://docs.x.ai/developers/advanced-api-usage/batch-api.md)+
- [Advanced API Usage — Deferred Completions](https://docs.x.ai/developers/advanced-api-usage/deferred-chat-completions.md)+
- [Advanced API Usage — Async Requests](https://docs.x.ai/developers/advanced-api-usage/async.md)+
- [Advanced API Usage — WebSocket Mode](https://docs.x.ai/developers/advanced-api-usage/websocket-mode.md)+
- [Advanced API Usage — mTLS Authentication](https://docs.x.ai/developers/advanced-api-usage/mtls.md)+
- [Advanced API Usage — Regional Endpoints](https://docs.x.ai/developers/advanced-api-usage/regions.md)+
- [Advanced API Usage — Cost Tracking](https://docs.x.ai/developers/cost-tracking.md)+
- [Advanced API Usage — Debugging Errors](https://docs.x.ai/developers/debugging.md)+
- [Platforms](https://docs.x.ai/developers/community.md)+
- [Platforms — Google Cloud Vertex AI](https://docs.x.ai/developers/community/google-cloud-vertex-ai.md)+
- [Platforms — Microsoft Foundry](https://docs.x.ai/developers/community/microsoft-foundry.md)+
- [Platforms — Docs MCP](https://docs.x.ai/developers/docs-mcp.md)+
- [Migration Guides](https://docs.x.ai/developers/migration/imagine-image-quality-nov-2.md)+
- [Migration Guides — Model Retirement (May 15, 2026)](https://docs.x.ai/developers/migration/may-15-retirement.md)+
- [Migration Guides — Migrating to Responses API](https://docs.x.ai/developers/model-capabilities/text/comparison.md)+
- [Migration Guides — Chat Completions (Legacy)](https://docs.x.ai/developers/model-capabilities/legacy/chat-completions.md)+
- [FAQ](https://docs.x.ai/developers/faq/security.md)+
- [FAQ — General](https://docs.x.ai/developers/faq/general.md)+
+
## API Reference+
+
- [Inference API](https://docs.x.ai/developers/rest-api-reference/inference.md)+
- [Inference API — Responses](https://docs.x.ai/developers/rest-api-reference/inference/responses.md)+
- [Inference API — Chat Completions](https://docs.x.ai/developers/rest-api-reference/inference/chat-completions.md)+
- [Inference API — Images](https://docs.x.ai/developers/rest-api-reference/inference/images.md)+
- [Inference API — Videos](https://docs.x.ai/developers/rest-api-reference/inference/videos.md)+
- [Inference API — Voice](https://docs.x.ai/developers/rest-api-reference/inference/voice.md)+
- [Inference API — Files](https://docs.x.ai/developers/rest-api-reference/files.md)+
- [Inference API — Files — Upload a file](https://docs.x.ai/developers/rest-api-reference/files/upload.md)+
- [Inference API — Files — List files](https://docs.x.ai/developers/rest-api-reference/files/manage.md)+
- [Inference API — Files — Get file content](https://docs.x.ai/developers/rest-api-reference/files/download.md)+
- [Inference API — Batches](https://docs.x.ai/developers/rest-api-reference/inference/batches.md)+
- [Inference API — Models](https://docs.x.ai/developers/rest-api-reference/inference/models.md)+
- [Inference API — Account](https://docs.x.ai/developers/rest-api-reference/inference/other.md)+
- [Inference API — Legacy & Deprecated](https://docs.x.ai/developers/rest-api-reference/inference/legacy.md)+
- [Collections API](https://docs.x.ai/developers/rest-api-reference/collections.md)+
- [Collections API — Collection Management](https://docs.x.ai/developers/rest-api-reference/collections/collection.md)+
- [Collections API — Search in Collections](https://docs.x.ai/developers/rest-api-reference/collections/search.md)+
- [Management API](https://docs.x.ai/developers/rest-api-reference/management.md)+
- [Management API — Using Management API](https://docs.x.ai/developers/management-api-guide.md)+
- [Management API — Accounts and Authorization](https://docs.x.ai/developers/rest-api-reference/management/auth.md)+
- [Management API — Billing Management](https://docs.x.ai/developers/rest-api-reference/management/billing.md)+
- [Management API — Audit Logs](https://docs.x.ai/developers/rest-api-reference/management/audit.md)+
- [gRPC API](https://docs.x.ai/developers/grpc-api-reference.md)+
- [gRPC API — Chat](https://docs.x.ai/developers/grpc-api-reference/chat.md)+
- [gRPC API — Image](https://docs.x.ai/developers/grpc-api-reference/image.md)+
- [gRPC API — Video](https://docs.x.ai/developers/grpc-api-reference/video.md)+
- [gRPC API — Batch Management](https://docs.x.ai/developers/grpc-api-reference/batches.md)+
- [gRPC API — Models](https://docs.x.ai/developers/grpc-api-reference/models.md)+
- [gRPC API — Auth](https://docs.x.ai/developers/grpc-api-reference/auth.md)+
- [gRPC API — Tokenize](https://docs.x.ai/developers/grpc-api-reference/tokenize.md)+
- [gRPC API — Raw Sampling](https://docs.x.ai/developers/grpc-api-reference/sample.md)+
+
## Grok Build+
+
- [Get Started](https://docs.x.ai/build/overview.md)+
- [Get Started — Modes and Commands](https://docs.x.ai/build/modes-and-commands.md)+
- [Get Started — Keyboard Shortcuts](https://docs.x.ai/build/keyboard-shortcuts.md)+
- [Features](https://docs.x.ai/build/features/skills-plugins-marketplaces.md)+
- [Features — AGENTS.md](https://docs.x.ai/build/features/project-rules.md)+
- [Features — MCP Servers](https://docs.x.ai/build/features/mcp-servers.md)+
- [Features — Hooks](https://docs.x.ai/build/features/hooks.md)+
- [Features — Sessions](https://docs.x.ai/build/features/sessions.md)+
- [Features — Plan Mode](https://docs.x.ai/build/features/plan-mode.md)+
- [Features — Permissions](https://docs.x.ai/build/features/permissions.md)+
- [Features — Sandbox](https://docs.x.ai/build/features/sandbox.md)+
- [Features — Subagents](https://docs.x.ai/build/features/subagents.md)+
- [Features — Worktrees](https://docs.x.ai/build/features/worktrees.md)+
- [Features — Background Tasks](https://docs.x.ai/build/features/background-tasks.md)+
- [Features — Agent Dashboard](https://docs.x.ai/build/features/dashboard.md)+
- [Features — Status Line](https://docs.x.ai/build/features/status-line.md)+
- [Features — Theming](https://docs.x.ai/build/features/theming.md)+
- [Settings](https://docs.x.ai/build/settings.md)+
- [Settings — Reference](https://docs.x.ai/build/settings/reference.md)+
- [Settings — ZDR Video Storage](https://docs.x.ai/build/settings/zdr-video-storage.md)+
- [CLI](https://docs.x.ai/build/cli/headless-scripting.md)+
- [CLI — Reference](https://docs.x.ai/build/cli/reference.md)+
- [CLI — Terminal Support](https://docs.x.ai/build/cli/terminal-support.md)+
- [Enterprise](https://docs.x.ai/build/enterprise.md)+
+
## Grok Bot+
+
- [Get Started](https://docs.x.ai/grok-bot/overview.md)+
- [Get Started — Get started](https://docs.x.ai/grok-bot/get-started.md)+
- [Get Started — Use cases](https://docs.x.ai/grok-bot/use-cases.md)+
- [Get Started — Grok Bot for Mobile](https://docs.x.ai/grok-bot/mobile.md)+
- [Work with Grok Bot](https://docs.x.ai/grok-bot/bots.md)+
- [Work with Grok Bot — Message and collaborate](https://docs.x.ai/grok-bot/chat-and-collaboration.md)+
- [Work with Grok Bot — Files and results](https://docs.x.ai/grok-bot/files-and-results.md)+
- [Work with Grok Bot — Use the computer and apps](https://docs.x.ai/grok-bot/computer-and-apps.md)+
- [Work with Grok Bot — Skills and routines](https://docs.x.ai/grok-bot/skills-routines-and-automations.md)+
- [Manage and protect](https://docs.x.ai/grok-bot/settings-and-notifications.md)+
- [Manage and protect — Approvals, security, and privacy](https://docs.x.ai/grok-bot/approvals-security-and-privacy.md)+
- [Manage and protect — Teams and enterprises](https://docs.x.ai/grok-bot/teams-and-enterprises.md)+
- [Manage and protect — Teams and enterprises — Identity and access](https://docs.x.ai/grok-bot/identity-and-access.md)+
- [Manage and protect — Teams and enterprises — Private networks](https://docs.x.ai/grok-bot/private-networks.md)+
- [Manage and protect — Teams and enterprises — TLS-inspecting proxies](https://docs.x.ai/grok-bot/proxies.md)+
- [Manage and protect — Teams and enterprises — Manage computers](https://docs.x.ai/grok-bot/computers.md)+
- [Manage and protect — Teams and enterprises — Grok Bot security](https://docs.x.ai/grok-bot/security.md)+
- [Manage and protect — Teams and enterprises — Grok Bot security FAQ](https://docs.x.ai/grok-bot/security-faq.md)+
- [Help](https://docs.x.ai/grok-bot/troubleshooting.md)+
- [Help — FAQ](https://docs.x.ai/grok-bot/faq.md)+
+
## Grok+
+
- [Get Started](https://docs.x.ai/grok/overview.md)+
- [Help & FAQ](https://docs.x.ai/grok/faq.md)+
- [Connectors](https://docs.x.ai/grok/connectors.md)+
- [Connectors — Google Drive](https://docs.x.ai/grok/connectors/google-drive.md)+
- [Connectors — Gmail & Google Calendar](https://docs.x.ai/grok/connectors/gmail-google-calendar.md)+
- [Connectors — Outlook Mail & Calendar](https://docs.x.ai/grok/connectors/outlook.md)+
- [Connectors — SharePoint](https://docs.x.ai/grok/connectors/sharepoint.md)+
- [Connectors — OneDrive](https://docs.x.ai/grok/connectors/onedrive.md)+
- [Connectors — Microsoft Teams](https://docs.x.ai/grok/connectors/microsoft-teams.md)+
- [Connectors — Salesforce](https://docs.x.ai/grok/connectors/salesforce.md)+
- [Connectors — Custom MCP Tunneling](https://docs.x.ai/grok/connectors/custom-mcp-tunneling.md)+
- [Business & Enterprise](https://docs.x.ai/grok/user-guide.md)+
- [Business & Enterprise — License & User Management](https://docs.x.ai/grok/management.md)+
- [Business & Enterprise — Connector Management](https://docs.x.ai/grok/connector-management.md)+
- [Business & Enterprise — Organization Management](https://docs.x.ai/grok/organization.md)+
+
## Machine-readable resources+
+
- [OpenAPI specification](https://docs.x.ai/openapi.json): OpenAPI schema for the xAI REST API (https://api.x.ai)+
- [API catalog](https://docs.x.ai/.well-known/api-catalog): RFC 9727 linkset for the xAI API+
- [MCP server](https://docs.x.ai/api/mcp): Model Context Protocol server with docs search and retrieval tools+
- [MCP server card](https://docs.x.ai/.well-known/mcp/server-card.json): connection metadata for the MCP server+
- [Sitemap](https://docs.x.ai/sitemap.xml): all documentation page URLs+
- [Authentication reference](https://docs.x.ai/developers/rest-api-reference/management/auth.md): API keys and short-lived management-API tokens+
+
## Optional+
+
- [llms-full.txt](https://docs.x.ai/llms-full.txt): every documentation page concatenated into one markdown file (large)