---
title: Poolside: Laguna XS.2 API | Text Generation | ModelsLab
description: Build with Poolside: Laguna XS.2 API by Poolside. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/poolside/poolside-laguna-xs.2.md
canonical: https://modelslab.com/models/poolside/poolside-laguna-xs.2.md
type: product
component: Playground/LLM/Index
generated_at: 2026-06-19T20:41:05.071922Z
---

Poolside: Laguna XS.2
---

 [LLMs.txt](https://modelslab.com/models/open_router/poolside-laguna-xs.2/llms.txt) [.md](https://modelslab.com/models/poolside/poolside-laguna-xs.2.md)

Poolside: Laguna XS.2
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Poolside: Laguna XS.2

poolside poolside-laguna-xs.2

Copy model ID

PricingInput $0.10 / 1M tokens

Output $0.20 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### open\_router/Meta: Llama 3.2 1B Instruct

meta-llama-llama-3.2-1b-instruct

From $0.11/M tokens](https://modelslab.com/models/open_router/meta-llama-llama-3.2-1b-instruct)

[#### open\_router/xAI: Grok 4.20 Multi-Agent

x-ai-grok-4.20-multi-agent

From $1.88/M tokens](https://modelslab.com/models/open_router/x-ai-grok-4.20-multi-agent)

[#### open\_router/Anthropic: Claude Opus 4

anthropic-claude-opus-4

From $45.00/M tokens](https://modelslab.com/models/open_router/anthropic-claude-opus-4)

[#### qwen/Qwen QwQ-32B

Qwen-QwQ-32B

From $1.20/M tokens](https://modelslab.com/models/qwen/Qwen-QwQ-32B)

[#### open\_router/Amazon: Nova 2 Lite

amazon-nova-2-lite-v1

From $1.40/M tokens](https://modelslab.com/models/open_router/amazon-nova-2-lite-v1)

[#### open\_router/Qwen: Qwen3 VL 235B A22B Instruct

qwen-qwen3-vl-235b-a22b-instruct

From $0.54/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-vl-235b-a22b-instruct)

[#### meta/Llama 3.1 Nemotron 70B Instruct HF

nvidia-Llama-3.1-Nemotron-70B-Instruct-HF

From $0.88/M tokens](https://modelslab.com/models/meta/nvidia-Llama-3.1-Nemotron-70B-Instruct-HF)

[#### open\_router/Mistral: Mistral Small 4

mistralai-mistral-small-2603

From $0.38/M tokens](https://modelslab.com/models/open_router/mistralai-mistral-small-2603)

[#### open\_router/Z.ai: GLM 4.6

z-ai-glm-4.6

From $1.08/M tokens](https://modelslab.com/models/open_router/z-ai-glm-4.6)

[#### open\_router/Meta: Llama 3.2 3B Instruct

meta-llama-llama-3.2-3b-instruct

From $0.19/M tokens](https://modelslab.com/models/open_router/meta-llama-llama-3.2-3b-instruct)

[#### open\_router/inclusionAI: Ling-2.6-1T

inclusionai-ling-2.6-1t

From $0.35/M tokens](https://modelslab.com/models/open_router/inclusionai-ling-2.6-1t)

[#### open\_router/LiquidAI: LFM2.5-1.2B-Thinking (free)

liquid-lfm-2.5-1.2b-thinking-free

Free](https://modelslab.com/models/open_router/liquid-lfm-2.5-1.2b-thinking-free)

[#### open\_router/Cohere: Command R7B (12-2024)

cohere-command-r7b-12-2024

From $0.09/M tokens](https://modelslab.com/models/open_router/cohere-command-r7b-12-2024)

[#### open\_router/Cohere: Command A

cohere-command-a

From $6.25/M tokens](https://modelslab.com/models/open_router/cohere-command-a)

[#### open\_router/Mistral: Devstral 2 2512

mistralai-devstral-2512

From $1.20/M tokens](https://modelslab.com/models/open_router/mistralai-devstral-2512)

[#### open\_router/Qwen: Qwen3.5-122B-A10B

qwen-qwen3.5-122b-a10b

From $1.17/M tokens](https://modelslab.com/models/open_router/qwen-qwen3.5-122b-a10b)

[#### openai/gpt-oss-20b

gpt-oss-20b

From $0.08/M tokens](https://modelslab.com/models/openai/gpt-oss-20b)

[#### open\_router/Meta: Llama 3.3 70B Instruct

meta-llama-llama-3.3-70b-instruct

From $0.21/M tokens](https://modelslab.com/models/open_router/meta-llama-llama-3.3-70b-instruct)

Open Source Alternatives
---

Explore open-source models that offer similar capabilities with full transparency and flexibility

 [View all open source models](https://modelslab.com/models?feature=llm&provider=open-source-models)

[MU

Popular](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab.com/models/modelslab/uncensored-chat)

About Poolside: Laguna XS.2
---

Laguna XS.2 is the second-generation model in the XS size class from \[Poolside\](https://poolside.ai/), their efficient coding agent series. It combines tool calling and reasoning capabilities with a compact footprint, offering...

### Technical Specifications

Model IDpoolside-laguna-xs.2

CategoryLLM Models

TaskText Generation

Price$0.15 per million tokens

AddedJune 18, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Poolside: Laguna XS.2 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "poolside-laguna-xs.2",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

Poolside: Laguna XS.2 API costs $0.150000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Poolside](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Poolside: Laguna XS.2 FAQ
---

### What is Poolside: Laguna XS.2?

Laguna XS.2 is the second-generation model in the XS size class from \[Poolside\](https://poolside.ai/), their efficient coding agent series. It combines tool calling and reasoning capabilities with a compact footprint, offering...

### How do I use the Poolside: Laguna XS.2 API?

You can integrate Poolside: Laguna XS.2 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "poolside-laguna-xs.2" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Poolside: Laguna XS.2 cost?

Poolside: Laguna XS.2 costs $0.150000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Poolside: Laguna XS.2 model ID?

The model ID for Poolside: Laguna XS.2 is "poolside-laguna-xs.2". Use this ID in your API requests to specify this model.

### Does Poolside: Laguna XS.2 have a free tier?

Yes, ModelsLab offers a free tier that lets you try Poolside: Laguna XS.2 and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-06-20*