For developers · v1

Ship AI top-ups
in 10 minutes.

One REST API. Signed webhooks. Staging that mirrors live. Integrate prepaid credits for Claude, ChatGPT and Gemini into your product with a single curl.

Request
curl -X POST https://aitopup.app/api/public/v1/topup/send \
  -H "Authorization: Bearer ak_staging_..." \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "claude",
    "amount_cents": 1000,
    "recipient_email": "user@example.com"
  }'
Response
{
  "success": true,
  "code": 1001,
  "transaction_id": "txn_abc123",
  "status": "delivered",
  "timestamp": "2026-06-13T12:00:00Z",
  "data": {
    "voucher_code": "ATU-7Q3X-...",
    "platform": "claude",
    "amount_cents": 1000,
    "new_balance_cents": 5400
  }
}
See it run

One call. Credits
in the wallet.

Watch an AI agent POST /topup/send, receive the standardized envelope, and the recipient's wallet update in real time.

aitopup · live demo
Request · agentPOST
$
Response · serverwaiting…
Typing request
POST /topup/send
Server responds 1001 Success
Wallet credited · webhook fired
Recipient wallet · Claude
$44.00

Endpoint: POST /api/public/v1/topup/send · auth via Authorization: Bearer ak_live_…

What you get

An API you won't
have to wrap.

Envelope

One predictable shape

Every response carries success, code, transaction_id, status, timestamp and data. Parse once, ship everywhere.

Environments

Staging that feels like live

ak_staging_… keys run the full lifecycle — webhooks included — without moving real credits.

Webhooks

Signed. Retried. Boring.

HMAC-SHA256 signatures, 3× exponential backoff (0s · 5s · 30s), and a delivery log you can replay.

Errors

Numeric codes, plain English

From 1000 Success to 5002 Webhook URL invalid — a tight, documented surface your support team can read.

From zero to delivered

Three calls. One coffee.

01
Mint a key

Pick staging or live in Agent API.

02
POST /topup/send

Email + platform + amount_cents.

03
Receive webhook

topup.delivered fires in seconds.

Webhooks

Events you can
actually trust.

Every delivery is signed with X-AiTopUp-Signature and retried up to 3× with exponential backoff. Replay any delivery from the dashboard.

Configure webhooks →
Events
  • topup.deliveredCredit sent to recipient
  • topup.refundedTop-up reversed; wallet debited
  • topup.failedDelivery failed — funds refunded
  • topup.cancelledPending top-up cancelled
  • balance.lowWallet below your threshold
Pricing

Wholesale margin,
on the table.

List price per platform (cents per 1M tokens). Your tier sets the discount. A 1.50% platform fee applies on every /topup/send.

List price · ¢ / 1M tokens
PlatformInputOutput
Claude300¢1500¢
ChatGPT50¢200¢
Gemini10¢40¢
Partner tiers · cost on a $10 top-up
TierDiscountYour cost
Standard0%$10.00
Silver15%$8.50
Gold28%$7.20
Platinum40%$6.00
Full tier requirements →
Token-aware

Size top-ups in
the unit agents think in.

Call /v1/topup/estimate with the model and expected token counts. We return the exactamount_cents, your wholesale cost, and the platform fee — no state, no rate-limit cost.

Read the spec →
estimate
POST /v1/topup/estimate
{
  "platform": "chatgpt",
  "tokens_in": 250000,
  "tokens_out": 80000
}

→ { amount_cents: 28, wholesale_cost_cents: 24,
    platform_fee_cents: 1 }
Why AiTopUp

Built for the layer
nobody else covers.

vs Stripe Issuing

We don't issue cards. We move prepaid AI credit, scoped per platform & model.

vs OpenAI / Anthropic billing

One API across Claude, ChatGPT, Gemini. One envelope. One reseller tier.

vs DIY billing

Idempotency, webhooks, refunds, caps, customer objects — out of the box.

Ready when you are.

No sales call. No SDK to install. Mint a staging key and make your first call before this page finishes scrolling.