Quickstart
From signup to first token
Call the litedev OpenAI-compatible API in minutes.
- Create an API key
Sign in, open Keys, create a key, and copy the
sk-lite-…secret once. - Call chat completions
curl https://api.lite.id/v1/chat/completions \ -H "Authorization: Bearer $LITE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "lite-auto", "messages": [{"role":"user","content":"Hello from LiteDev"}] }' - Or use @lts/sdk (TypeScript)
import { streamChat } from "@lts/sdk"; const stream = await streamChat( { modelId: "lite-auto", messages: [{ role: "user", content: "Hello from LiteDev" }], }, { baseUrl: "https://api.lite.id", accessToken: process.env.LITE_API_KEY!, }, );
Next: Authentication, Streaming, or the Playground.