Route requests to
Fugu Ultra
with Merge Gateway

Apply your own routing policies, reduce token costs automatically, and see every routing decision in real time with Merge Gateway.

What Fugu Ultra costs to run

| Vendor | Input / 1M tokens | Output / 1M tokens | Zero data retention | | --- | ---: | ---: | --- | | Sakana | $5.00 | $30.00 | Yes |

Test Fugu Ultra
with Gateway’s Simulator

See a prompt's output, token spend, latency, and more with Fugu Ultra.

Route requests to Fugu Ultra in minutes

To get started in seconds, add our Gateway Implementation skill to your project, or pick your preferred SDK below. Check out our other quick start skills here.
Install the Merge Gateway SDK
Python
Copied!
1$ pip install merge-gateway-sdk
Send a request
Python
Copied!
1from merge_gateway import MergeGateway
2
3client = MergeGateway(api_key="YOUR_API_KEY")
4
5response = client.responses.create(
6    model="openai/gpt-5.2",
7    input=[
8        {"type": "message", "role": "system", "content": "You are a helpful programming tutor. Explain the concepts clearly with practical examples."},
9        {"type": "message", "role": "user", "content": "Explain the concept of recursion in programming with a simple set of examples."},
10    ],
11)
12
13print(response.output[0].content[0].text)
Try a diffrent model
Swap the model string to route to a different provider. No other code changes needed.
Anthropic
Copied!
1response = client.responses.create(
2    model="anthropic/claude-sonnet-4-20250514",
3    input=[
4        {"type": "message", "role": "system", "content": "You are a helpful programming tutor. Explain the concepts clearly with practical examples."},
5        {"type": "message", "role": "user", "content": "Explain the concept of recursion in programming with a simple set of examples."},
6    ],
7)
Point to Gateway
Python
Copied!
1from openai import OpenAI
2
3client = OpenAI(
4    api_key="YOUR_API_KEY",
5    base_url="https://api-gateway.merge.dev/v1/openai",
6)
Send a request
Use the standard chat.completions.create method. No provider prefix needed on the model name.
Python
Copied!
1response = client.chat.completions.create(
2    model="gpt-5.2",
3    messages=[
4        {"role": "system", "content": "You are a helpful programming tutor. Explain the concepts clearly with practical examples."},
5        {"role": "user", "content": "Explain the concept of recursion in programming with a simple set of examples."},
6    ],
7)
8
9print(response.choices[0].message.content)
Install packages
Copied!
1npm install merge-gateway-ai-sdk-provider ai
Create the provider
TypeScript
Copied!
1import { createMergeGateway } from "merge-gateway-ai-sdk-provider";
2
3const gateway = createMergeGateway({
4  apiKey: "YOUR_API_KEY",
5});
Send a request
Use generateText to send a request. Model names use the provider/model format.
TypeScript
Copied!
1import { generateText } from "ai";
2
3const { text } = await generateText({
4  model: gateway("openai/gpt-4o"),
5  prompt: "Explain the concept of recursion in programming with a simple set of examples.",
6});
7
8console.log(text);
If you already have @ai-sdk/openai installed, point it at Gateway with a base URL change:
TypeScript
Copied!
1import { createOpenAI } from "@ai-sdk/openai";
2
3const gateway = createOpenAI({
4  apiKey: "YOUR_API_KEY",
5  baseURL: "https://api-gateway.merge.dev/v1/ai-sdk",
6});
7
8// All generateText/streamText calls work unchanged
Install the Merge Gateway SDK
Anthropic SDK
Copied!
1from anthropic import Anthropic
2
3client = Anthropic(
4    api_key="YOUR_API_KEY",
5    base_url="https://api-gateway.merge.dev/v1/anthropic",
6)
7
8message = client.messages.create(
9    model="claude-sonnet-4-20250514",
10    max_tokens=1024,
11    messages=[
12        {"role": "user", "content": "Explain the concept of recursion in programming with a simple set of examples."},
13    ],
14)
15
16print(message.content[0].text)

Explore other models available in Merge Gateway

model logo
Amazon Nova 2 Lite
model logo
Amazon Nova 2 Lite
model logo
Amazon Nova 2 Sonic
model logo
Amazon Nova Lite
model logo
Amazon Nova Micro
model logo
Amazon Nova Premier
model logo
Amazon Nova Pro
model logo
Amazon Nova Pro
model logo
Claude 3.7 Sonnet
model logo
Claude 3.7 Sonnet
model logo
Claude 4 Opus 20250514
model logo
Claude Fable 5
model logo
Claude Fable 5
model logo
Claude Haiku 4.5 (20251001)
model logo
Claude Opus 4.1 (20250805)
model logo
Claude Opus 4 (20250514)
model logo
Claude Opus 4.5 (20251101)
model logo
Claude Opus 4.6
model logo
Claude Opus 4.6
model logo
Claude Opus 4.7
model logo
Claude Opus 4.7
model logo
Claude Opus 4.8
model logo
Claude Opus 4.8
model logo
Claude Opus 5

Fugu Ultra FAQ

Have more questions about Fugu Ultra? We've answered a few more below. This was written in July, 2026 and is subject to change.

Heading

What is Sakana AI, and how does the Fugu system work?

Sakana AI is a Tokyo-based research lab, and its served lineup is deliberately narrow: it centers on the Fugu multi-agent system rather than a broad tier of standalone LLMs.

Fugu Ultra is its flagship configuration, the one tuned for maximum answer quality by coordinating a deeper pool of expert agents. A few things worth knowing about the lineup:

  • Fugu, the system: rather than a single set of weights, Fugu is a learned orchestrator that coordinates a pool of frontier models behind one OpenAI-compatible API, and Fugu Ultra is its highest-quality tier
  • Research pedigree: Sakana is best known for research like evolutionary model merging and automated research agents, which is the lineage the Fugu orchestration approach comes out of
  • Focused availability: unlike the major labs, Sakana does not offer a wide mini/standard/flagship catalog, so when Fugu Ultra is more than a task needs, you route to models from other providers (see below)

How does Fugu Ultra differ from a conventional single model?

Fugu Ultra is not a single model answering directly. it's an orchestrator that routes a request across a pool of frontier models and composes their work. That shapes where it fits:

  • Architecture: it behaves like one model through a single API, but internally coordinates multiple expert agents, which is what drives its quality on hard, multi-step problems
  • Quality focus: it's tuned for maximum accuracy and depth on demanding work like AI research, paper reproduction, cybersecurity analysis, and patent or literature investigation, and stands with leading models on rigorous reasoning benchmarks
  • Context window: it supports up to 1,000,000 tokens, with pricing that steps up for contexts beyond 272K tokens
  • Pricing: at $5 input and $30 output per million tokens, it sits at the premium end, reflecting the multi-agent work happening per request

Fugu Ultra is the right pick when answer quality on a hard, open-ended problem matters more than latency or cost. For routine or high-volume tasks, a single fast model is the better fit.

What models should I consider using alongside Fugu Ultra?

No single model is optimal for every task. Here are models worth pairing with Fugu Ultra depending on what your product needs:

  • Gemini 3 Flash: route simple, high-volume, latency-sensitive requests here instead of paying Fugu Ultra's premium for work that doesn't need multi-agent depth
  • DeepSeek V4 Pro: cost-efficient frontier reasoning for mid-complexity tasks that sit between "simple" and "needs Fugu Ultra"
  • Claude Opus 4.8: an alternative single-model frontier for hard reasoning, useful as a fallback or to sanity-check Fugu Ultra's output on critical work
  • GPT-4.1: for agentic, tool-heavy workflows where you want predictable single-model behavior rather than internal orchestration

What are the challenges of using Fugu Ultra in my product?

Like any production LLM, Fugu Ultra comes with tradeoffs worth planning for:

  • Premium pricing: at $5 input and $30 output per million tokens, and higher rates above 272K-token context, it's one of the more expensive options, and multi-agent orchestration consumes more tokens per request than a single model
  • Latency: coordinating a pool of expert agents adds overhead, so it isn't suited to real-time or interactive use where fast responses matter
  • Less predictable behavior: because it decides internally which agents to run, cost and response characteristics per request are harder to forecast than with a single model
  • Provider dependency: relying on Sakana alone means an outage or a model change stalls the workloads that depend on it
  • Cost at scale: as request volume grows, Fugu Ultra's per-request token use compounds quickly without active budget controls

Why should I use Merge Gateway to route LLM requests with Fugu Ultra and every other model?

Using Fugu Ultra through Merge Gateway gives you access to the model itself and the infrastructure layer around it:

  • Cost governance first: given Fugu Ultra's premium pricing, Merge lets you set hard or soft project budgets so spend stays within plan, and attributes every request to a model, project, and tag in one billing dashboard across providers
  • Intelligent routing and automatic failover: Merge routes around Sakana outages automatically, and cost, latency, or quality policies can reserve Fugu Ultra for the hard requests while cheaper models take the rest, cutting spend by 40 to 60% with no application code changes
  • One API, every provider: reach Fugu Ultra and every other major LLM through a single endpoint and API key, switching providers by swapping the model string
  • Build Your Own Router: define what "best" means with curated ML benchmarks or your own eval scores, so the router sends only the requests that justify Fugu Ultra's cost to Fugu Ultra, and explains each decision
  • Security and compliance controls: apply DLP rules and prompt injection protection before any request reaches Sakana, and enforce per-project model and region policies outside your application

How can I start routing requests to Fugu Ultra via Merge Gateway?

Getting Fugu Ultra running through Merge Gateway takes a few minutes:

1. Create an account and get your API key from the dashboard.

2. Install the Merge Gateway SDK: run pip install merge-gateway-sdk (Python) or npm install merge-gateway-sdk (Node). Alternatively, if you're already using the OpenAI SDK, set base_url = "https://api-gateway.merge.dev/v1/openai" and your existing code works as-is.

3. Make your first request using the provider/model format. For Fugu Ultra, the model string is sakana/fugu-ultra. Swap the model string to route to any other provider without changing anything else.

4. Configure a routing policy in the dashboard to set failover behavior, cost limits, and optimization strategy. Your first policy can be as simple as naming Fugu Ultra as primary with one fallback.

Full setup instructions and SDK references are in the Merge Gateway docs.

Try Fugu Ultra through Merge Gateway

Route, observe, and control AI requests across providers from one API.