Skip to main content
Glama

Fermat

chat

Run a chat completion on the Fermat gateway, paid from the Phase API key or the wallet this server uses (free models cost nothing). Returns the answer, actual price, task id for the receipt and usage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesmodel id from list_models, or a class: auto | eco | premium | agentic
promptNosingle user message (use messages for multi-turn)
systemNooptional system prompt
sessionNosaved session id (from the session tool or a /s/<id> link): the gateway prepends its history and appends this turn
messagesNofull conversation; overrides prompt/system
max_tokensNooutput cap; also bounds the price ceiling
temperatureNosampling temperature 0–2 (Claude ignores it)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
batchNopayment batch this call was charged to (settled with one transaction later)
levelNo
modelYes
usageYes
paymentYes
sessionNo
task_idYes
tx_hashNo
providerYes
price_usdYes
elapsed_msYes
ceiling_usdNo
receipt_urlNo
session_urlNo
routed_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources