import requests r = requests.post( "https://api.aimlapi.com/v1/chat/completions", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "sakana/fugu-max", "messages": [ { "role": "user", "content": "Hello!" } ] }, ) print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", { method: "POST", headers: { Authorization: `Bearer ${process.env.AIMLAPI_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "model": "sakana/fugu-max", "messages": [ { "role": "user", "content": "Hello!" } ] }), }); console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \ -H "Authorization: Bearer $AIMLAPI_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"sakana/fugu-max","messages":[{"role":"user","content":"Hello!"}]}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Fugu Max This page | Multi-agent orchestration at scale | |||
| Reasoning + agents | ||||
| Deep reasoning + long-context agents | ||||
| Reasoning + agents | ||||
| Long-context, multimodal & agentic workflows |
Fugu Max is the cost-performance model in Sakana AI's Fugu family. Like Fugu Ultra it is a learned multi-agent orchestration system rather than a monolithic language model, trained to route tasks across a swappable pool of underlying models and to recursively call instances of itself.
It keeps the family's 1,000,000-token context window and the same input types, trading some of Ultra's peak reasoning depth for a substantially lower price per token.
Sakana AI.
1,000,000 tokens, with up to 128,000 tokens of output.
It takes image, text and file input and returns text.
Yes. It supports function calling, structured outputs, streaming, reasoning and web search.
Everyday coding and review, user-facing assistants, long-document processing and high-volume agentic pipelines where Ultra's pricing would not scale.
Send a request to the chat completions endpoint with the model id sakana/fugu-max. The model also answers to the alias fugu-max.