Skip to content
SlashClone

Gross margin by customer

@agentcosts/gross-margin-by-customer

Gross margin per customer for an AI product: revenue minus LLM cost minus allocated hosting and other cost of revenue. Flags negative and below-target customers, names the task driving their cost, and gives the price each one would need to hit your target margin.

SkillFinancev1.0.0 (latest)Tested
Activity
New: be the first to try it
  1. 1provider,model,input_per_mtok,output_per_mtok,cache_read_per_mtok,cache_write_per_mtok,checked_on,notes
  2. 2anthropic,claude-opus-5-5,4.00,20.00,0.20,5.00,2026-10-06,Example values. Check the provider's current pricing page before relying on them.
  3. 3anthropic,claude-sonnet-5-5,2.00,10.00,0.20,2.50,2026-10-06,Example values. Check the provider's current pricing page before relying on them.
  4. 4anthropic,claude-haiku-5-5,0.10,0.50,0.01,0.125,2026-10-06,Example values. Cache prices assumed at the usual ratios; check before relying on them.
  5. 5anthropic,claude-sonnet-4-6,3.00,15.00,0.30,3.75,2026-10-06,Example values. Check the provider's current pricing page before relying on them.
  6. 6anthropic,claude-haiku-4-5,1.00,5.00,0.10,1.25,2026-10-06,Example values. Check the provider's current pricing page before relying on them.
  7. 7openai,gpt-5,1.25,10.00,0.125,0,,Example values from memory. Check the provider's current pricing page and set checked_on.
  8. 8openai,gpt-5-mini,0.25,2.00,0.025,0,,Example values from memory. Check the provider's current pricing page and set checked_on.