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.
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
Channels without a published cache price use the regular input price.
Assumes the common 50% Batch discount; confirm channel eligibility before use.
Monthly cost comparison
Paid channels are sorted by USD-normalised monthly cost.
Free channels usually have rate or usage limits, so they are listed separately from the paid ranking.
| Model | Channel | Input price | Output price | Cache | Est. monthly | Visit |
|---|---|---|---|---|---|---|
| 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 Sol | XiuRouterGlobal | $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.5 | XiuRouterGlobal | $0.60/1M | $3.00/1M | $0.03 | $218.16USD normalised | |
| Claude Sonnet 5.5 | OpenRouterGlobal | $1.00/1M | $5.00/1M | $0.05 | $363.60USD normalised | |
| GPT 5.6 Sol | XycAiChina | ¥6.56/1M | ¥39.33/1M | ¥0.66 | $394.44¥2,721.64 native | |
| Gemini 4 Carbon | XycAiChina | ¥8.28/1M | ¥41.40/1M | ¥0.41 | $436.32¥3,010.61 native | |
| Claude Sonnet 5.5 | OpenRouterGlobal | $2.00/1M | $10.00/1M | $0.10 | $727.20USD normalised | |
| Claude Sonnet 5.5 | AnthropicGlobal | $2.00/1M | $10.00/1M | $0.10 | $727.20USD normalised | |
| Gemini 4 Carbon | OpenRouterGlobal | $2.00/1M | $10.00/1M | $0.10 | $727.20USD normalised | |
| Gemini 4 Carbon | Google Vertex AIGlobal | $4.00/1M | $20.00/1M | $0.10 | $1,423.20USD normalised | |
| Gemini 4 Carbon | OpenRouterGlobal | $4.00/1M | $20.00/1M | $0.20 | $1,454.40USD normalised | |
| Gemini 4 Carbon | Vercel AI GatewayGlobal | $4.00/1M | $20.00/1M | $0.20 | $1,454.40USD normalised | |
| Gemini 4 Carbon | Gemini(Google)Global | $4.00/1M | $20.00/1M | $0.20 | $1,454.40USD normalised | |
| GPT 5.6 Sol | Azure OpenAIGlobal | $4.00/1M | $20.00/1M | $0.40 | $1,516.80USD normalised | |
| GPT 5.6 Sol | OpenRouterGlobal | $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.