Skip to content
Maua.Culturewire

xAI (Grok)

Grok models: text, web and X search, and images

AI and machine learningCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • API key (xai-…)SecretRequired

    Where to find them

    1. At console.x.ai → “API Keys” → “Create API Key”: name it and, optionally, restrict the endpoints and models.
    2. Copy the key (xai-…): it is shown only once. It is prepaid: buy credits under “Billing”.

    Get credentials (opens in a new tab)

Tools (1)

  • xAI (Grok) API requestXAI_SEND_REQUEST

    Authenticated call to the xAI (Grok) API (https://api.x.ai/v1). Any endpoint of the API is allowed. Examples: POST /responses {"model": "…", "input": "…"} (with "tools": [{"type": "web_search"}, {"type": "x_search"}] it searches the web and X), POST /chat/completions {"model": "…", "messages": […]}, POST /images/generations {"model": "…", "prompt": "…"} (returns URLs), GET /models (names), GET /language-models (prices and context), GET /api-key (key details).

    Required scopes

    No scopes required

    Input

    xAI (Grok) API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.