Multi-tenant billing

Per-tenant, per-end-user AI billing on Stripe.

Stop eating AI cost on your card. odnoga attributes every dollar to a tenant and an end user, rolls it into one Stripe invoice across every vendor, and lets you price it however you want.

One header. Every call billed.
await fetch("https://api.odnoga.com/functions/v1/airouter-openai-compat/v1/chat/completions", {
  headers: {
    Authorization: `Bearer ${KEY}`,
    "x-airouter-end-user": "tenant_acme:user_42",   // <- this is the whole billing layer
  },
  body: JSON.stringify({
    model: "auto",
    messages: [{ role: "user", content: "Hello" }],
  }),
});

Per-end-user attribution

One header — x-airouter-end-user — and every request is tagged, metered and billable to that customer.

Tenant Stripe accounts

Each tenant connects their own Stripe customer. You don't move money through your books.

One consolidated invoice

OpenAI + Anthropic + Gemini + Replicate roll up into one Stripe invoice per period.

Plans you create in-app

Build pricing tiers — fixed fee, included usage, overage rates — without code.

Budgets & limits per axis

Daily / monthly caps per tenant, per end user, per model. Soft caps warn; hard caps stop.

Audit-ready

Every dollar traces back to a request, a tenant, an end user, a prompt version and a provider.

FAQ

Frequently asked

Do I need to integrate Stripe myself?

No. odnoga manages tenant Stripe customers, subscriptions, invoices and webhooks. You build pricing in the dashboard.

Can I price by request, token, dollar of cost, or fixed tier?

All four. Plans support fixed fees, included usage allowances and overage rates measured in tokens, requests or pass-through cost.

What about chargebacks across vendors?

odnoga sees every provider call cost in real time, so the consolidated invoice you bill your tenants is always reconcilable against what you paid OpenAI, Anthropic, Gemini, etc.

Is the end_user header trustworthy?

Send it only from your server or Edge Function, derived from the caller's verified JWT — then your end user can't forge it. For browser calls, mint a short-lived eut_ token that binds the end-user id server-side.

Turn AI cost into recurring revenue.