> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Grok 4.20 Multi-Agent

> Grok 4.20 run as a multi-agent ensemble, at the same list price. 2M context, vision, file input, reasoning.

## Overview

Grok 4.20 run as a multi-agent ensemble, at the same list price. 2M context, vision, file input, reasoning.

## Specs

| Field | Value |
| - | - |
| Model ID | `grok-4.20-multi-agent` |
| Best for | Problems worth spending several agent passes on |
| Context window | 2M |
| Max output tokens | 8K |
| Input modalities | Text, Image, File |
| Output modalities | Text |
| Tool calling | No |
| Structured outputs | Yes |
| Prompt caching | No |
| Vision | Yes |
| Reasoning | Yes |
| Speed | Slow |
| Cost band | Premium |
| Release stage | Stable |

## Pricing

| | Per 1M tokens |
| - | :-: |
| Input | \$1.767 |
| Output | \$3.534 |

Above a long prompt this model costs more per token, because the infrastructure
serving it charges more there. The threshold is on the **prompt**, so you know which
rate applies before you send.

| Prompt length | Input | Output |
| - | :-: | :-: |
| Standard | \$1.767 | \$3.534 |
| Above 200,000 tokens | \$3.375 | \$6.75 |

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="kyma-...")

response = client.chat.completions.create(
    model="grok-4.20-multi-agent",
    messages=[{"role": "user", "content": "..."}],
)
```

## Agent query example

Ask the API which models fit, instead of hardcoding an id:

```bash theme={null}
curl "https://kymaapi.com/v1/models?recommended_for=chat&quality_tier=strong"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.