xAI API
The official xAI Python SDK describes access to xAI APIs.
- Zweryfikowane fakty
- 7
- Oferty
- —
- Źródła
- 2
- Ceny
- Rozliczenie za użycie
Udokumentowane fakty
Każdy fakt pochodzi z oficjalnej dokumentacji i ma datę weryfikacji.
Dla kogo
The official xAI Python SDK describes access to xAI APIs.
Limity zakresu
The xAI Python SDK describes synchronous and asynchronous clients.
Interfejsy 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.
Katalog modeli
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.
Podstawa rozliczenia
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.
Kontrola danych
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.
Dostępność
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.
Dotyczy faktów powyżej: 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.
Niepotwierdzone w naszych źródłach
Nie potwierdziliśmy tych warunków dla xAI API w podlinkowanej dokumentacji. Nie oznacza to, że xAI API ich nie ma; sprawdź je, zanim zaczniesz na nich polegać.
- Ceny
Źródła i metodologia
Fakty pochodzą z podlinkowanej dokumentacji. Sprawdzanie dokumentacji to nie testy w praktyce, a czytelne źródła mogą mieć niepełny zakres.
Widzisz nieudokumentowaną rozbieżność albo zmianę ceny? Zgłoś poprawkę.
Nie opublikowano kontaktu do zgłaszania poprawek.Alternatywy dla xAI API
Inne narzędzia w kategorii dostawcy AI warte rozważenia. Różne jednostki rozliczeniowe nie pozwalają bezpośrednio porównać kosztów, więc porównaj plany obok siebie.
OpenAI API
Dostawcy AI
Hosted models for text and image inputs, with Responses API access and client SDKs. · Źródła do ponownego sprawdzenia
CenyZa użycieCena do ponownego sprawdzeniaWarunki cenowe
Cennik API zależny od użycia
Anthropic Claude API
Dostawcy AI
Programmatic access to Claude models through a REST API. · Źródła do ponownego sprawdzenia
CenyZa użycieCena do ponownego sprawdzeniaWarunki cenowe
Cennik API zależny od użycia
Google Gemini API
Dostawcy AI
A developer API catalogue with text, multimodal, audio and image model families. · Źródła do ponownego sprawdzenia
CenyZa użycieCena do ponownego sprawdzeniaWarunki cenowe
Cennik API zależny od użycia
Porównania: xAI API
Porównaj dwa produkty z tej samej kategorii na podstawie udokumentowanych warunków i źródeł.
- 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