Using Laguna S 2.1 on Vercel AI Gateway
Implementation guide · Laguna · Poolside
Serverless
Open WeightsVercel AI Gateway exposes Laguna S 2.1 through model ID poolside/laguna-s-2.1. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-10-19. Next refresh: weekly.
Quick Start
- 1
- 2Use the Vercel AI Gateway SDK or REST API to call
poolside/laguna-s-2.1— see the documentation for request format. - 3
Code Examples
Install
pip install openaiAPI key
AI_GATEWAY_API_KEYModel ID
poolside/laguna-s-2.1creator/model-name e.g. kwaipilot/kat-coder-pro-v2
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],
base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
model="poolside/laguna-s-2.1",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.09 |
| Output tokens | $0.18 |
Capabilities
ReasoningJSON / Tool use
About Laguna S 2.1
Laguna S 2.1 is Poolside's open-weight agentic coding MoE (118B-A8B). Announced 2026-07-21. FP paid endpoint $0.10/$0.20 per 1M (cache $0.01). License OpenMDW-1.1.
Model Specs
Released2026-07-21
Parameters118B-A8B
Context1M
ArchitectureMixture of Experts