Skip to main content
Glama

Fermat

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
NameRequiredDescriptionDefault
modelsNo2 to 4 model ids or classes; default: the cheapest paid chat model, auto, and the most expensive open chat model
promptNosingle user message (use messages for multi-turn)
systemNooptional system prompt
messagesNofull conversation; overrides prompt/system
max_tokensNooutput cap for every model (default: none)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ratioNomost expensive price divided by the cheapest, one decimal
resultsYes
cheapestNomodel with the lowest price among the answers
most_expensiveNomodel with the highest price among the answers

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources