xAI API
The official xAI Python SDK describes access to xAI APIs.
- Datos verificados
- 7
- Ofertas
- —
- Fuentes
- 2
- Precios
- Uso medido
Datos documentados
Cada dato procede de documentación oficial e indica cuándo se verificó.
Para quién
The official xAI Python SDK describes access to xAI APIs.
Límites de cobertura
The xAI Python SDK describes synchronous and asynchronous clients.
Interfaces de API
Responses API, Image and video generation, Files API, Batch API, Voice API, Tokenization, Model and account lookup
Official TypeScript SDK README (xai-org/xai-sdk-ts, release v0.2.8, commit ef80b018, Apache-2.0) captured 9 November 2026; supplier documentation, not an API call, deployment or independent test. Lists what this SDK release covers, not every API the provider offers; the README marks the SDK experimental, so its interfaces may change before 1.0.
Catálogo de modelos
A separate catalogue for chat and image-understanding models lists modalities, aliases, token pricing and supported reasoning efforts.
Official TypeScript SDK README (xai-org/xai-sdk-ts, release v0.2.8, commit ef80b018, Apache-2.0) captured 9 November 2026; supplier documentation, not an API call, deployment or independent test. Describes how the API and SDK expose model information; it does not name the currently available models. Check the provider’s model documentation for the live list.
Base de facturación
Usage is priced per token, with token prices reported in USD cents per 100 million tokens.
Official TypeScript SDK README (xai-org/xai-sdk-ts, release v0.2.8, commit ef80b018, Apache-2.0) captured 9 November 2026; supplier documentation, not an API call, deployment or independent test. The same README says the Batch API processes requests asynchronously at a reduced price and that the "priority" or "fast" service tier costs more; it states no actual rates. Current rates and tool, image, video and voice charges must be checked in the provider’s pricing documentation.
Controles de datos
By default the SDK sends store: false, asking that responses not be stored, unless the caller opts in; this differs from the API’s own default.
Official TypeScript SDK README (xai-org/xai-sdk-ts, release v0.2.8, commit ef80b018, Apache-2.0) captured 9 November 2026; supplier documentation, not an API call, deployment or independent test. Client behaviour of this SDK only. Retention, training use and other data terms of the service are governed by the provider’s terms and settings, which this capture does not cover.
Disponibilidad
A priority (or fast) service tier gives faster responses at a higher price.
Official TypeScript SDK README (xai-org/xai-sdk-ts, release v0.2.8, commit ef80b018, Apache-2.0) captured 9 November 2026; supplier documentation, not an API call, deployment or independent test. Rates for the tier are on the provider’s Priority Processing page, which this capture does not include. Which models offer a fast deployment is not stated.
Se aplica a los datos anteriores: Publisher SDK README captured 3 November 2026; describes that SDK and API examples, not a live service test. Current models, prices, availability and service terms require confirmation.
Sin confirmar en nuestras fuentes
No hemos confirmado estas condiciones de xAI API en la documentación enlazada. Eso no significa que xAI API no las tenga; confírmalas antes de contar con ellas.
- Precios
Fuentes y metodología
Los datos proceden de la documentación enlazada. Revisar documentación no equivale a probar el producto, y las fuentes legibles pueden tener una cobertura incompleta.
¿Has detectado una discrepancia no documentada o un cambio de precio? Envíanos una corrección.
No se ha publicado un contacto para correcciones.Alternativas a xAI API
Otras herramientas de proveedores de IA que valorar. Las unidades de facturación distintas no permiten comparar costes directamente, así que compara los planes lado a lado.
OpenAI API
Proveedores de IA
Hosted models for text and image inputs, with Responses API access and client SDKs. · Hay que volver a comprobar la evidencia
PreciosSegún usoHay que volver a comprobar el precioCondiciones de precio
Precios de API según uso
Anthropic Claude API
Proveedores de IA
Programmatic access to Claude models through a REST API. · Hay que volver a comprobar la evidencia
PreciosSegún usoHay que volver a comprobar el precioCondiciones de precio
Precios de API según uso
Google Gemini API
Proveedores de IA
A developer API catalogue with text, multimodal, audio and image model families. · Hay que volver a comprobar la evidencia
PreciosSegún usoHay que volver a comprobar el precioCondiciones de precio
Precios de API según uso
Comparaciones de xAI API
Compara dos productos de la misma categoría con sus condiciones documentadas y sus fuentes.
- xAI API vs Anthropic Claude API
- xAI API vs DeepInfra
- xAI API vs Google Gemini API
- xAI API vs Mistral AI API
- xAI API vs Nebius Token Factory
- xAI API vs OpenAI API
- xAI API vs Perplexity API Platform
- xAI API vs Replicate
- xAI API vs Together AI
- xAI API vs Baseten
- xAI API vs Cerebras Inference
- xAI API vs Cohere API
- xAI API vs Fireworks AI API
- xAI API vs Groq API
- xAI API vs Hugging Face Inference Providers
- xAI API vs IBM watsonx.ai
- xAI API vs NVIDIA NIM
- xAI API vs OpenRouter API
- xAI API vs SambaCloud