Skip to main content

Introduction

Smart Routing is an intelligent model routing capability that automatically assigns requests to the most suitable model based on the complexity of the input task. By dividing tasks into three levels — simple, complex, and ultra (flagship) — Smart Routing can effectively reduce API call costs while maintaining output quality. Ultra serves as the price benchmark.

Usage Constraints

Cache Capability Constraints During routing, the caching feature will be affected. Different models have different caching mechanisms and cache nodes. When switching models, the cache will be flushed and cannot be reused. Request Body Structure Constraints Smart Routing uses the /v1/chat/completions endpoint. When the routing target is a Claude series model, it can only work through OpenAI compatibility mode. For feature constraints after compatibility, please refer to the Anthropic official documentation OpenAI SDK compatibility.

Usage Guide

  1. Create a route
Smart Routing 1
  1. Create an API key for the route node
Smart Routing 2
  1. Select the Default group for the API key
Smart Routing 3
  1. Set the corresponding models for the three levels: simple, complex, and ultra
Smart Routing 4
  1. Configure and route through the smart gateway
  • Communication endpoint: https://api.mixroute.ai/v1/chat/completions
  • Model name: auto
  • API Key: Use the route’s API key