Skip to main content

Welcome to Lightweight

Lightweight is a unified AI API gateway that gives you access to 25+ models from OpenAI, Anthropic, Google, and xAI through a single OpenAI-compatible endpoint.

Quick Start

Get up and running in 30 seconds with copy-paste examples.

API Reference

Endpoints, authentication, and error codes.

Models

Browse all 25+ available models.

Claude Code

Set up Claude Code with Lightweight.

Getting Started

The API is 100% OpenAI-compatible. Three steps:
  1. Get your API key from the Dashboard
  2. Set the base URL to https://api.lightweight.one/v1
  3. Use your Lightweight key in place of your OpenAI key
export OPENAI_API_KEY="lw_sk_your-key-here"
export OPENAI_BASE_URL="https://api.lightweight.one/v1"
That’s it. Any tool that supports OpenAI works with Lightweight — no code changes needed.

Supported Providers

ProviderModels
OpenAIGPT-5.4, GPT-5.2, GPT-5.1, GPT-5.1 Codex, GPT-5 Mini, GPT-4.1, GPT-4o, and more
AnthropicClaude Opus 4.6, Claude Opus 4.6 Fast, Claude Sonnet 4.6, Claude Sonnet 4.5, Haiku 4.5
GoogleGemini 3.1 Pro, Gemini 3 Pro, Gemini 3 Flash, Gemini 2.5 Pro
xAIGrok Code Fast
More providers coming soon. We plan to expand to Meta (Llama), DeepSeek, Mistral, and others. Check GET /v1/models for the live catalog.