compare
Run one prompt on 2 to 4 Fermat models or classes at once and compare answer, price, tokens and speed; returns the cheapest, the most expensive and how many times more the expensive one cost. Spends credit for each model. Default models: the cheapest paid chat model, auto, and the most expensive open chat model.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | No | 2 to 4 model ids or classes; default: the cheapest paid chat model, auto, and the most expensive open chat model | |
| prompt | No | single user message (use messages for multi-turn) | |
| system | No | optional system prompt | |
| messages | No | full conversation; overrides prompt/system | |
| max_tokens | No | output cap for every model (default: none) |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | most expensive price divided by the cheapest, one decimal | |
| results | Yes | ||
| cheapest | No | model with the lowest price among the answers | |
| most_expensive | No | model with the highest price among the answers |