Skip to content

ModelBridge · Multi-Protocol API Reference

5 endpoint groups

Interactive specification covering OpenAI, Anthropic, and Gemini client ingress, /api/* admin controls, Node.js 24 SQLite /_modelbridge/state RPC, and platform budgets.

POSTAuthorization: Bearer <client-api-key>Core Client Ingress

OpenAI & Specialized Task Ingress Endpoints

POST /v1/chat/completions · /v1/responses · /v1/embeddings · /v1/images/* · /v1/audio/* · /v1/rerank · /v1/translations · /v1/classifications · /v1/extractions · /v1/decisions · /v1/vision · /v1/ai/run

Routes explicit targets, saved aliases and account-declared models. Fresh instances start with 48 aliases. Only an explicit 401, 403, 404 or 429 permits another attempt, with at most three accounts in total.

View routing precedence & credential domains ↗

✅ Capabilities

  • Preserves tool calling, strict schemas, and signed thinking replay metadata; adapts moondream and clairic/clef* over chat ingress
  • Enforces streamed JSON/binary/multipart byte budgets: Cloudflare 16 MiB, Makers 1 MiB, ESA 16 MiB / 4 fetches / 9s TTFB / 115s total

⛔ Explicit Limits / Rejections

  • Pre-flight rejects unsupported params with 400 (CF /v1/responses streaming, CF image n>1/url/mask, Aura speed!=1, HTTP POST on deepgram/flux)
  • modelMap is not an access-control allowlist; timeouts and 5xx errors never trigger duplicate retries

Parameters, Credentials & Budgets

Authorization / modelheaderBearer / stringRequired

Client key and model slug (supports upstream:<accountId>:<model>).

Status & Semantic Pre-Flight

200 OKStandard OpenAI response or SSE chunks