Teams · As of 2026-12-04

White-Label AI API Reseller Storefront & OpenAPI Guide: Redeem Codes and Automated Provisioning

As of 2026-12-04, developer toolbuilders, regional agencies, and coding communities can launch a zero-brand-leak AI API reseller storefront in under 5 seconds via QCode Partner Platform v2 (reseller.qcode.cc), backed by 11 read/write rsk_ Partner OpenAPI endpoints. Each provisioned customer cr_ sub-key routes across Anthropic Messages (/api), OpenAI Chat Completions and Responses (/openai/v1 and /openai), and Google Gemini native (/gemini, live with gemini-4-neon since 2026-12-03), plus listed Chinese models. Instead of maintaining multi-vendor billing, TLS clusters, and custom redemption portals, partners automate sub-key caps and batches of 1–500 cryptographic RSL-XXXX-XXXX-XXXX redeem codes directly from their own backend.

QCode is an independent third-party model API service, not affiliated with or endorsed by Anthropic, OpenAI, Google, or upstream model providers. Facts in this guide were verified on 2026-12-04 against the official documentation linked below.

Updated 2026-12-04

Key facts

  • Under-5-second onboarding (2026-12-04): Sign in at reseller.qcode.cc/onboarding with a QCode account (shared Logto SSO and wallet) for an instant r-<slug>.qcode.cc HTTPS subdomain, plus custom CNAME binding and automatic distributed ACME SSL.
  • Zero-brand-leak storefront: Customer domains render only your brand across /, /redeem, /portal/*, /stats, and 8 built-in /docs/* guides pre-filled with your domain, with no QCode branding or admin routes.
  • Zero-login sandbox: Test the partner console (reseller.qcode.cc/demo) and customer storefront (reseller.qcode.cc/demo/storefront) before funding a balance.
  • 11 read/write rsk_ OpenAPI endpoints: Served under /api/v1/reseller on https://reseller.qcode.cc or https://api.r.qcode.cc (Authorization: Bearer rsk_...), with IP audit trails on all writes and 60 req/min (1,000 req/day) limits.
  • Batch redeem codes: POST /api/v1/reseller/codes/mint creates 1–500 RSL-XXXX-XXXX-XXXX codes per call with bounded daily/total USD and concurrency caps; buyers claim keys on /redeem without a QCode account.
  • Multi-protocol sub-keys: Cover claude-opus-5-5 ($4/$20 per 1M), claude-sonnet-5-5 ($2/$10), gpt-6.2-sol ($2/$10), gemini-4-neon ($3/$15, $0.15 implicit cache read), and listed Chinese models at live /models rates.
  • Wholesale Tiers A–E: Volume discount multipliers across Tiers A–E are listed on /en/partner-program.

Why teams launch white-label AI API storefronts instead of building from scratch

Forwarding LLM requests is trivial; running multi-provider token metering, abuse isolation, and customer delivery in production is where custom reseller stacks break down. Developer toolbuilders, regional agencies, and bootcamp operators consistently hit four engineering bottlenecks:

  1. Three native protocols: Claude Code requires Anthropic Messages (POST /v1/messages), Codex CLI uses OpenAI Responses (wire_api = "responses"), general clients call /v1/chat/completions, and Gemini 4 Neon tools call /v1beta/models/{model}:generateContent. Protocol translation breaks tool calls and thought signatures.
  2. Real-time USD containment: Without per-key daily_cost_limit_usd, total_cost_limit_usd, and concurrency caps, one leaked customer key can drain a shared upstream balance in minutes.
  3. Upstream model churn: Providers retire snapshots constantly—OpenAI's official deprecations schedule retires gpt-5 and o3 on 2026-12-11 and gpt-4o/gpt-4.1 on 2027-01-14. Self-hosted proxies require ongoing pricing, route, and doc updates.
  4. Customer self-service: Buyers expect a branded portal to redeem codes, inspect USD balance, and copy pre-configured CLI snippets without filing support tickets.

Architecture comparison: DIY self-hosted proxy vs. QCode Partner Platform v2

Self-hosting LiteLLM (see LiteLLM's proxy docs) or NewAPI fits organizations with direct upstream contracts and dedicated SREs; for most resellers and communities, QCode Partner Platform v2 (reseller.qcode.cc) ships a turnkey white-label stack as of 2026-12-04.

Dimension DIY Self-Hosted Proxy (LiteLLM / NewAPI) QCode Partner Platform v2 (reseller.qcode.cc)
Launch time Days to weeks (servers, DB, Redis, UI fork, checkout hooks) Under 5 seconds via reseller.qcode.cc/onboarding (r-<slug>.qcode.cc)
Custom domain & TLS Manual reverse proxy and Certbot renewal upkeep Custom CNAME with automatic distributed ACME SSL
Brand isolation Fork and maintain custom web UI and client guides Zero-brand-leak storefront (/, /redeem, /portal/*, /stats) + 8 /docs/* guides
Pre-funding trial Deploy staging infrastructure first Zero-login sandbox (/demo console + /demo/storefront)
Upstream accounts Separate contracts and credit pools per model vendor Shared Logto SSO & wallet with qcode.cc + Wholesale Tiers A–E
Automation API Build custom admin routes and audit logging 11 read/write OpenAPI endpoints (Bearer rsk_...), Idempotency-Key, IP audit log
Redeem-code sales Build code minting, double-spend locks, and claim UI Built-in 1–500 batch minting (RSL-XXXX-XXXX-XXXX) + /redeem portal

Customer domains enforce strict route isolation: buyers only access /, /redeem, /portal/*, /stats, and 8 auto-branded /docs/* guides, while admin routes never mount on customer domains. Standard onboarding requires no email wait, and every screen is testable at reseller.qcode.cc/demo and reseller.qcode.cc/demo/storefront.

Automating sub-keys and redeem codes with the 11-endpoint rsk_ OpenAPI

The Partner OpenAPI lets checkout webhooks, Telegram/Discord bots, and SaaS backends manage the entire customer key and voucher lifecycle over HTTPS JSON (full schemas in the Partner Open API reference).

rsk_ partner tokens vs. qot_ personal tokens

  • rsk_ (Partner Read/Write Token): Created in reseller.qcode.cc → Open API / Access Token. Shown once in plaintext, stored only as a server-side hash, and authorized for all 11 /api/v1/reseller/* endpoints with an IP audit trail on every write call.
  • qot_ (Personal Read-Only Token): Created at /dashboard/openapi-token strictly for reading your personal keys' expiry and spend. The two prefixes are not interchangeable.

Complete 11-endpoint matrix (/api/v1/reseller)

Send requests to https://reseller.qcode.cc or https://api.r.qcode.cc with Authorization: Bearer rsk_.... Rate limits are 60 requests/min and 1,000 requests/day per token, plus 15 invalid attempts/min per IP (429 returns Retry-After).

Group Method & Path Purpose
Account (3) GET /api/v1/reseller/me Partner tier (A–E), bound domain, discount multiplier, status
GET /api/v1/reseller/balance Current wholesale balance and today's spend
GET /api/v1/reseller/usage?range=7d\|30d 7-day or 30-day daily spend time series
Sub-keys (6 routes / 7 ops) GET /api/v1/reseller/keys Paginated list of customer sub-keys and cap status
POST /api/v1/reseller/keys Create customer cr_ sub-key (plaintext returned once)
GET /api/v1/reseller/keys/{id} Inspect single sub-key usage, USD caps, concurrency
PATCH /api/v1/reseller/keys/{id} Edit daily_cost_limit_usd, total_cost_limit_usd, concurrency_limit
POST /api/v1/reseller/keys/{id}/enable & /disable Resume or immediately pause a customer sub-key
DELETE /api/v1/reseller/keys/{id} Permanently revoke a customer sub-key
Codes (2) POST /api/v1/reseller/codes/mint Batch-mint 1–500 RSL-XXXX-XXXX-XXXX redeem codes
GET /api/v1/reseller/codes Query minted batches and per-code redemption status

Provisioning, editing, and revoking customer sub-keys

Pass your order ID in Idempotency-Key on POST /api/v1/reseller/keys so webhook retries never double-provision. Both daily_cost_limit_usd and total_cost_limit_usd must exceed 0, with concurrency_limit <= 50 (default cap: 500 active sub-keys per partner):

# Verify partner tier, bound domain, and discount multiplier
curl -sS https://reseller.qcode.cc/api/v1/reseller/me \
  -H "Authorization: Bearer rsk_your_partner_token"

# Provision a customer sub-key (persist data.api_key immediately — shown once)
curl -sS -X POST https://reseller.qcode.cc/api/v1/reseller/keys \
  -H "Authorization: Bearer rsk_your_partner_token" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-20261204-0001" \
  -d '{
    "description": "customer-team-alpha",
    "daily_cost_limit_usd": 20,
    "total_cost_limit_usd": 200,
    "concurrency_limit": 10
  }'

The response ({"ok": true, "data": {"id": "...", "api_key": "cr_...", ...}}) returns the plaintext cr_ key once. Use PATCH, /disable, /enable, and DELETE to manage upgrades, overdue accounts, or leaks:

# Raise daily spend cap to $50 USD
curl -sS -X PATCH https://reseller.qcode.cc/api/v1/reseller/keys/{id} \
  -H "Authorization: Bearer rsk_your_partner_token" \
  -H "Content-Type: application/json" \
  -d '{"daily_cost_limit_usd": 50}'

# Temporarily pause traffic (reversible via /enable)
curl -sS -X POST https://reseller.qcode.cc/api/v1/reseller/keys/{id}/disable \
  -H "Authorization: Bearer rsk_your_partner_token"

# Re-enable a paused sub-key after renewal
curl -sS -X POST https://reseller.qcode.cc/api/v1/reseller/keys/{id}/enable \
  -H "Authorization: Bearer rsk_your_partner_token"

# Permanently revoke a compromised or closed sub-key
curl -sS -X DELETE https://reseller.qcode.cc/api/v1/reseller/keys/{id} \
  -H "Authorization: Bearer rsk_your_partner_token"

Batch-minting 1–500 cryptographic redeem codes

For digital key storefronts or cohort perks, mint RSL-XXXX-XXXX-XXXX codes that buyers redeem directly on your branded /redeem page:

# Batch-mint 50 cryptographic RSL-XXXX-XXXX-XXXX redeem codes
curl -sS -X POST https://reseller.qcode.cc/api/v1/reseller/codes/mint \
  -H "Authorization: Bearer rsk_your_partner_token" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: batch-20261204-a" \
  -d '{
    "count": 50,
    "daily_cost_limit_usd": 10,
    "total_cost_limit_usd": 50,
    "concurrency_limit": 5,
    "note": "december-bootcamp-batch"
  }'

# Query minted code batches and redemption status
curl -sS https://reseller.qcode.cc/api/v1/reseller/codes \
  -H "Authorization: Bearer rsk_your_partner_token"

Keep rsk_ tokens strictly server-side; rotating an exposed rsk_ token in the Partner Console invalidates it immediately without interrupting active customer cr_ sub-keys.

Multi-model coverage, protocol routing, and wholesale Tiers A–E

Every issued customer cr_ sub-key accesses all supported QCode protocols under one key, metered at live /en/models rates against your wholesale pool (verified 2026-12-04):

  • Anthropic Messages (/api): claude-fable-5-2 ($8/$40, cache read $0.20), claude-opus-5-5 ($4/$20, cache read $0.20), claude-sonnet-5-5 ($2/$10, cache read $0.10), and claude-haiku-5-5 ($0.10/$0.50 up to 100K input; $0.50/$2.50 above 100K) at Anthropic's official API price ×1.0 with 1M context. Clients follow Anthropic's LLM gateway config.
  • OpenAI (/openai/v1 and /openai): gpt-6.2-sol ($2/$10; >272K tier $4/$15), gpt-6.2-astra ($8/$40; >272K $16/$60), and gpt-6.1-terra at official API price ×1.0. Codex CLI uses /openai with wire_api = "responses" per the Codex CLI config reference. gpt-6-luna is not listed on QCode.
  • Google Gemini native (/gemini, live since 2026-12-03): gemini-4-neon at official API price ×1.0 ($3.00/$15.00 per 1M, implicit cache read $0.15, 1M unified context). Only gemini-4-neon is listed right now—gemini-4-carbon, gemini-4-argon, and gemini-4-hydrogen are not listed on QCode yet.
  • Listed Chinese models (/api and /openai/v1): deepseek-v4.1-flash, kimi-k3.1-pro, glm-5.3, and qwen3.8-max work on both endpoints and are billed at the live rate shown on /en/models. Qwen4-35B-A3B, Qwen4-Max, GLM-5.4, MiniMax, and Grok are not listed on QCode.

Your storefront's 8 built-in /docs/* pages auto-fill your custom domain into setup snippets. Below is the end-customer environment layout across all three protocols (replace api.qcode.cc with your white-label host when serving customers):

# Claude Code (Anthropic Messages protocol)
export ANTHROPIC_BASE_URL="https://api.qcode.cc/api"
export ANTHROPIC_AUTH_TOKEN="cr_your_key"

# OpenAI-compatible client (Chat Completions)
export OPENAI_BASE_URL="https://api.qcode.cc/openai/v1"
export OPENAI_API_KEY="cr_your_key"

# Gemini CLI / native Gemini 4 Neon endpoint
export GOOGLE_GEMINI_BASE_URL="https://api.qcode.cc/gemini"
export GEMINI_API_KEY="cr_your_key"
export GEMINI_MODEL="gemini-4-neon"

Prepaid wholesale accounts scale across Wholesale Tiers A–E with volume discount multipliers detailed on /en/partner-program, letting you control retail margins and bundle packaging independently.

FAQ

Do my customers see any QCode branding on the storefront or docs?

No. Customer domains (r-<slug>.qcode.cc or your CNAME with automatic ACME SSL) render a zero-brand-leak storefront across /, /redeem, /portal/*, /stats, and 8 /docs/* guides using your brand and API URL. Partner admin routes never mount on customer domains, and buyers redeem codes without a QCode account.

How does the rsk_ Partner OpenAPI token differ from the personal qot_ token?

rsk_ is a read/write partner token from reseller.qcode.cc covering all 11 /api/v1/reseller/* endpoints with an IP audit trail on every write. qot_ is a read-only personal token from /dashboard/openapi-token for viewing your own personal key usage and expiry; the two are not interchangeable.

Can I test the partner console and storefront before funding my account?

Yes. Both the partner console (reseller.qcode.cc/demo) and customer storefront (reseller.qcode.cc/demo/storefront) run as zero-login interactive sandboxes so you can inspect quota controls, redeem-code minting, and branded guides before depositing funds.

What happens when a customer sub-key hits its daily or total USD limit?

Requests on that sub-key are blocked automatically at daily_cost_limit_usd or total_cost_limit_usd, protecting the rest of your wholesale pool. Raise caps anytime via PATCH /api/v1/reseller/keys/{id}, or pause traffic with POST /api/v1/reseller/keys/{id}/disable.

Which models work on customer sub-keys issued through the Partner Platform?

Each cr_ sub-key supports Claude (claude-opus-5-5, claude-sonnet-5-5, claude-fable-5-2, claude-haiku-5-5) on /api, GPT (gpt-6.2-sol, gpt-6.2-astra, gpt-6.1-terra) on /openai/v1 and /openai, gemini-4-neon on /gemini, and listed Chinese models (deepseek-v4.1-flash, kimi-k3.1-pro, glm-5.3, qwen3.8-max) at live /models rates. gemini-4-carbon, gemini-4-argon, gemini-4-hydrogen, Qwen4-35B-A3B, Qwen4-Max, GLM-5.4, MiniMax, gpt-6-luna, and Grok are not listed on QCode as of 2026-12-04.

When should I choose the Partner Program instead of QCode Team Edition?

Choose the Partner Program (/en/partner-program) for a white-label storefront, custom CNAME, batch RSL- redeem codes, Wholesale Tiers A–E, and the rsk_ OpenAPI. Choose Team Edition (/en/enterprise) for internal engineering teams wanting a $4,000 pooled monthly quota per unit, 35 concurrent requests, and internal member sub-keys.

Launch your white-label storefront or compare team and personal plans

To launch a branded AI API storefront or automate sub-key fulfillment, review Wholesale Tiers A–E and start 5-second onboarding on /en/partner-program with the Partner Open API docs. Internal teams wanting pooled quota ($4,000 monthly quota per unit, 35 concurrency) without a retail portal can use /en/enterprise; individual developers can start on daily-reset plans from $9 via /en/pricing and check /en/models.

Launch your white-label storefront or compare team and personal plans

One key for both the Anthropic Messages API and OpenAI-compatible APIs. Claude and GPT are billed at the official price ×1.0; live rates are on /models.

Not sure where to start?

Try it for a week

Small Pack: $4 for $30 of quota, valid 7 days

Use it every day

Starter: $9.00/month with $5 of quota every day — just $0.060 per $1 of quota, vs about $0.113 for the Medium Pack