# Bypassing MoA

URL: https://interfaze-landing-1am6r0242-jigsaw-stack.vercel.app/docs/bypass-moa

Run only the raw transformer layer for lower latency when you don't need task-specific accuracy.

## Turning it on

Skip MoA for a request with the `x-interfaze-bypass-moa` header:

```text
x-interfaze-bypass-moa: true
```

The [Interfaze SDK](https://interfaze-landing-1am6r0242-jigsaw-stack.vercel.app/docs/integrations/interfaze-sdk) and the native [Vercel AI SDK](https://interfaze-landing-1am6r0242-jigsaw-stack.vercel.app/docs/integrations/vercel-ai-sdk) and [LangChain](https://interfaze-landing-1am6r0242-jigsaw-stack.vercel.app/docs/integrations/langchain-sdk) integrations all expose this as a client option — set `bypassMoA: true` (`bypass_moa=True` in Python) when creating the client and the header is added for you. With any other SDK, set the header as a default header on the client so every request carries it.

**Interfaze SDK · typescript**

```typescript
import { Interfaze } from "interfaze";

const interfaze = new Interfaze({
  apiKey: process.env.INTERFAZE_API_KEY,
  bypassMoA: true, // run the raw model layer only
});
```

**Vercel AI SDK · typescript**

```typescript
import { createInterfaze } from "@interfaze-ai/ai-sdk";

const interfaze = createInterfaze({
  apiKey: process.env.INTERFAZE_API_KEY,
  bypassMoA: true, // run the raw model layer only
});
```

**LangChain SDK · typescript**

```typescript
import { ChatInterfaze } from "@interfaze-ai/langchain";

const interfaze = new ChatInterfaze({
  apiKey: process.env.INTERFAZE_API_KEY,
  bypassMoA: true, // run the raw model layer only
});
```

**Interfaze SDK · python**

```python
import os
from interfaze import Interfaze

interfaze = Interfaze(
    api_key=os.environ["INTERFAZE_API_KEY"],
    bypass_moa=True,  # run the raw model layer only
)
```

**LangChain SDK · python**

```python
import os
from interfaze_langchain import ChatInterfaze

interfaze = ChatInterfaze(
    api_key=os.environ["INTERFAZE_API_KEY"],
    bypass_moa=True,  # run the raw model layer only
)
```

## What you lose

With MoA bypassed, the model no longer runs the specialized tasks behind the scenes, so responses come back without [precontext](https://interfaze-landing-1am6r0242-jigsaw-stack.vercel.app/docs/precontext) and the accuracy gains on OCR, web search, scraping, transcription, and other task-specific work go away.

If you want the raw output of one specialized task without the full model, [run tasks](https://interfaze-landing-1am6r0242-jigsaw-stack.vercel.app/docs/run-tasks) is the better tool. It is both faster and cheaper than a full request, and you keep the specialized accuracy.
