Documentation
Endpoints
Four tool-tuned Anthropic Messages routes (Claude Code, Cline, Cursor, Roo Code), a generic pay-per-token pair (Anthropic + OpenAI), plus discovery and tenant routes. Subscription keys hit the tool-tuned routes. Pay-per-token keys hit either set.
#Inference — tool-tuned (subscription or pay-per-token)
POST
/claudecode/v1/messagesAuth any-keyAnthropic Messages protocol with the Claude Code preset (system prompt + skill stack tuned for the CLI). Streaming + non-streaming.
POST
/cline/v1/messagesAuth any-keyAnthropic Messages protocol with the Cline preset. Same flow as Claude Code with Cline-specific tuning.
POST
/cursor/v1/messagesAuth any-keyAnthropic Messages protocol with the Cursor preset. For Cursor users on Anthropic models — OpenAI-mode Cursor uses /v1/chat/completions instead.
POST
/roocode/v1/messagesAuth any-keyAnthropic Messages protocol with the Roo Code preset.
#Inference — generic (pay-per-token)
POST
/v1/messagesAuth pay-per-tokenAnthropic Messages protocol on a pay-per-token key — no preset, no quota, balance-only.
POST
/v1/chat/completionsAuth pay-per-tokenOpenAI Chat Completions protocol on a pay-per-token key. Streaming + non-streaming.
#Discovery
GET
/v1/modelsAuth any-keyOpenAI-compatible model listing. Returns the canonical 'auto' alias plus any logical names accepted by the router.
POST
/v1/messages/count_tokensAuth any-keyAnthropic-compatible token estimator. Heuristic approximation suitable for prompt sizing.
GET
/pricingAuth nonePublic subscription tier table.
GET
/pricing/tokensAuth nonePublic pay-per-token rate.
#Tenant & billing
GET
/tenant/keysAuth any-keyList your API keys.
POST
/tenant/keysAuth any-keyMint a new API key.
GET
/tenant/keys/{id}Auth any-keyFetch a single key's metadata.
DELETE
/tenant/keys/{id}Auth any-keyRevoke a key. Active streams are not interrupted; subsequent requests fail with 401.
GET
/tenant/usageAuth any-keyDaily token + request totals over a date range.
GET
/tenant/subscriptionAuth any-keyCurrent subscription tier + 24h quota state.
GET
/tenant/creditsAuth any-keyCurrent prepaid USD balance, in micros.
POST
/tenant/billing/topupAuth any-keyCreate a Stripe checkout session for a top-up between $5 and $1,000.
POST
/tenant/billing/checkoutAuth any-keyCreate a Stripe checkout session for a subscription tier.
POST
/tenant/billing/portalAuth any-keyOpen the Stripe customer portal.