Developers
Three lines to your first metered event.
Typed SDKs for Node, Python, and Go. Ingest usage from any inference call — the billing happens after, without your code knowing about it.
Metering API
Ingest usage events with cost attribution per model and customer.
Billing cycles
Compose seats, tiers, credits, and overage into one invoice.
Margin analytics
Revenue vs inference cost per customer, queryable.
Webhooks
Subscribe to invoice, payment, and spend-limit events.
import { Solisix } from "@solisix/sdk";
const sol = new Solisix(process.env.SOLISIX_KEY);
await sol.meter.ingest({
customer: user.id,
metric: "llm.tokens",
quantity: usage.total_tokens,
meta: { model: "gpt-4o", cost: usage.cost_usd },
});const invoice = await sol.billing.cycle({
customer: user.id,
pricing: {
seats: { unit: 20 },
tokens: { tiers: [
[1_000_000, 0.012],
[10_000_000, 0.008],
]},
},
});const rows = await sol.analytics.margins({
period: "this_month",
});sol.on("invoice.paid", async (inv) => {
await grantCredits(inv.customer, inv.credits);
});