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.

Modalities
Text, ImageText
In / Out price
$0.0952/$0.1904per 1M
Context window
1.05M tokens
Released
Jul 20, 2026

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

Laguna S 2.1 pricing in US dollars
UsagePriceUnit
Input$0.09521M tokens
Output$0.19041M tokens
Cached input$0.00631M 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.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Laguna S 2.1$0.0952$0.1904
Laguna XS 2.1$0.0635$0.127
Hy-MT2-1.8B$0.0466$0.1873
Ling 3.0 Flash VL$0.0635$0.1904
GPT OSS 20B$0.05$0.2

How to use the Laguna S 2.1 API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export 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."
    }
  ]
}'

Related articles

All posts

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.

Start building with Laguna S 2.1

Laguna S 2.1 API

poolside/laguna-s-2.1

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export 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."
    }
  ]
}'