Laguna XS 2.1 API.
Move the patch forward.

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.

€5 in free credits for every new customer.

Try Laguna XS 2.1

From €0.0409 per million input tokens. View the pricing details.

Coding & reasoning
with Laguna XS 2.1.

Practical starting points for Laguna XS 2.1. Choose one task, define the expected output and measure the result on your own examples.

01

Draft isolated functions

Provide a signature, examples and edge cases. Ask for the smallest implementation that meets the contract.

02

Expand test coverage

Supply the module and current tests. Ask for missing boundary cases and check that the tests fail for the defects they target.

03

Refactor with constraints

Define what must stay compatible, request a proposed diff and let your primary assistant check the actual project before applying it.

Explore the coding & reasoning workflow ↗

Laguna XS 2.1 pricing

Laguna XS 2.1
API pricing.

These are catalogue “From” rates in EUR. Dynamic pricing can change the applicable price. Confirm your model, request route and active billing unit before estimating a workload.

See Laguna XS 2.1 on the rate card ↗
Input / 1M tokens
From€0.0409
Output / 1M tokens
From€0.0827

A concrete example
10,000 input tokens + 2,000 output tokens = €0.000574 at the displayed starting rates.

Illustration only; excludes retries, other models and paid tools. Catalogue updated 2026-10-22.

Check current rates ↗

API integration

How to use
the Laguna XS 2.1 API.

Use the Blade model ID laguna-xs-2.1 and keep your API key in your backend environment. Verify account access and supported parameters before connecting production traffic.

  1. Create a Blade API key in the console.
  2. Run pip install openai and set BLADE_API_KEY.
  3. Run a small request and inspect the output before building the rest of your workflow.
Read the API reference ↗
python
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)

Install openai and set BLADE_API_KEY. This sends a billed request. Check supported parameters and handle timeouts, rate limits and incomplete responses.

Use Laguna XS 2.1
with Claude Code or Codex.

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.

01 / BriefClaude Code or Codex

Define the task and select the files.

02 / GenerateLaguna XS 2.1

Propose code through Blade’s API.

03 / CheckYour project

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 API FAQ.

What can I use Laguna XS 2.1 for?

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. Its Blade model ID is laguna-xs-2.1.

How much does Laguna XS 2.1 cost on Blade?

Input / 1M tokens: from €0.0409. Output / 1M tokens: from €0.0827. These are dynamic catalogue starting rates as of 2026-10-22, not fixed prices for every request. Check the console for current rates.

What should I confirm before integrating?

Agent performance depends on the surrounding tools, context and checks. A model response alone does not run tests or safely apply a patch.

Can I use Laguna XS 2.1 with Claude Code or Codex?

Yes, through a configured delegation skill or API runner. Your primary assistant sends a task to Blade and reviews the result. It keeps its own model, and Blade requests are billed separately. Follow the delegation guide.

Model reference: Publisher model reference ↗. Hosted configuration and pricing: Blade catalogue, 2026-10-22.

Choose by task, input type and billing unit. Browse all models ↗

Contact the team

Loading the form…