Grok 4.20 Multi-Agent

    xai/grok-4.20-multi-agent
    Playground

    Multi-agent variant that dispatches sub-agents in parallel for deep research, multi-step reasoning, and tool orchestration.

    ReasoningDeep AnalysisComplex PlanningAgent
    Modality
    Input / Output Pricing
    $4 / $12M tokens
    Context
    2M
    Release date
    2026-03-31

    Pricing

    SpecificationPrice
    Input$4/ M tokens
    Output$12/ M tokens
    Cache read$0.4/ M tokens
    Cache write--

    Quick Start

    Paste and run the sample code below. The Gate.AI API is OpenAI-compatible—most SDKs only need a new base URL. To switch models, change the model ID.

    1

    Get your API key

    Sign in to the Gate.AI console and create a new key under "API Keys". Keep it safe and send it via the Authorization header on every request.

    Create a key in the console
    2

    Make a request

    Send a POST request to the Chat Completions endpoint with a model ID and an array of messages to get a reply.

    POSThttps://api.gate.ai/openai/v1/responses
    curl --location "https://api.gate.ai/openai/v1/responses" \
      --header "Authorization: Bearer {API_KEY}" \
      --header "Content-Type: application/json" \
      --data '{
      "model": "grok-4.20-multi-agent",
      "input": "Hello",
      "max_output_tokens": 256
    }'
    3

    Handle the response \& streaming

    By default a full JSON response is returned. Add "stream": true to the request body to receive incremental chunks over SSE.

    POSThttps://api.gate.ai/openai/v1/responses
    curl --no-buffer --location "https://api.gate.ai/openai/v1/responses" \
      --header "Authorization: Bearer {API_KEY}" \
      --header "Content-Type: application/json" \
      --data '{
      "model": "grok-4.20-multi-agent",
      "input": "Hello",
      "max_output_tokens": 256,
      "stream": true
    }'

    Endpoint

    Create streaming or non-streaming responses with the OpenAI Responses API.

    POSThttps://api.gate.ai/openai/v1/responses
    Field
    Value
    Authorization
    Authentication header containing the API key in the format Bearer {API_KEY}
    Content-Type
    Request content type, fixed to application/json
    model
    Model ID; the current model is grok-4.20-multi-agent
    input
    Text or structured input submitted to the model
    max_output_tokens
    Maximum number of output tokens the model may generate
    stream
    Whether to return the result as an SSE stream

    Related Models