Ask several models the same thing
compareSends the same conversation (or one prompt) to 2 to 5 chat model ids at once through POST /v1/chat/completions and returns every answer side by side with its token usage, cost and time, plus the total. For a second opinion from another model, or to pick the model that answers a kind of question best. Completions are capped at max_tokens each (default 1024). Each model is billed to the key in the MCP request's Authorization header; a model that fails is reported and not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | 2 to 5 chat model ids from list_models, asked at the same time. | |
| prompt | No | One user message, in place of messages. | |
| system | No | Instructions placed ahead of the conversation as a system message. | |
| messages | No | The conversation, OpenAI chat format. | |
| image_urls | No | Image URLs attached to the last user message, for the chat models that take images (input_modalities in list_models). A file generate made works. | |
| max_tokens | No | Cap on completion tokens per model. Default 1024. | |
| temperature | No |