> 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 Node.js SDK.

# Compare (Multi-model Fanout)

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

```ts
const stream = client.compare.create({
  models: [
    "openai/gpt-4o-mini",
    "anthropic/claude-sonnet-4.5",
    "google/gemini-2.5-flash",
  ],
  messages: [{ role: "user", content: "Summarize this paragraph in one sentence: ..." }],
  stream: true,
});

for await (const event of stream) {
  if (event.event === "delta") {
    console.log(event.data);
  }
}
```

Use non-streaming compare with an optional judge-model comparison via `comparison_model`.