Chat completions

OpenAI-compatible chat

POST /v1/chat/completions accepts OpenAI-shaped bodies. Use lite-auto for free-router routing, or any marketplace model id.

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":"system","content":"You are helpful."},
      {"role":"user","content":"Summarize LiteDev in one sentence."}
    ],
    "temperature": 0.7,
    "max_tokens": 512
  }'

Studio chat uses a separate typed /v1/chat protocol — this docs surface is for the public completions API.