Skip to main content
Glama

Fermat

quote

Read-only

Get the price ceiling for a chat request without paying (the gateway's 402 quote).

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
freeYes
modelYes
networkYes
ceiling_usdYes
paid_by_keyNotrue when a Phase API key pays: its balance and daily cap apply, max_usd_per_call does not
per_call_usdYes
wallet_can_payYes
input_usd_per_1mYes
max_usd_per_callNolargest quote the wallet will sign (wallet mode only)
output_usd_per_1mYes
input_tokens_estimateYes
max_output_tokens_pricedYes

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