Cost formula
Gross margin % = ((customer price − API COGS) / customer price) × 100; Price floor for target margin = API COGS / (1 − target margin %)
Calculator
Enter your provider token costs and how you bill customers (fixed per request, markup, or per-1M tokens). See profit, margin %, and the price you need to hit your target.
Reseller margin
85.3%gross after fees
$0.0171 profit / request · GPT-5 mini
Inputs
Your provider COGS against what you charge end customers.
Insights
Visual margin band plus the charge needed to hit your target.
Target-price solver: charge $0.006375 / request to hit 60% margin (you can cut $0.0136 and still hit target).
Compares provider list-price COGS to what you charge end customers. Does not include taxes or unpaid invoices. Updated 2026-07-31. Approximate static list prices for planning only. Always verify against each provider’s official pricing page before production budgeting.
Guide
Compare what you pay providers for API usage against what you charge customers to see gross margin and minimum viable price. Essential for AI wrappers, agencies reselling API access, and products with usage-based billing. Input and output asymmetry in your COGS should flow through to how you price customer output.
Gross margin % = ((customer price − API COGS) / customer price) × 100; Price floor for target margin = API COGS / (1 − target margin %)
Reselling AI without margin math leads to pricing that looks profitable on average but loses money on output-heavy customer workloads. Explicit COGS-to-price mapping keeps products solvent as usage scales.
At minimum include LLM API cost. Also consider embeddings, storage, support, and infra. This calculator focuses on API token COGS as the primary variable cost.
CentsPerToken uses approximate list prices for planning. Use your effective negotiated rate for binding pricing decisions when available.
Varies by market. Many SaaS targets 60–80% gross margin before overhead. Run your power-user scenario—margin on heavy users matters most.
Contract terms vary. Model a 20% COGS increase scenario here to see whether your current price survives provider rate changes.