> ## 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.

# Compare Raw mode with SERV

> Run the same request with and without SERV Reasoning.

<Frame>
  <img src="https://mintcdn.com/openserv/wCXyJJTiOX6drWSJ/images/tutorials/compare-raw-and-serv.webp?fit=max&auto=format&n=wCXyJJTiOX6drWSJ&q=85&s=6ab545decee855b2df07ff398c93a94a" alt="An identical prompt traveling through raw and SERV reasoning paths for comparison" width="1536" height="1024" data-path="images/tutorials/compare-raw-and-serv.webp" />
</Frame>

The Playground is the easiest way to compare outputs. For a code-based comparison, send one normal request and one request with the `x-openserv-disable-braid: true` header.

The header bypasses SERV reasoning for that request and bills the request at the upstream tier. It is useful for an experiment or fallback path, not as a replacement for normal feature configuration.

```js theme={null}
const messages = [
  { role: "system", content: "You are a careful refund-policy reviewer." },
  { role: "user", content: "Does this refund request meet the policy? Explain why." },
];

const serv = await client.chat.completions.create({ model: "gpt-5.4-mini", messages });
const rawResponse = await fetch("https://inference-api.openserv.ai/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SERV_API_KEY}`,
    "Content-Type": "application/json",
    "x-openserv-disable-braid": "true",
  },
  body: JSON.stringify({ model: "gpt-5.4-mini", messages }),
});
const raw = await rawResponse.json();

console.log({ serv: serv.choices[0].message.content, raw: raw.choices[0].message.content });
```

Compare task success, failure rate, latency, token usage, and total cost—not only one impressive response.

Keep the model, input, system prompt, tools, and sampling settings identical between runs. Run enough examples to include normal, edge, incomplete, and adversarial cases.
