Billing & Credits
Purchase API credits at exact provider cost. We charge a 5% processing fee on purchases only — never on usage.
Passthrough Pricing
Unlike other API gateways, we don't mark up model costs. You pay exactly what providers charge. Our only fee is 5% on credit purchases (e.g., buy $10 worth → $0.50 fee → $9.50 worth of credits).
✅ Passthrough
You pay $0.00015 per 1K tokens for Gemini Flash — exact Google price
✅ Transparent
5% fee shown upfront on every purchase. No hidden margins.
✅ Fair
Failed calls aren't charged. Credits never expire.
List Credit Packs
No authentication required. Returns all available API credit packs.
Request
"docs-token-command">curl https://theconflux.com/v1/billing/packsResponse
{
"data": [
{ "key": "starter", "name": "API Starter", "price": "$9.99", "credits_after_fee": "~950,000", "note": "5% fee applied" },
{ "key": "growth", "name": "API Growth", "price": "$24.99", "credits_after_fee": "~2,374,050", "note": "5% fee applied" },
{ "key": "scale", "name": "API Scale", "price": "$49.99", "credits_after_fee": "~4,749,050", "note": "5% fee applied" },
{ "key": "business", "name": "API Business", "price": "$99.99", "credits_after_fee": "~9,499,050", "note": "5% fee applied" },
{ "key": "enterprise", "name": "API Enterprise", "price": "$199.99", "credits_after_fee": "~18,999,050", "note": "5% fee applied" }
]
}Start Checkout
Creates a Stripe Checkout session and returns a URL. Redirect your user to complete payment.
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| pack | string | Yes | One of: starter, growth, scale, business, enterprise |
Request
"docs-token-command">curl -X "docs-token-keyword">POST https://theconflux.com/v1/billing/checkout \
-H "Authorization: Bearer YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{"pack": "growth"}'Response
{
"url": "https://checkout.stripe.com/c/pay/cs_test_abc123..."
}After payment, credits are added automatically via webhook. Redirect users back to your app with ?billing=success to show confirmation.
Purchase History
Request
"docs-token-command">curl https://theconflux.com/v1/billing/history \
-H "Authorization: Bearer YOUR_JWT"Response
{
"data": [
{
"id": "tx_abc123",
"amount": "docs-token-number">15000,
"balance_after": "docs-token-number">15000,
"stripe_payment_id": "pi_3Oabc...",
"created_at": "2026-03-30T10:00:00Z"
}
]
}Check API Credit Balance
Returns your API credit balance (separate from app credits). JWT auth only.
Request
"docs-token-command">curl https://theconflux.com/v1/api-credits \
-H "Authorization: Bearer YOUR_JWT"Response
{
"balance": "docs-token-number">14847,
"total_purchased": "docs-token-number">15000,
"total_consumed": "docs-token-number">153
}Credit Costs by Model Tier
| Model Tier | Credits/1K Input | Credits/1K Output | Example Models |
|---|---|---|---|
| Core | 1 | 2 | gpt-4o-mini, deepseek-chat, gemini-flash |
| Pro | 3 | 6 | gemini-2.5-flash, gpt-4.1-mini, deepseek-r1 |
| Ultra | 8 | 16 | claude-sonnet, gpt-4.1, claude-opus |