Skip to main content
The Chat Completions API is the primary way to interact with language models through Routeway. Send a list of messages and receive a model-generated response. The endpoint is fully compatible with OpenAI’s /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.
New: Append @flux-2-turbo or @online to any model ID to generate images or search the web directly in chat — no client-side tool setup required. See Server Tools.

Quick Example


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.