Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content
Route model calls

Providers

Mubit routes a call to the provider named by the path prefix the call uses. This page lists the providers and what you set for each. It is for anyone choosing which page to open next.

For every provider, the change in your code is the same: use Mubit's base URL for the provider, and send your Mubit key where the provider's SDK sends its API key. Keep your model IDs and the rest of your code.

ProviderPrefixBase URL for the SDKKey headerGuide
OpenAI/openai/v1https://api.mubit.ai/openai/v1Authorization: BearerConnect with the OpenAI SDK
Anthropic/anthropichttps://api.mubit.ai/anthropicx-api-key, or Authorization: BearerConnect with the Anthropic SDK
Gemini/geminihttps://api.mubit.ai/geminix-goog-api-keyConnect with the Gemini SDK
OpenRouter, Groq, Together, Mistral/compat/{service}/v1https://api.mubit.ai/compat/{service}/v1Authorization: BearerOpenAI-compatible services
Neon AI Gatewaynone: chosen by your keysthe OpenAI, Anthropic or Gemini base URLthe same as that providerConnect with the Neon AI Gateway
Any of the above, without an SDKthe prefixes abovethe same as that providerConnect with plain HTTP

What every provider shares

  • One key from your app. The key in the header is your Mubit key, never the provider's. How a call is routed says which provider key Mubit uses for the call.
  • Your provider keys stay in the console. An admin adds them under Provider keys: see Provider keys.
  • The provider's own API. Paths, request bodies, answers and streams are the provider's. Mubit passes them on.
  • Recording. Mubit records each call by default. What Mubit records shows what is kept and how to lower it.
  • Errors. Mubit's own errors take the provider's error format. Errors from Mubit lists them.

The base URL

The base URL in the table is https://api.mubit.ai, plus the prefix. Use the base URL your console's Connect page shows.

Call Mubit from your server, not from a browser. The API answers no CORS preflight request, so a browser refuses to send the call.

Not served

  • A path outside these prefixes gets 404 unknown_route.
  • An organization or admin endpoint of a provider gets 403 admin_path_refused. Call the provider directly for those.
  • A service under /compat/ that isn't in the table gets 404 unknown_provider.