Laguna S 2.1 overview
Laguna S 2.1 by Poolside
Laguna S 2.1 is a chat model from Poolside for text and image inputs, with reasoning, function calling, structured text outputs and web search.
Laguna S 2.1 specs
- Model ID
poolside/laguna-s-2.1- Developer
- Poolside
- Context window
- 1,048,576 tokens
- Max output
- 131,072 tokens
- Input
- Text, Image
- Output
- Text
- API
- OpenAI-compatible, base URL
https://api.aimlapi.com/v1
Use cases
Laguna S 2.1 is documented as suited to long-running coding and research tasks, including work that spans extended tool use and validation loops. It is also described as useful when an agent needs to hold onto a goal over time, recover from failed approaches, and keep making progress.
It is documented as capable of pursuing meaningful engineering work, including building a working HTML/CSS rendering engine from scratch without human intervention. The model is also presented as suitable for agentic coding in terminal or developer-harness workflows where it plans, edits files, runs code, reads results, and continues for hours.
Poolside also describes it as usable for local deployment on high-memory hardware, including a single NVIDIA DGX Spark. This makes it suitable for teams that want to run high-volume agentic work on hardware they control rather than through metered APIs.
Capabilities
- Function calling
- Reasoning
- Streaming
- Structured outputs
- Vision
- Web search
Laguna S 2.1 API pricing
| Usage | Price | Unit |
|---|---|---|
| Input | $0.0952 | 1M tokens |
| Output | $0.1904 | 1M tokens |
| Cached input | $0.0063 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Laguna S 2.1 vs other models: token prices
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.0952 | $0.1904 | |
| Laguna XS 2.1 | $0.0635 | $0.127 |
| $0.0466 | $0.1873 | |
| $0.0635 | $0.1904 | |
| $0.05 | $0.2 |
How to use the Laguna S 2.1 API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl '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": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "poolside/laguna-s-2.1",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = 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": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
Laguna S 2.1 FAQ
What is the context window of Laguna S 2.1?
Laguna S 2.1 has a 1,048,576 tokens context window and can return up to 131,072 tokens.
What inputs and outputs does Laguna S 2.1 support?
Laguna S 2.1 takes text, image as input and returns text.
What is the model ID for Laguna S 2.1?
Use poolside/laguna-s-2.1 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
When was Laguna S 2.1 released?
Laguna S 2.1 became available on July 21, 2026.
How much does Laguna S 2.1 cost?
Laguna S 2.1 costs $0.0952 input and $0.1904 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Does Laguna S 2.1 support streaming?
Yes, Laguna S 2.1 can stream responses as they are generated.
Can Laguna S 2.1 read images?
Yes, Laguna S 2.1 accepts image input alongside text.
Who created Laguna S 2.1?
Laguna S 2.1 was built by Poolside.

