LLM Workflow Cost Calculator
Presets load a starter pipeline. You can modify, add, or remove steps freely.
Pipeline Steps
Cost Breakdown
| # | Step | Model | Input | Output | Input Cost | Output Cost | Total |
|---|---|---|---|---|---|---|---|
| 1 | Embed Query | gpt-4o-mini | 200 | 0 | $0.000030 | $0.00 | $0.000030 |
| 2 | Rerank Chunks | gpt-4.1-nano | 4.0K | 200 | $0.000400 | $0.000080 | $0.000480 |
| 3 | Generate Answercached | claude-sonnet-4 | 5.0K | 1.0K | $0.0075 | $0.015 | $0.022 |
| Total per execution | $0.023 | ||||||
Batch Projections
Provider Comparison
What if every step used the cheapest model from one provider? Shows best-case cost per provider.
| Provider | Cost / Execution | Daily (100x) | Monthly | vs Current |
|---|---|---|---|---|
| OpenAI | $0.0010 | $0.103 | $3.08 | -95.5% |
| $0.0010 | $0.103 | $3.08 | -95.5% | |
| DeepSeek | $0.0028 | $0.280 | $8.41 | -87.8% |
| Meta (via providers) | $0.0047 | $0.474 | $14.22 | -79.4% |
| Anthropic | $0.0086 | $0.856 | $25.68 | -62.8% |
| Mistral | $0.021 | $2.06 | $61.80 | -10.5% |
What This Tool Does
LLM Workflow Cost Calculator is built for deterministic developer and agent workflows.
Model multi-step AI pipelines end-to-end and see total cost per execution across providers. Includes caching simulation and monthly projections.
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Agent Invocation
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/llm-workflow-cost-calculator/
For automation planning, fetch the canonical contract at /api/tool/llm-workflow-cost-calculator.json.
How to Use LLM Workflow Cost Calculator
- 1
Add pipeline steps
Click Add Step to build your AI workflow. For each step, set a name (e.g., 'Embed documents'), select a step type and model, and enter the expected input and output token counts.
- 2
Configure caching
Toggle the caching checkbox on steps where prompt caching applies to see the cost reduction. The tool uses provider-specific cached input pricing.
- 3
Set batch volume
Enter how many times this workflow runs per day to see daily, monthly, and yearly cost projections across all steps.
- 4
Compare providers
Review the provider comparison table to see how total workflow cost changes if you switch all steps to a different provider, helping you optimize your model choices.