The monetization layer for AI apps

Sell AI credits inside your app.

Let users buy AI credits in your app. You set your commission; we handle checkout, usage tracking, and payouts. You earn it on every request.

Free to startNo card390+ models

OpenCredits
$25
2,500 credits
Estimated usage
Long-form articles ≈50
Blog post outlines ≈250
Social media posts ≈500
Total 2,500 credits
Continue
Plug into

partner feedback

Claude Code Chat runs on OpenCredits

“I didn’t want to run a billing company. I wanted people to open the extension and just start working.”
Andre Pimenta
Andre Pimenta Creator, Claude Code Chat
212K+requests metered and billed

how it works2 snippets

From first price to payout

No wallet logic, no token metering, no custom checkout.

  1. Set your commission

    Your users pay in credits, not tokens.

  2. Embed the checkout

    No payment code. Your users buy without leaving your app.

  3. Change the base URL

    Keep your OpenAI or Anthropic SDK. Every request is metered.

  4. Get paid

    Your commission on every request, settled monthly.

// 1. Add the SDK
<script src="https://opencredits.ai/v1/sdk.js"></script>

// 2. Initialize
OpenCredits.init({
  publishableKey: 'oc_pk_...',
  onCreditsAdded(data) {
    console.log('User key:', data.user_key);
  }
});

// 3. Open checkout
OpenCredits.open();
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://api.opencredits.ai/v1',
  apiKey: userKey,  // from checkout
})

const response = await client.chat.completions.create({
  model: 'anthropic/claude-sonnet-4',
  messages: [{
    role: 'user',
    content: 'Hello!'
  }],
})
import Anthropic from '@anthropic-ai/sdk'

const client = new Anthropic({
  baseURL: 'https://api.opencredits.ai',
  apiKey: userKey,  // from checkout
})

const message = await client.messages.create({
  model: 'anthropic/claude-sonnet-4',
  max_tokens: 1024,
  messages: [{
    role: 'user',
    content: 'Hello!'
  }],
})

the platform

What you don’t have to build or maintain

Six systems you’d otherwise build. Two snippets instead.

checkout revenue$1,284
Credits sold128,400
Users342

Stripe integration

No Stripe account, checkout pages, or payment webhooks to build. The widget runs Stripe checkout inside your app.

requests metered8,412

Usage metering

No token counting or per-model price tables. Every request is metered at its real token cost.

one request−9 cr
Reserved, max cost−12 cr
Settled, actual cost−9 cr
Released+3 cr

Credit ledger

No balance race conditions. A serialized ledger reserves each request’s maximum cost, then settles the actual cost once.

GPTClaudeGeminiDeepSeekGLMKimi+ more

Provider keys

No OpenAI, Anthropic, or Google accounts to open and fund. One endpoint reaches 390+ AI models.

{ "id": "evt_5f0c…", "type": "credits.added", "data": { "credits_added": 2500 } }

Webhooks

No event pipeline to run. Key and purchase events arrive HMAC-signed and are retried on failure.

Balance2,437 credits

Balance and history APIs

No usage store to keep. Two endpoints return your user’s live balance and per-request history.

shared balance

Users can arrive already paid up

Credits belong to your users. If they already bought credits elsewhere, they can let your app spend them.

Usage earns for the app it runs in

Each request earns a commission for the app that makes it.

Keys stay scoped

Each app has its own key. Revoking one leaves the rest alone.

pricing

Set your commission, earn on every request

Your commission is a percentage of the provider cost of every request your users make. Slide to see what you’d earn.

What their requests cost at the model providers.

A percentage of provider cost. You can set up to 200%.

You earn per month

$100

$1,200 a year

On a request that costs $10 at the provider, you earn $1.00.

Any commission you choose

From 0% to 200% of provider cost. Change it anytime in your dashboard.

Users pay in credits

1 credit = $0.01. They top up from $5 to $500 and see the credits each request uses.

Free to set up

No subscription and no monthly fees.

Pricing details

trust & security

Built like infrastructure, because it is

Stripe handles the money, a serialized ledger handles the credits, and every request settles against real provider cost.

pci dss · via stripe

Stripe-managed payments

Card data never touches our servers or yours. Stripe runs checkout and handles VAT and sales tax.

exactly once

Idempotent settlement

No double charges, no double grants. Every event settles exactly once.

hmac-sha256

Signed, retried webhooks

Every webhook is signed and automatically retried on failure.

Read the security FAQ →

faq

Questions, answered

View all questions
Who handles VAT and sales tax?
Stripe is the merchant of record. Stripe runs checkout and handles VAT and sales tax. You don’t register or file for it.
How do refunds and chargebacks work?
Users can get unused credits refunded within 24 hours of purchase by emailing [email protected]. The money goes back to their original payment method; credits already spent aren’t refunded. Chargebacks are handled by Stripe, the merchant of record. Your app never deals with refunds or disputes.
Do credits expire?
Yes, 365 days after purchase. The date is fixed when credits are bought (Terms §4.5), and your users see each purchase’s expiry date in their dashboard.
How is pricing calculated?
Each request is priced from the model provider’s token cost and deducted from your user’s balance in credits, where 1 credit = $0.01. You set your commission as a percentage of that provider cost, from 0% to 200%, and earn it on every request. Users top up from $5 to $500 and see the credits each request uses.
Can users spend credits across apps?
Yes. Credits belong to your users, not to one app. A user who bought credits in another OpenCredits app can let yours spend from that balance, up to a limit they set. Usage is attributed to the app whose key makes the request, so each request earns that app’s commission.
Which models are supported?
390+ AI models from Anthropic, OpenAI, Google, xAI, and others, behind one endpoint compatible with both the OpenAI and Anthropic API formats. The OpenAI SDK, Anthropic SDK, and Vercel AI SDK work as-is: change the base URL and API key, nothing else.

Get paid for every AI request

Add prepaid AI credits to your app in minutes.

Start building