What is Laguna XS 2.1 API?
Laguna XS 2.1 is available through AIMLAPI.
Technical Specifications
- Supported inputs: Image, Text
- Output: Text
- Context window: 262,144 tokens / Max output: 32,768 tokens
- Endpoint: /chat/completions
Performance Benchmarks
[embed]
Laguna XS 2.1 API Pricing
- Input: $0.078 / 1M tokens
- Output: $0.156 / 1M tokens
Where to Use Laguna XS 2.1
Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.
Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.
Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.
Code Sample
[embed]
Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.
Agentic coding is a documented use case for Laguna XS 2.1, including software engineering work and rapid agentic iteration in Poolside’s coding agent.
Long-horizon coding work is another documented use case, with the model described as suited to long-horizon work on local machines and long-horizon coding work.
Terminal-style tasks are explicitly listed as a use case, including tool-use workflows and shell-driven multi-step tasks.
Local text generation is also documented as an intended use case for the model.
import requests r = requests.post( "https://api.aimlapi.com/v1/chat/completions", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "poolside/laguna-xs-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-xs-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-xs-2.1","messages":[{"role":"user","content":"Hello!"}]}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
| Benchmark | Score | What it measures | Source | Retrieved |
|---|---|---|---|---|
| SWE-bench Verified | 70.9% | Resolving verified real GitHub issues | Source | September 21, 2026 |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Laguna XS 2.1 This page | Reasoning + agents | |||
| Reasoning + agents | ||||
| Balanced coding + agents | ||||
| Long-context, multimodal & agentic workflows | ||||
| Reasoning + agents |
Laguna XS 2.1 has a 262,144 tokens context window and can return up to 32,768 tokens.
Laguna XS 2.1 takes image, text as input and returns text.
Use poolside/laguna-xs-2.1 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Laguna XS 2.1 is priced at input $0.082524 / 1M tokens, output $0.165048 / 1M tokens, cached input $0.041262 / 1M tokens.
Yes, Laguna XS 2.1 can stream responses as they are generated.
Yes, Laguna XS 2.1 accepts image input alongside text.
Yes, it supports function calling, parallel tool calls, and structured output.