Artificial Intelligence

Grok

Grok is xAI's API platform for text, image, video, embedding, file, search, and voice capabilities.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Create Chat Completion

    Use xAI's legacy Chat Completions messages/choices contract for compatibility workflows. Prefer GROK_CREATE_RESPONSE for new integrations. Generates one synchronous, stateless completion with optional sampling, structured output, and function calling; streaming is disabled.

  • Create Embeddings

    Create vector embeddings for one or more text inputs with an xAI embedding model.

  • Create Response

    Generate a bounded, non-streaming Grok response from text or structured multimodal input, with optional reasoning, search, and function or web-search tools. Responses are ephemeral by default; set store=true to retain one for 30 days.

  • Edit Images

    Edit one to five source images from public or base64 URLs or xAI Files API IDs using a natural-language instruction.

  • Generate Image

    Generate one or more images from a text prompt with an xAI image-generation model.

  • Generate Video

    Start asynchronous xAI video generation from a text prompt, optionally conditioned on an image, and return a request ID for status checks.