Skip to main content
Glama

Stack Facts

stackfacts_models_estimate

Read-onlyIdempotent

Estimate the USD cost of an LLM call from input, output and cached token counts, exact to the micro-dollar, with the price lines used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesprovider/model id, e.g. openai/gpt-4o
input_tokensNoUncached input tokens
cached_tokensNoCached input tokens (cache reads)
output_tokensNoOutput tokens

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