xAI All Models
Endpoints
List Models 1
OpenAI compatible Endpoints 2
Anthropic Endpoints 1
What is the xAI All Models API?
50% Discount with Direct and highly available API for all Grok latest models: Grok-4.6, Grok-3, Grok Vision, and more.
xAI All Models API is available on the JoJ API marketplace. Subscribe with a single JoJ API key, call it through one gateway, and pay from one wallet — no separate account or contract with the provider.
xAI All Models API endpoints
- GET
/modelsList Models
Return a list of available models on this API
- POST
/chat/completionsChat Completion
Creates a model response for the given chat conversation.
- POST
/responsesResponses
Creates a model response. Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model’s response.
- POST
/messagesMessages
The official Anthropic API endpoint for generating conversational responses using Claude models. This endpoint supports text and multimodal inputs, including images and documents, depending on the capabilities of the selected model. It also supports multi-turn conversations, system instructions, tool use (function calling), extended thinking, prompt caching, structured content blocks, and configurable generation parameters.
Frequently asked questions about xAI All Models API
How are credits calculated?
1M credits represent $1 which is calculated based on consumed model’s input and output pricing.
Does the API support streaming?
Yes, the API supports streaming.