Gemini Cost Simulator
Gemini 4 agent-run cost simulator over MCP: true per-turn totals vs naive estimates.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"geminicost": {
"url": "https://geminicost.craftstead.app/mcp"
}
}
}Puntos de conexión remotos
https://geminicost.craftstead.app/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (2)
🟡estimate_agent_run(modelId, thinkingLevel, turns, initialContextTokens, contextGrowthPerTurn, ...)
Turn-by-turn cost of a Gemini 4 agent run: every turn re-sends the growing context as input, thinking tokens are billed at the output rate. Returns the rates in force on the chosen date, the simulated total, the naive first-turn × turns estimate and their multiplier. Before the 2026-12-01 price change it also returns afterIncrease: the same run priced at the announced 2026-12-01 rates.
Esquema de entrada
{
"type": "object",
"properties": {
"modelId": {
"type": "string",
"enum": [
"gemini-4-hydrogen",
"gemini-4-carbon",
"gemini-4-argon"
],
"description": "Gemini 4 model to price."
},
"thinkingLevel": {
"type": "string",
"enum": [
"off",
"low",
"medium",
"high"
],
"description": "Thinking budget. Thinking tokens are billed at the output price: off = 0×, low ≈0.5×, medium ≈1.5×, high ≈3× the visible output tokens."
},
"turns": {
"type": "number",
"description": "Number of turns (separate API calls) in the run.",
"minimum": 1,
"maximum": 365
},
"initialContextTokens": {
"type": "number",
"description": "System prompt, tool definitions and documents sent on turn 1.",
"minimum": 0
},
"contextGrowthPerTurn": {
"type": "number",
"description": "Net history added after each completed turn; billed from turn 2 onward.",
"minimum": 0
},
"userToolInputTokensPerTurn": {
"type": "number",
"description": "New user/tool content billed on top of the context each turn.",
"minimum": 0
},
"outputTokensPerTurn": {
"type": "number",
"description": "Visible answer tokens per turn, excluding thinking.",
"minimum": 0
},
"date": {
"type": "string",
"description": "ISO date (YYYY-MM-DD) that selects the price segment in force that day. Defaults to today (UTC).",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"examples": [
"2026-11-20",
"2026-12-05"
]
}
},
"required": [
"modelId",
"thinkingLevel",
"turns",
"initialContextTokens",
"contextGrowthPerTurn",
"userToolInputTokensPerTurn",
"outputTokensPerTurn"
],
"additionalProperties": false
}🟢get_gemini_pricing(modelId, date)
Price segment in force on a date for every recorded Gemini 4 model, or for one model: input and output USD per 1,000,000 tokens, the segment start and end dates and its status. Segments marked announced-unpriced have no published values and are reported as such.
Esquema de entrada
{
"type": "object",
"properties": {
"modelId": {
"type": "string",
"enum": [
"gemini-4-hydrogen",
"gemini-4-carbon",
"gemini-4-argon"
],
"description": "Restrict the answer to one model. Omit for all recorded models."
},
"date": {
"type": "string",
"description": "ISO date (YYYY-MM-DD) that selects the price segment in force that day. Defaults to today (UTC).",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"examples": [
"2026-11-20",
"2026-12-05"
]
}
},
"additionalProperties": false
}Comunidad
Evidencia