Skip to content
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-key
Anthropic Messages protocol with the Claude Code preset (system prompt + skill stack tuned for the CLI). Streaming + non-streaming.
POST/cline/v1/messagesAuth any-key
Anthropic Messages protocol with the Cline preset. Same flow as Claude Code with Cline-specific tuning.
POST/cursor/v1/messagesAuth any-key
Anthropic 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-key
Anthropic Messages protocol with the Roo Code preset.

#Inference — generic (pay-per-token)

POST/v1/messagesAuth pay-per-token
Anthropic Messages protocol on a pay-per-token key — no preset, no quota, balance-only.
POST/v1/chat/completionsAuth pay-per-token
OpenAI Chat Completions protocol on a pay-per-token key. Streaming + non-streaming.

#Discovery

GET/v1/modelsAuth any-key
OpenAI-compatible model listing. Returns the canonical 'auto' alias plus any logical names accepted by the router.
POST/v1/messages/count_tokensAuth any-key
Anthropic-compatible token estimator. Heuristic approximation suitable for prompt sizing.
GET/pricingAuth none
Public subscription tier table.
GET/pricing/tokensAuth none
Public pay-per-token rate.

#Tenant & billing

GET/tenant/keysAuth any-key
List your API keys.
POST/tenant/keysAuth any-key
Mint a new API key.
GET/tenant/keys/{id}Auth any-key
Fetch a single key's metadata.
DELETE/tenant/keys/{id}Auth any-key
Revoke a key. Active streams are not interrupted; subsequent requests fail with 401.
GET/tenant/usageAuth any-key
Daily token + request totals over a date range.
GET/tenant/subscriptionAuth any-key
Current subscription tier + 24h quota state.
GET/tenant/creditsAuth any-key
Current prepaid USD balance, in micros.
POST/tenant/billing/topupAuth any-key
Create a Stripe checkout session for a top-up between $5 and $1,000.
POST/tenant/billing/checkoutAuth any-key
Create a Stripe checkout session for a subscription tier.
POST/tenant/billing/portalAuth any-key
Open the Stripe customer portal.