Draft isolated functions
Provide a signature, examples and edge cases. Ask for the smallest implementation that meets the contract.
laguna-xs-2.1by poolside Open weightsopenmdw-1.1
From€0.0409Input / 1M tokens
From€0.0827Output / 1M tokens
Laguna XS 2.1 is listed on Blade for coding and reasoning. Use it to propose focused implementation changes while your existing tools retain control of files, tests and review.
Provide a signature, examples and edge cases. Ask for the smallest implementation that meets the contract.
Supply the module and current tests. Ask for missing boundary cases and check that the tests fail for the defects they target.
Define what must stay compatible, request a proposed diff and let your primary assistant check the actual project before applying it.
BLADE_API_KEY in your server environment.import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.models.blade.sh/v1",
api_key=os.environ["BLADE_API_KEY"],
timeout=120.0,
)
reply = client.chat.completions.create(
model="laguna-xs-2.1",
messages=[{
"role": "user",
"content": "Write a Python function that validates a non-empty list of email strings. Include focused unit tests.",
}],
max_tokens=4096,
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.models.blade.sh/v1",
apiKey: process.env.BLADE_API_KEY,
});
const reply = await client.chat.completions.create({
"model": "laguna-xs-2.1",
"messages": [
{
"role": "user",
"content": "Write a Python function that validates a non-empty list of email strings. Include focused unit tests."
}
],
"max_tokens": 4096
});
console.log(reply.choices[0]?.message.content);curl --fail-with-body "https://api.models.blade.sh/v1/chat/completions" \
-H "Authorization: Bearer ${BLADE_API_KEY}" -H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "laguna-xs-2.1",
"messages": [
{
"role": "user",
"content": "Write a Python function that validates a non-empty list of email strings. Include focused unit tests."
}
],
"max_tokens": 4096
}
JSONSet BLADE_API_KEY before running the example. This sends a billed request. Check supported parameters and handle timeouts, rate limits and incomplete responses.
Open the console example ↗These starting rates are the lowest catalogue prices. The active rate may vary with GPU availability.
Catalogue updated 2026-12-06.
View the rate card ↗10,000 input tokens + 2,000 output tokens = €0.000574 at the displayed rate.
Connect a skill or API runner that sends a focused task to laguna-xs-2.1. Your main assistant keeps the project context, reviews the proposal and runs the checks.
Define the task and select the files.
Propose code through Blade’s API.
Review the diff. Run the tests.
A configured integration is required. Your assistant retains its main model; delegated Blade requests are billed separately. Evaluate the result on your task before expanding the workflow.
Set up coding delegation ↗Laguna XS 2.1 is listed on Blade for coding and reasoning. Use it to propose focused implementation changes while your existing tools retain control of files, tests and review.
Input / 1M tokens: from €0.0409. Output / 1M tokens: from €0.0827.
Agent performance depends on the surrounding tools, context and checks. A model response alone does not run tests or safely apply a patch.
Connect a configured API runner to your assistant. Follow the delegation guide ↗