Chat Completions
Varies · quoted $0.004952 / requestGenerates text from a Grok model, messages, and max_tokens in an OpenAI-compatible format. Returns choices with message content.
7 reviewed operations
xAI models — chat, web/X search, code execution, image generation/editing, and text-to-speech.
Generates text from a Grok model, messages, and max_tokens in an OpenAI-compatible format. Returns choices with message content.
Generates text from messages with Grok models that can write and execute code in a sandboxed environment. Returns an output array and a status.
Generates text from a model and messages, grounded in live web search results. Returns an output array and a status.
Generates text from a model and messages, grounded in live X (Twitter) search results. Returns an output array and a status.
Edits an existing image from a source image URL and a text prompt. Returns a temporary hosted URL or base64 image bytes.
Generates images from a text prompt and a Grok Imagine model. Returns a temporary hosted URL or base64 image bytes.
Converts text and a language code into spoken audio. Supports multiple voices, speech tags, and output formats.
Create an account, set a spending limit, and connect your agent. It can then search this catalog and pay inside your policy.