Learn more

Guides, SDK references and what changed recently.

Quickstart

From zero to your first response in three steps
  1. 1
    Install the SDK

    Add the Lighten client to your project.

    npm install @lighten/sdk
  2. 2
    Set your API key

    Create a key in API Keys and export it in your shell.

    export LIGHTEN_API_KEY=lt_live_...
  3. 3
    Send your first request

    Call a model and stream the reply.

    import { Lighten } from "@lighten/sdk";
    
    const client = new Lighten();
    const res = await client.responses.create({
      model: "claude-sonnet-4.5",
      input: "Say hello to Lighten"
    });
    console.log(res.output_text);
Next: try it without code Create API key Open playground

Install the SDK

npm install @lighten/sdk

Requires Node 20+ or Python 3.10+. Latest v2.4.0

Changelog
  • Sandbox snapshots New

    Save and restore a sandbox's filesystem in one call.

    v2.4.0 · Nov 18, 2026
  • Streaming retries Fix

    The SDK now resumes interrupted streams instead of restarting them.

    v2.3.2 · Nov 6, 2026
  • Budget alerts API New

    Create and update spend thresholds programmatically.

    v2.3.0 · Oct 24, 2026
  • Faster cold starts Improved

    Sandboxes boot 40% faster in us-east and eu-west.

    v2.2.0 · Oct 2, 2026
  • Python SDK 1.0 New

    Async client, typed responses and pydantic models.

    v2.1.0 · Sep 15, 2026