AI margin intelligence
Protect AI gross margin customer by customer
CostIQ links AI cost-to-serve with subscription revenue by customer, feature, and plan tier. See margin leaks early, then act before month-end.
The problem
You can track token spend.
But can you explain margin by customer?
report AI-driven gross margin erosion
miss AI cost forecasts by more than 10%
disconnected systems to reconcile manually (cost tools + billing)
Unit economics
Find margin-negative AI customers before month-end.
CostIQ attributes every AI call to a customer, a feature, and a plan tier. Then it reconciles estimated cost with billed provider usage so product and finance can trust the same numbers.
| Customer | Plan | Revenue | Est. AI Cost | Billed AI Cost | Margin |
|---|---|---|---|---|---|
| Untraq | Enterprise | $999 | $138.11 | $142.87 | +86% |
| Neon Labs | Business | $299 | $182.34 | $187.42 | +37% |
| Hyperbeam | Pro | $99 | $32.96 | $34.18 | +65% |
| Monolith AI | Pro | $99 | $104.22 | $112.67 | -14% |
| Vantage | Business | $299 | $410.08 | $423.91 | -42% |
| Arcjet | Enterprise | $999 | $197.74 | $201.33 | +80% |
Monolith AI and Vantage are margin-negative once billed cost is reconciled, not just estimated.
Integration
Add customer context once. Get a full margin view.
Wrap your LLM calls
Add customer context to any AI call. The SDK handles usage extraction, cost estimation, batching, and async reporting.
Reconcile with source-of-truth billing
Compare estimated spend with billed provider costs and subscription revenue so your team operates from one trusted margin number.
Set guardrails
Per-customer and per-feature policies prevent runaway spend. Alert, throttle, or block when margins cross your threshold.
import { CostIQ } from '@costiq/sdk';
const response = await costiq.track({
customerId: 'cust_acme_corp',
feature: 'ai-summarizer',
planTier: 'pro',
metadata: { stripeCustomerId: 'cus_123' },
}, () => openai.chat.create({
model: 'gpt-5.2',
messages: [...]
}));// set per-customer guardrails
costiq.setBudget({
customerId: 'cust_acme_corp',
monthlyLimit: 50.00,
onExceed: 'alert',
});Works with your existing stack
Capabilities
What teams use CostIQ for
Customer margin tracking
Identify which customers are profitable on AI and which are margin-negative after reconciliation.
Feature COGS visibility
See cost-to-serve by feature and plan tier. Decide what to optimize, reprice, or sunset.
Budget guardrails
Per-customer and per-feature policy controls with alerts and enforcement before overruns hit the invoice.
Estimated vs billed reconciliation
Compare real-time estimates to provider billing data and revenue data so product and finance stay aligned.
Stop guessing your AI margins.
CostIQ is in private beta with design partners. Join the waitlist if you want customer-level AI margin visibility with guardrails.