Skip to content
Orbyte Labs
Toggle navigation menu

Credit billing for agentic products.

Set credit prices, track usage, and sell subscriptions and top-ups. Orbyte manages customer balances and records each charge in the credit ledger.

TSfeature-access.ts
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.

Connect Orbyte to the
stack you already use.

Define your credit model in TypeScript and deploy it with the CLI. Integrate through the SDK, or call the HTTP API from your backend.

Building with Vercel AI SDK?

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.

TSorbyte.config.ts
import { credits, defineConfig } from "orbytelabs";
import { aiSdkFeatures } from "orbytelabs/ai-sdk";

export default defineConfig({
  features: aiSdkFeatures(credits.markup("25%"), tools, {
    weather: credits("0.02"),
  }),
});
TSagent.ts
import { TrackedToolLoopAgent } from "orbytelabs/ai-sdk";

const agent = new TrackedToolLoopAgent(
  { model, tools },
  { identity: customerId },
);

await agent.generate({
  prompt: "What's the weather in Paris?"
});

Sell credits the way
your customers buy.

Offer subscriptions, prepaid packs, and top-ups around the same credit model. Customers can purchase more credits without changing plans.

View Orbyte pricing

Subscriptions

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

Prepaid packs

Sell a block of credits upfront, so customers can pay for usage without a subscription.

Top-ups

Let customers buy extra credits when they need more, so they can keep using your product.

Works with your billing setup.

Connect Stripe to sell subscriptions and credit packs. Orbyte adds credits to customer balances after Stripe confirms payment.

Orbyte connects to your billing provider

Purpose-built for credits.
Less infrastructure to piece together.

One credit model.

Usage events, pricing rules, customer balances, and the ledger share one credit model.

Typed configuration.

Define your catalog in TypeScript. Generated SDK keys help catch mistakes in feature names before your code runs.

Safe usage retries.

Report usage with stable event IDs, so you can retry failed requests without charging the same event twice.

See every balance.
Understand every charge.

See which customers and features consume credits, monitor balances, and inspect the ledger to investigate individual charges.

Acme demo dashboard showing credit consumption over time and spending by customer

Ship your product.
Your credit system is ready.