API Overview

What is the MultiRoute API?

The MultiRoute API provides a unified interface to multiple AI providers and models. It standardizes request and response formats so that your backend can call a single API while MultiRoute handles routing, fallback, and provider-specific details.

Use this overview to understand the base URL, versioning, environments, and the major endpoint families.

Base URL

The canonical production base URL is:

https://api.multiroute.ai/v1

All examples in this documentation assume this base URL unless otherwise specified.

Versioning

The MultiRoute API uses a path-based versioning strategy:

When constructing requests, always include the version prefix in the path (for example, POST /v1/chat/completions).

Environments

MultiRoute supports different environments for development and production:

Your actual local base URL may vary depending on how you run the service (Docker, Kubernetes, etc.), but it must always include the /v1 prefix.

Authentication (high level)

All requests to the MultiRoute API must be authenticated. The primary mechanism is an API key passed in the Authorization header:

For some administrative endpoints (such as configuration and key management), a JWT-based flow may also be available:

See Authentication for complete details, including how to obtain keys, token lifetimes, and best practices for secure storage.

Major endpoints

The table below summarizes the primary endpoint families available under /v1:

Endpoint family Example path Methods Description
Chat completions /v1/chat/completions POST Text and chat-based completions, with support for streaming and non-streaming responses.
Responses /v1/responses POST Higher-level response API that handles prompt formatting and response shaping on top of underlying model calls.
Images (beta) /v1/images/generations POST Generate images from text prompts. This endpoint is experimental and may change.
Config /v1/config GET, POST Read and update routing and provider configuration for your account or workspace.
API keys /v1/api-keys GET, POST, DELETE Manage API keys: list, create, revoke, and rotate keys.

For detailed request and response schemas, see the dedicated pages: