Laguna S 2.1 API

Laguna S 2.1 is a 118B-parameter Mixture-of-Experts model from Poolside with only 8B active parameters per token, built for agentic coding and long-horizon reasoning. It scores 70.2% on Terminal-Bench 2.1 and 78.5% on SWE-Bench Multilingual — leading all open disclosed-size models in its class. Supports thinking and no-thinking modes, tool calling, vision, and a 1M token context window.
Context
1,048,576 tokens
Input
$0.078 / 1M
Output
$0.156 / 1M
Released
Jul 21, 2026

How to use Laguna S 2.1 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to poolside/laguna-s-2.1.

import requests

r = requests.post(
"https://api.aimlapi.com/v1/chat/completions",
headers={"Authorization": "Bearer " + AIMLAPI_KEY},
json={
"model": "poolside/laguna-s-2.1",
"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": "poolside/laguna-s-2.1",
   "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":"poolside/laguna-s-2.1","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Laguna S 2.1 API Pricing

TypePrice
Input
$0.078 / 1M tokens
Output
$0.156 / 1M tokens

The full 1M context window is included at standard pricing

Laguna S 2.1 vs other models

ModelInputOutputContextBest for
Laguna S 2.1
This page
$0.078 / 1M
$0.156 / 1M
1,048,576 tokens
Agentic coding + long-horizon reasoning
$0.182 / 1M
$0.364 / 1M
1M tokens
Reasoning + agents
$0.65 / 1M
$3.25 / 1M
1M tokens
Coding + agents
$3.9 / 1M
$19.5 / 1M
1M tokens
Long-context, multimodal & agentic workflows
$2.6 / 1M
$7.8 / 1M
1M tokens
Multimodal reasoning + agents

Start building with Laguna S 2.1

Get API Key
1000+ models, one API.