LibreChat works well with ModRouter through the plain OpenAI-compatible /v1 API.

Endpoint

Set MODROUTER_BASE_URL from the LibreChat runtime environment to the ModRouter root URL reachable by LibreChat.

Example Provider

Add a custom OpenAI-compatible endpoint in librechat.yaml:
Set the API key to a ModRouter virtual key when governance auth is enabled.

Images and Vision

LibreChat can send image generation and vision requests through ModRouter when the selected model/provider supports the corresponding OpenAI-compatible endpoint. Use explicit model IDs such as openai/gpt-image-1 or another image-capable provider/model configured in ModRouter.