Skip to content

Core features

primerouter is built around three goals: unified access, transparent billing, provable audit. Below is what's user-visible.

Models & providers

Multi-provider, drop-in

Coverage spans both Western and Chinese frontier models, including but not limited to:

  • International: OpenAI (GPT-4o, o-series), Anthropic (Claude family), Google (Gemini family), Mistral, Cohere, xAI (Grok), Meta Llama
  • Chinese: DeepSeek (V3 / R1), Alibaba Qwen, Zhipu GLM, Moonshot Kimi, MiniMax, ByteDance Doubao, Baidu Ernie, Tencent Hunyuan, iFlytek Spark
  • Specialty: Ollama (local), SiliconFlow, Dify, Coze, Replicate

Full model list and pricing in Pricing → Models.

Native multi-format

Not just OpenAI-compatible — native formats of Claude and Gemini are also first-class, meaning the Claude SDK / Google AI SDK can connect directly:

FormatEndpointUse
OpenAI Chat Completions/v1/chat/completionsMost widespread
OpenAI Responses/v1/responsesNew OpenAI format
OpenAI Embeddings/v1/embeddingsVector embeddings
OpenAI Images / Audio/v1/images/..., /v1/audio/...Multimodal
Anthropic Messages/v1/messagesNative Claude
Google GeminiNative Gemini pathsNative Gemini

Format conversion happens in the middle layer. You can swap upstream without code change: call Claude in OpenAI shape, call Gemini in Claude shape, etc.

Multimodal

ModalityCapability
Text chatChat completions / streaming / multi-turn / tool use / reasoning
EmbeddingsOpenAI / Cohere Embed
Image generationDALL·E, Midjourney, Jimeng
AudioTTS / STT (OpenAI, Volcengine, MiniMax)
Video generationSora, Kling, Hailuo, Vidu, Jimeng, Doubao (async tasks)
Music generationSuno
RerankingCohere, Jina, Alibaba

Long-running modalities (video, music) go through an async task system: submit → pre-charge → poll → settle. See Features → async tasks.

Routing & availability

Smart routing

  • Weighted random: distribute by per-channel weight
  • Priority retry: high priority first; on failure, fall back to next tier
  • Cross-group retry: auto tokens can iterate across user groups
  • Channel affinity: same user × model is sticky to one channel by default

Multi-key fault isolation

Each upstream channel can hold many keys (round-robin, random, or weighted). A single key failure is auto-skipped, leaving the others unaffected.

Self-healing

  • AutoBan: a channel that keeps failing is disabled, then auto-recovered
  • Realtime latency monitoring
  • Balance alerts on upstream accounts
  • Periodic health checks

Billing & payments

Token-based, no subscription

  • Real tokens × model price = your bill. No monthly fee, no bundle, no minimum.
  • The usage field is byte-identical to upstream. Each request can be drilled down to the upstream ledger.
  • Pre-charge on call, settle on completion, refund on failure — no double charge, no missed accounting.

Multiple top-up methods

  • Crypto (differentiator): USDT / USDC etc. across multiple chains (EVM, Aptos). On-chain confirmation triggers credit. See Crypto Payment.
  • Cards / Apple Pay / Google Pay (Stripe)
  • Local payment methods (Waffo, 162 countries, 480+ methods)
  • Redemption codes / referral rewards

Built-in Chat (productized)

More than an API gateway — there's a full end-user chat product:

  • Session management: create, rename, archive, pin, delete
  • Model switching mid-conversation
  • Streaming output + reasoning block display
  • Tool use: web search, URL reader, code repo browse
  • File / image upload
  • History compression
  • Conversation sharing (chat2link): generate read-only link, no login required
  • Full Markdown / code highlight / KaTeX / Mermaid

Playground

Visual API debugging: model picker, parameter sliders, request body editing, real-time SSE viewer, one-click code-snippet copy, save test configs.

Console

Available to every logged-in user: dashboard, personal, tokens, top-up, usage logs, Playground, models, subscription, redemption, Chat, Midjourney, async tasks. See Features.

Admin

Administrators have access to upstream channel management, model deployment, user management, group pricing, and system settings. These are operational concerns and are intentionally not covered in this user documentation.

Security

  • OAuth: GitHub, Discord, OIDC, LinuxDO, etc.
  • Passkey (WebAuthn) + 2FA TOTP
  • CAPTCHA (Cloudflare Turnstile / hCaptcha)
  • Per-key model allow-list, IP allow-list, quota cap, expiry
  • SSRF protection, two-tier rate limiting, CORS, request trace ID

Internationalization

Docs and product UI both support 7 languages: 简体中文, English, 繁體中文, 日本語, Français, Русский, Tiếng Việt.

Next

Built for transparent, auditable, crypto-native AI inference. About · Terms · Privacy