TokenLab
Unified AI API Aggregator · Hundreds of Models · Pay As You Go
About
AI API aggregator: one account for hundreds of models from OpenAI, Anthropic, Google, DeepSeek, Moonshot, MiniMax and more. Supports OpenAI / Anthropic / Gemini native formats plus an OpenAI-compatible /v1 route, covering text, image, video, audio and 3D generation. Pure pay-as-you-go, no subscription, $1 free credit on signup
💡 Claude Code / Codex:Offers an OpenAI-compatible /v1 route for Codex and other OpenAI-style tools
Supported Models
Anthropic Claude
OpenAI
Google Gemini
Claude Code / Codex CLI
Offers an OpenAI-compatible /v1 route for Codex and other OpenAI-style tools
Pricing
Rate
Pay as you go
Free Credit
$1 free credit on signup
Payment
💵 USD
Pure pay-as-you-go, no subscription or minimum spend. Text models billed per million tokens (discounted: Claude Sonnet 4.5 in $2.10/out $10.50, GPT-4o in $1.75/out $7.00, DeepSeek R1 in $0.385/out $1.533); image/video/audio billed per request (DALL-E 3 $0.04, Sora 5s $0.20). Top up via Stripe, balance credited instantly
Pros & Cons
Pros
- ✓One account aggregates hundreds of models across text/image/video/audio/3D
- ✓Supports OpenAI, Anthropic, Gemini native formats and the /v1 compatible route
- ✓Pure pay-as-you-go — no subscription, no minimum spend
- ✓Smart routing + failover + multi-channel for high availability
- ✓Semantic caching cuts cost on repeated requests
- ✓$1 free credit on signup for zero-cost trial
Cons
- •Requires a VPN to access from mainland China
- •Stripe only (Visa/Mastercard), no CNY payment
- •No invoicing
- •Aggregator pricing is usually slightly above first-party rates
How to Connect TokenLab
Register Account
Visit https://tokenlab.sh, complete registration and get API Key
Configure Environment Variables
The following API endpoints are for reference. For complete configuration, please refer to the official website.
Claude Code:
export ANTHROPIC_BASE_URL="https://api.tokenlab.sh/v1"
Codex CLI:
export OPENAI_BASE_URL="https://api.tokenlab.sh/v1/v1"
Gemini CLI:
export GEMINI_BASE_URL="https://api.tokenlab.sh/v1beta/v1"
Start Using
Configuration complete. Run Claude Code or Codex CLI to start using. Pure pay-as-you-go, no subscription or minimum spend. Text models billed per million tokens (discounted: Claude Sonnet 4.5 in $2.10/out $10.50, GPT-4o in $1.75/out $7.00, DeepSeek R1 in $0.385/out $1.533); image/video/audio billed per request (DALL-E 3 $0.04, Sora 5s $0.20). Top up via Stripe, balance credited instantly
Quick Info
Third-party AI API aggregator unifying hundreds of models, with native and OpenAI-compatible routes