Skip to main content
Routeway Server Tools allow language models to execute server-side actions — such as generating images or searching the internet in real time — without requiring any client-side tool definitions or complex API schemas. Server tools work directly in chat requests with zero extra setup: simply append the tool tag to your model ID using @ syntax and start chatting.
Unlike custom function calling (where your application code receives tool calls and executes them locally), Server Tools are handled entirely on Routeway’s infrastructure. Results are seamlessly integrated into the model’s response.

Available Server Tools


Image Generation

The Image Generation tool lets language models create visual content right from your chat prompt. To enable Image Generation, combine a base text model with an image model using @:
For example, using qwen3.8-max-preview@flux-2-turbo routes your prompt to qwen3.8-max-preview, which can trigger flux-2-turbo to render the requested image.

How It Works

  1. Send a request with an @<image_model> tag in the model field.
  2. Ask the model to generate an image (e.g., “Draw a majestic lion sitting on a cliff at sunset”).
  3. The server tool generates the image in a few seconds and returns it in the response as an inline HTML <img> element.

Response Format

The server tool delivers generated images as an inline HTML <img> tag directly inside the message content:

Example Payloads

Client Rendering & Compatibility

Rendering behavior depends on your chat client or frontend interface:

Inline Rendering (e.g. SillyTavern)

Most chat clients (like SillyTavern, LibreChat, or custom web UI frontends) automatically render HTML <img> tags inline within the chat stream.

Manual Link Viewing (e.g. JanitorAI)

Some chat clients (like JanitorAI) do not automatically render HTML image tags inline. In these clients, copy the image URL from the src attribute (e.g. https://api.routeway.ai/images/...) and open it in your browser to view the image.

Example: SillyTavern

In SillyTavern, generated images appear inline in the chat when you use a model tagged with an image server tool (for example qwen3.8-max-preview@flux-2-turbo):
SillyTavern chat showing an image generated inline via Routeway Server Tools
To display these images in SillyTavern, open User Settings (gear icon) on the top menu bar and disable Forbid External Media.

The Online Search tool connects language models to live internet data. To enable Online Search, append @online to your model ID:
For example, qwen3.8-max-preview@online or gpt-4o@online.

How It Works

  1. Send a request with @online appended to the model name.
  2. Ask a question about current events, recent releases, live stock prices, or up-to-date information.
  3. When the model needs additional real-time context, it automatically searches Google, processes the results, and incorporates fresh data into its answer.
Use @online when asking models about events after their knowledge cutoff date or for real-time information such as live sports scores, current news, or market data.

Pricing


Code Examples

You can use Server Tools with standard OpenAI SDKs or HTTP requests by passing the tagged model name in the model parameter.

Best Practices

No extra configuration

Server tools require no code updates or schema changes. Simply set the model ID string with the desired @ tag.

Choose compatible image models

Combine text models with any available image generation model supported by Routeway (such as flux-2-turbo).

Check client rendering capabilities

If your chat UI doesn’t display images directly inline, extract the image URL from the returned src attribute.

Use @online for up-to-date queries

Add @online whenever your application requires access to live web data, current events, or real-time search results.