> 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)

> Compare model outputs in parallel with the Go SDK.

# Compare (Multi-model)

Compare multiple models side-by-side with a single call.

```go
chunkCh, errCh := client.Compare.Stream(ctx, meshapi.CompareParams{
    Models: []string{
        "openai/gpt-4o-mini",
        "anthropic/claude-3-haiku",
        "google/gemini-1.5-flash",
    },
    Messages: []meshapi.ChatMessage{{Role: "user", Content: "Write a poem about Go."}},
})

for event := range chunkCh {
    if event.Event == "delta" {
        fmt.Printf("[%s]: %s\n", event.ModelID, event.Data)
    }
}
```