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

Set your credit prices, sell subscriptions and top-ups, and manage customer balances. Get metering, wallets, and a credit ledger without building the infrastructure yourself.
import { check, track } from "@orbytelabs/credit";
const { allowed } = await check("your-amazing-feature", identity);
if (!allowed) return
await doSomethingAmazing();
await track("your-amazing-feature", identity);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.
Meter model costs through AI Gateway and charge successful tool calls in credits. Orbyte applies your pricing and records each charge against your customer's wallet.
import { tool } from "ai";
import { TrackedToolLoopAgent } from "@orbytelabs/credit/ai-sdk";
const agent = new TrackedToolLoopAgent({
...existingAgentOptions,
tools: {
weather: tool({
description: "Get demo weather for a city",
metadata: { orbyte: { cost: "0.02" } },
execute: ({ city }) => ({ city, temperatureC: 22 }),
}),
},
},
{ identity: "customer_123" },
);
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 funds customer wallets after payment confirmation.
Usage events, pricing rules, wallets, and the ledger share one model, reducing the systems you need to connect.
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.

