Skip to main content
Glama

Estimate generation cost

estimate_media_cost
Read-only

Estimate what a generation will cost in credits before running it. Read-only and free. exact=true means computed from the model's price list; approximate=true means the vendor names the final sum itself (video and music) and the number is a best guess; both false means there is nothing to estimate from — and zero credits does NOT mean free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoThe words to say — speech only, their length drives the price (optional).
tierNoTier to price. Omit to use the default tier of that modality.
paramsNoModel settings, as declared by the vendor for the chosen tier — for example {"aspect_ratio":"16:9","resolution":"720p","duration":"4"}. Call list_ai_tiers to see which keys this tier accepts, their allowed values and defaults. Values are strings. Unknown keys are ignored rather than rejected.
modalityYesWhat is going to be generated: image | video | audio | music | 3d
title_idNoWhich game this is for — a label, optional (see the generate_* tools).

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.