Syntax
Routing Logic
- Feature Scope (v0.1): Currently tests against the
apitype and an optionalstreamboolean. - Top-to-Bottom Execution: The first match wins based on appearance order in the file. Always put your most specific rules first, and general catch-all rules at the bottom.
- Strict Rejection: If a provider is selected (e.g. via load balancing) but no match is found inside its config file, the request is rejected with HTTP 400. ONR does not silently fallback; you must explicitly define matching rules.
Supported API Values
Theapi identifier is aligned with standard OpenAI-style endpoints (and specific extensions):
completionschat.completionsresponsesclaude.messagesembeddingsimages.generationsimages.editsaudio.speechaudio.transcriptionsaudio.translationsgemini.generateContent(Gemini native:POST /v1beta/models/{model}:generateContent)gemini.streamGenerateContent(Gemini native:POST /v1beta/models/{model}:streamGenerateContent?alt=sse)gemini.predictLongRunning(Gemini native long-running video prediction)gemini.getOperation(Gemini native: poll a long-running operation)gemini.videoContent(Gemini native: fetch completed video content)videos.get(OpenAI-style async video task poll)videos.content(OpenAI-style async video content fetch)videos.delete(OpenAI-style async video task cancel/delete)seedance.videos.generations(Volcengine Ark Seedance:POST /api/v3/contents/generations/tasks)seedance.videos.get(Volcengine Ark Seedance:GET /api/v3/contents/generations/tasks/{id})seedance.videos.delete(Volcengine Ark Seedance:DELETE /api/v3/contents/generations/tasks/{id})minimax.videos.generations(Minimax H3:POST /v2/video_generation)minimax.videos.get(Minimax H3:GET /v2/query/video_generation/{task_id})minimax.videos.delete(Minimax H3:DELETE /v2/video_generation/{task_id})minimax.h3_context_ir(Minimax H3 Context IR:POST /v2/h3_context_ir)minimax.videos.regeneration(Minimax H3:POST /v2/video_regeneration)