IntraAgentsIntraAgents
← Back home

Credits Calculator

Internal tool. Convert real Anthropic per-generation cost into a fixed number of credits per generation, then sanity-check pack pricing before you ship it.

Quick preset:

Anthropic pricing (USD per 1M tokens)

Pull these from the Anthropic Console for the model you actually run.

Per-generation token usage

Average a handful of real generations from Console billing — don't guess.

Pricing model

Pack sanity check

Per-generation result

1 credits / generation
Input cost / gen
$0.012
Output cost / gen
$0.0225
Total API cost / gen
$0.0345
Target sell price / gen (cost × margin × overhead)
$0.1587
Credits needed (raw)
0.79
Credits per generation (rounded up)
1
Actual sell price at this credit count
$0.20
Gross margin / gen
$0.1655 (82.8%)
Effective multiple over API cost
5.80×

Pack sanity

50 generations per pack
Effective price per credit in this pack
$0.20
Generations per pack
50
Revenue / gen at pack price
$0.20
Margin / gen at pack price
$0.1655 (82.8%)

Note: credits-per-generation is rounded up so a single generation never sells below cost-with-margin. If the rounded margin% looks unreasonable, adjust $/credit or pack size rather than the multiplier.