API Reference
API Reference
Base URL: https://api.orqen.app
Use your Orqen API key in the Authorization header for both chat completions and account APIs: Authorization: Bearer sk-orq-YOUR_KEY. The browser dashboard may use a session internally, but scripts and agents should use Orqen API keys.
Chat
Bedrock compatibility
Proxy endpoint families
/v1/completionsText completions via upstream proxy
/v1/embeddingsEmbeddings via upstream proxy
/v1/responsesResponses API via upstream proxy
/v1/images/generationsImage generation
/v1/images/editsImage editing
/v1/audio/transcriptionsAudio transcription
/v1/audio/speechText to speech
/v1/moderationsModeration
/v1/rerankRerank
/v1/ocrOCR
/v1/videos/generationsVideo generation
Account
API Keys
Providers
Model routing
/v1/account/routing/preferencesGet routing mode and preferences
/v1/account/routing/preferencesUpdate routing mode
/v1/account/routing/modelsList models available from connected providers
/v1/account/routing/models/statusAvailable models with enabled state and performance data
/v1/account/routing/models/toggleEnable or disable a model for automatic routing
/v1/account/routing/insightsBest recall, fastest, and most-used routing insights
/v1/account/routing/calibrationMeasured K policy and recall calibration buckets
/v1/account/routing/tracesRecent routing decisions with intent, K reason, and top candidates
Usage, requests, and billing
/v1/account/usage/summaryCurrent month token savings, cost, and provider savings
/v1/account/usage/dailyDaily token savings for the last 30 days
/v1/account/requestsRequest log (paginated)
/v1/account/requests/{request_id}Detailed request log entry
/v1/account/sessionsConversation sessions (grouped by X-Orqen-Session-Id)
/v1/account/sessions/{session_id}/requestsRequests within a session
/v1/account/usage/analytics/dailyDaily success rate and latency percentiles
/v1/account/usage/analytics/savingsTokens saved by model and provider
/v1/account/usage/analytics/latencyOverall p50/p95 latency for the period
/v1/usage/analytics/dailyAPI-key alias for daily analytics
/v1/usage/analytics/savingsAPI-key alias for savings breakdown
/v1/usage/analytics/latencyAPI-key alias for latency summary
/v1/account/billingSubscription tier and projected charge
/v1/usage/summaryShort alias for current month usage
/v1/usage/dailyShort alias for daily usage
/v1/requestsShort alias for recent requests
Optimization stats
Billing (dashboard session)
/v1/billing/create-checkoutStart Stripe Checkout to upgrade to Pro — requires Supabase browser session, not API key
/v1/billing/customer-portalOpen Stripe customer portal — dashboard session auth
/v1/billing/sync-checkoutSync subscription after Checkout redirect — dashboard session auth
/v1/billing/sync-subscriptionRefresh subscription state from Stripe — dashboard session auth
Tool health
Common response headers
Request logs may show additional routing values (passthrough, heuristic, intent_guided, passthrough_small_toolset, limit, and composite suffixes such as _ab_ctrl). See the payload optimization docs for pruning modes.