Subscriptions
Give customers a recurring credit grant with their plan, ready to spend across your product.

Set credit prices, track usage, and sell subscriptions and top-ups. Orbyte manages customer balances and records each charge in the credit ledger.
import { check, track } from "orbytelabs";
const access = await check("requests", customerId);
if (!access.allowed) throw new Error(access.reason);
await handleRequest();
await track("requests", customerId);Your app runs the action. Orbyte handles the credits.
Define your credit model in TypeScript and deploy it with the CLI. Integrate through the SDK, or call the HTTP API from your backend.
Track model costs through AI Gateway and charge for successful tool calls in credits. Orbyte applies your pricing and deducts each charge from the customer's balance.
import { credits, defineConfig } from "orbytelabs";
import { aiSdkFeatures } from "orbytelabs/ai-sdk";
export default defineConfig({
features: aiSdkFeatures(credits.markup("25%"), tools, {
weather: credits("0.02"),
}),
});import { TrackedToolLoopAgent } from "orbytelabs/ai-sdk";
const agent = new TrackedToolLoopAgent(
{ model, tools },
{ identity: customerId },
);
await agent.generate({
prompt: "What's the weather in Paris?"
});Offer subscriptions, prepaid packs, and top-ups around the same credit model. Customers can purchase more credits without changing plans.
View Orbyte pricingGive customers a recurring credit grant with their plan, ready to spend across your product.
Sell a block of credits upfront, so customers can pay for usage without a subscription.
Let customers buy extra credits when they need more, so they can keep using your product.
Connect Stripe to sell subscriptions and credit packs.
Orbyte adds credits to customer balances after Stripe confirms payment.
Usage events, pricing rules, customer balances, and the ledger share one credit model.
Define your catalog in TypeScript. Generated SDK keys help catch mistakes in feature names before your code runs.
Report usage with stable event IDs, so you can retry failed requests without charging the same event twice.
See which customers and features consume credits, monitor balances, and inspect the ledger to investigate individual charges.

