OpenCredits handles checkout, credits, and routing.
You earn revenue on every AI request.
AI Credits are sold by OpenCredits. Your app drives usage and earns referral share.
How it works
OpenCredits handles the spend layer. You ship the product.
Embed OpenCredits checkout so users can buy AI Credits inside your app.
Route requests with the user's key using our OpenAI/Anthropic-compatible API.
Earn tracked referral share as users spend through your app.
Integration
No wallet logic, no token metering, no custom checkout.
// 1. Add the SDK
<script src="https://opencredits.ai/assets/sdk.js"></script>
// 2. Initialize
OpenCredits.init({
publishableKey: 'oc_pk_...',
onPurchaseCompleted(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-20250514',
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-20250514',
maxTokens: 1024,
messages: [{
role: 'user',
content: 'Hello!'
}],
})
Work with us
Set your commission, choose your models
and shape the AI experience in your app.
Earned on every AI request through your app.
Shape the AI experience around your use case.
Monitor everything from one place.
For users
No external providers. No API keys to manage.
Users buy credits and use AI right inside your app.
No redirects or external checkouts. Users buy credits right where they use AI.
No AI provider keys to manage. Users just top up and go.
GPT, Claude, Gemini, Deepseek, GLM, Kimi, and 170+ more. One balance covers all.
Checkout experience
Users see estimated usage per feature before they buy.
Already have credits? Sign in
Already have credits? Sign in
Already have credits? Sign in
Already have credits? Sign in
Embed checkout, route your first request, and start earning referral shares.
No billing or AI stack to build.
Credits are sold by OpenCredits. Partner apps may receive referral compensation based on credit usage, but they do not sell or hold your credits.