> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.meshapi.ai/llms.txt.
> For full documentation content, see https://developers.meshapi.ai/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.meshapi.ai/_mcp/server.

# Compare (Multi-model)

> Fire one prompt at several models in parallel using the Python SDK.

# Compare (Multi-model Fanout)

Fire one prompt at several models and stream their replies in parallel.

```python
from meshapi import CompareParams, ChatMessage

stream = client.compare.stream(
    CompareParams(
        models=[
            "openai/gpt-4o-mini",
            "anthropic/claude-sonnet-4.5",
            "google/gemini-2.5-flash",
        ],
        messages=[ChatMessage(role="user", content="Summarize this paragraph in one sentence: ...")],
        stream=True,
    )
)

for event in stream:
    if event.event == "delta":
        print(event.data)
```

Use `client.compare.create(params)` for a non-streaming side-by-side response with an optional judge-model comparison via `comparison_model`.