Skip to main content

Overview

LiteLLM can be deployed as an internal proxy in front of MixRoute. Applications call LiteLLM, and LiteLLM forwards requests to MixRoute while providing unified authentication, model discovery, Dashboard management, virtual keys, and usage records. LiteLLM official Docker Compose deployment guide: https://docs.litellm.ai/docs/proxy/deploy

Docker Compose deployment

Prepare three files:
.env:
docker-compose.yml:
Start LiteLLM:

Connect MixRoute

MixRoute Base URL:
Configure LiteLLM in config.yaml:
openai/ is the LiteLLM OpenAI-compatible provider prefix. It does not mean that the upstream model must come from OpenAI.

Client usage

OpenAI-compatible Base URL:
Request header:
List models:
Use the returned model IDs in requests, for example openai/gpt-5.5, anthropic/claude-sonnet-5, gemini/gemini-2.5-flash, or the alias o3-mini.

Verification

Gemini generateContent uses the LiteLLM frontend path /v1beta/models/gemini/<model-id>:generateContent; the upstream MixRoute base remains https://api.mixroute.ai/v1.