Skip to main content

API Reference

The LLM Router API is fully compatible with the OpenAI API specification, allowing you to switch from OpenAI (or any other provider) with minimal or zero code changes. Base URL
All requests require authentication using your LLM Router API key:

Supported Endpoints


Core Features

LLM Router extends the standard OpenAI format with a powerful gateway object that enables:
  • Intelligent model routing using tags
  • Automatic Skill injection (enableAutoSearch)
  • Zero Data Retention (ZDR)
  • Context compression & pruning
  • PII redaction
  • Custom routing rules

Example Request with Advanced Features


Philosophy

LLM Router gives you the best of both worlds:
  • Full OpenAI compatibility → Drop-in replacement
  • Powerful extensions → Smart routing, Skills, privacy, and optimization
You can start simple (just change the base URL) and gradually unlock advanced features as needed.