Few-Shot Prompt Cost Calculator
Estimate the added cost of few-shot examples.
Results update automatically as you type.
Result
$0.000937 added per request
750 tokens of examples · ~$140.63/month
- Example tokens
- 750 tokens
- Added cost / request
- $0.000937
- Added cost / month
- $140.63
Few-shot examples improve accuracy but add input tokens to every call. Set the number and size of examples to see the added cost per request and per month.
How this is calculated
This calculator uses the prompt engineering formulas described in our methodology. All figures are estimates for planning; verify current pricing with each provider before relying on them.
Worked example (defaults)
With the default inputs above, here is the result:
Result
$0.000937 added per request
750 tokens of examples · ~$140.63/month
- Example tokens
- 750 tokens
- Added cost / request
- $0.000937
- Added cost / month
- $140.63
Frequently asked questions
Are few-shot examples worth the cost?+
Often yes for accuracy, but they multiply input tokens. Cache them if stable, or fine-tune to bake the behavior in and drop the examples.