/v1/chat/completions format, so any existing client or SDK works without changes.
Routeway supports the same request and response schema as the OpenAI Chat Completions API. Point your base URL to
https://api.routeway.ai/v1 and you’re set.Quick Example
- Python
- Node.js
- cURL
Response Shape
A successful response looks like this:Request Model
These are the most common fields you can include in a Chat Completions request:Learn More
Streaming
Receive tokens as they are generated for real-time output.
Tool Calling
Let the model invoke functions and external tools.
Server Tools
Use image generation and online search via model tag syntax.
Structured Outputs
Constrain responses to JSON or a specific schema.
Reasoning
Use extended thinking for complex multi-step problems.
Multimodal Inputs
Send images and other media alongside text messages.
Caching
Reduce costs and latency with prompt caching.
Service Tiers
Trade cost for speed with flex and priority processing.
Presets
Apply reusable configurations to your requests.