Quickstart

From signup to first token

Call the litedev OpenAI-compatible API in minutes.

  1. Create an API key

    Sign in, open Keys, create a key, and copy the sk-lite-… secret once.

  2. 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"}]
      }'
  3. 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.