MCP & AI Agent Workflow API Cost Calculator

Production MCP agents (Cursor, Claude Desktop, Dify, n8n, or custom loops) resend system prompts, attached MCP tool schemas, and prior tool outputs on every turn. That creates heavy input volume with high prefix cache hits—making clean Markdown tool outputs and caching decisive cost levers.

Preset baseline: 1,000 agent API turns/day (~30K turns/month, roughly 2,500–4,000 multi-step tasks), 16,000 avg input tokens per turn (tool schemas + history + fetched docs), 1,200 avg output tokens, 65% prompt cache hit rate, 0% batch.

1. Usage

Daily usage is converted using a 30-day month.

Passing raw PDF, Word, or HTML? Converting to clean Markdown typically trims input tokens by 35%–60%: toolkit.fun/document-to-markdown

65%

Channels without a published cache price use the regular input price.

0%

Assumes the common 50% Batch discount; confirm channel eligibility before use.

30K
requests/mo
480M
input/mo
36M
output/mo
2. Models and region
Claude Sonnet 5.5GPT 5.6 SolDeepSeek V4.1 Flash (1017)Gemini 4 Carbon4/4

Monthly cost comparison

Paid channels are sorted by USD-normalised monthly cost.

1 zero-priced channels

Free channels usually have rate or usage limits, so they are listed separately from the paid ranking.

DeepSeek V4.1 Flash (1017) · OpenCode Zen
ModelChannelInput priceOutput priceCacheEst. monthlyVisit
DeepSeek V4.1 Flash (1017)词元所China¥0.74/1M¥2.96/1M¥0.01$34.13Lowest paid¥235.50 native
DeepSeek V4.1 Flash (1017)OpenCode GoGlobal$0.15/1M$0.60/1M$0.00$47.74USD normalised
DeepSeek V4.1 Flash (1017)Fireworks AIGlobal$0.30/1M$1.20/1M$0.01$95.47USD normalised
DeepSeek V4.1 Flash (1017)DeepSeekChina$0.30/1M$1.20/1M$0.01$95.47USD normalised
DeepSeek V4.1 Flash (1017)Vercel AI GatewayGlobal$0.30/1M$1.20/1M$0.01$95.78USD normalised
GPT 5.6 SolXiuRouterGlobal$0.28/1M$1.40/1M$0.03$106.18USD normalised
DeepSeek V4.1 Flash (1017)Together AIGlobal$0.30/1M$1.20/1M—$187.20USD normalised
Claude Sonnet 5.5XiuRouterGlobal$0.60/1M$3.00/1M$0.03$218.16USD normalised
Claude Sonnet 5.5OpenRouterGlobal$1.00/1M$5.00/1M$0.05$363.60USD normalised
GPT 5.6 SolXycAiChina¥6.56/1M¥39.33/1M¥0.66$394.44¥2,721.64 native
Gemini 4 CarbonXycAiChina¥8.28/1M¥41.40/1M¥0.41$436.32¥3,010.61 native
Claude Sonnet 5.5OpenRouterGlobal$2.00/1M$10.00/1M$0.10$727.20USD normalised
Claude Sonnet 5.5AnthropicGlobal$2.00/1M$10.00/1M$0.10$727.20USD normalised
Gemini 4 CarbonOpenRouterGlobal$2.00/1M$10.00/1M$0.10$727.20USD normalised
Gemini 4 CarbonGoogle Vertex AIGlobal$4.00/1M$20.00/1M$0.10$1,423.20USD normalised
Gemini 4 CarbonOpenRouterGlobal$4.00/1M$20.00/1M$0.20$1,454.40USD normalised
Gemini 4 CarbonVercel AI GatewayGlobal$4.00/1M$20.00/1M$0.20$1,454.40USD normalised
Gemini 4 CarbonGemini(Google)Global$4.00/1M$20.00/1M$0.20$1,454.40USD normalised
GPT 5.6 SolAzure OpenAIGlobal$4.00/1M$20.00/1M$0.40$1,516.80USD normalised
GPT 5.6 SolOpenRouterGlobal$5.00/1M$30.00/1M$0.50$2,076.00USD normalised

Scenario frequently asked questions

Why does an MCP workflow average 16,000 input tokens per turn?

Each turn carries the system prompt, attached MCP tool JSON schemas, conversation history, and any web pages or documents returned by earlier tool calls. Because earlier tool outputs repeat on every later turn, shrinking raw HTML/PDF payloads into clean Markdown cuts cumulative spend sharply.

How can I keep MCP tool schema overhead small?

Avoid exposing 50+ flat tools simultaneously. Prefer meta-tool discovery servers (search_tools -> get_tool -> run_tool) or scoped endpoints that attach only the 3–8 tools needed for the active task.

Which models work best for MCP tool-calling loops?

Many teams pair fast Flash/Mini or DeepSeek models for routine retrieval/extraction turns with flagship Claude or GPT models for complex planning and synthesis, using live channel rates above to balance reliability and monthly budget.