Skip to main content
Glama

Simpler.Asia

ai.estimate_cost

Read-only

Price an AI task BEFORE running it: provider passthrough at wholesale cost, no markup — the per-token platform fee is retired, so text/reasoning passes through at cost. Anonymous — open catalog includes open pricing. Returns integer micro-USD plus a USD total. NEXT: run the action, then ai.budget to watch the runway.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesA token-billed task name from the platform task→model map (e.g. 'assistant.ask').
tokens_inNoEstimated input tokens (default 1000).
tokens_outNoEstimated output tokens (default 500).

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