Skip to main content
Glama

LLM API Pricing and Automation Tools by shurco.ai

Estimate an LLM API bill

llm_cost_estimate
Read-onlyIdempotent

Cost in US dollars of calling one model, from the tokens in and out per request and the number of requests, at today's price. Handles cached input tokens and the batch price where the model has one. Use llm_price_lookup first if you are unsure of the model id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesModel id such as "openai/gpt-6.1-sol-pro", or an exact model name.
requestsNoNumber of requests. Default 1.
input_tokensYesInput tokens per request.
output_tokensYesOutput tokens per request.
use_batch_priceNoUse the batch price if the model has one. Default false.
cached_input_tokensNoHow many of the input tokens are read from the prompt cache. Default 0.

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