Skip to main content
@lighton-ai/sdk wraps the LightOn API: typed models, pagination handled for you, and rate-limit pacing built in. It’s the code shown in the TypeScript SDK tab of every tutorial snippet.
Requires Node 22 or later. Also runs on Bun, Deno, Cloudflare Workers, Vercel Edge, and in the browser, with no runtime dependencies.

Install

Set your API key in the environment. new LightOn() reads it from there, so it never appears in your code:

Your first result

Where to go next

API reference

Every public class, method, and type, generated from the installed SDK.

Tutorials

Task-by-task walkthroughs, each with a TypeScript SDK tab.
For structured output with Zod, async jobs, error handling, and agent-framework integrations (Vercel AI SDK, LangChain.js), see the SDK README.