> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openserv.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Multipath for branching instructions

> Make complex, branching system prompts easier for the model to follow.

<Frame>
  <img src="https://mintcdn.com/openserv/wCXyJJTiOX6drWSJ/images/tutorials/multipath.webp?fit=max&auto=format&n=wCXyJJTiOX6drWSJ&q=85&s=77ba71b4e5fcf1d97bd24d1efc2dfc40" alt="One complex instruction branching into parallel reasoning paths and reconciling into one result" width="1536" height="1024" data-path="images/tutorials/multipath.webp" />
</Frame>

Multipath uses a separate SERV reasoning transformation for instructions with several branches, exceptions, or competing rules. It keeps the source prompt as the task context while making the procedural logic explicit before the model runs.

## Enable Multipath

Add `-serv-multipath` to a supported base model ID. The suffix is a model feature, not an application tool, so you do not add a function definition or implement a handler for it.

```js theme={null}
const response = await client.chat.completions.create({
  model: "gpt-5.4-mini-serv-multipath",
  messages: [
    {
      role: "system",
      content: "Route each request by account type, verification status, region, and escalation priority.",
    },
    { role: "user", content: "A verified business customer in the EU reports a payment failure." },
  ],
});
```

SERV removes the feature suffix before routing to the upstream provider. Use a real base model from the [model catalog](../models), then append `-serv-multipath` exactly once.

## Combine Multipath with Kronos

For complex branching rules that also need semantic auditing, combine the features in one suffix:

```js theme={null}
const response = await client.chat.completions.create({
  model: "gpt-5.4-mini-serv-kronos-multipath",
  messages,
});
```

The order does not change the selected features. `-serv-multipath-kronos` is also recognized, but use one consistent spelling across your integration.

## When to use it

Use Multipath for decision trees, policy matrices, routing rules, and instructions where different conditions lead to different outcomes. For a short, linear system prompt, start with the standard SERV model and measure before adding the feature.

Multipath does not execute branches or authorize actions in your application. Keep business rules, permissions, and side-effect checks in your code.

The transformation adds SERV prompt-generation work and may increase latency and cost. Prompt caching can reuse a matching Multipath transformation; the upstream model still runs for every request. See [Monitor usage and billing](./usage-and-billing).
