Developer Docs

Quickstart

Start with one API key, one base URL, and OpenAI-compatible requests. The examples on this site use the API domain for the current English instance.

Base https://api.vip.lingapi.ai/v1

Quick checklist

  1. Create or sign in to a Ling.AI account.
  2. Create an API key in the console and keep it server-side.
  3. Send the key with Authorization: Bearer <YOUR_API_KEY> or x-api-key.
  4. Use the Models endpoint before hard-coding a model id.

First request

Use the OpenAI-compatible Chat Completions endpoint for the quickest integration path. You can switch to Responses, Anthropic-compatible, or Gemini-compatible routes later without changing account and billing setup.

Fetch available models, choose a model id that matches your workload, send a small non-streaming request, then enable streaming or tools once your retry and logging path is ready.

Example

Example
curl https://api.vip.lingapi.ai/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen-flash","messages":[{"role":"user","content":"Say hello from Ling.AI."}]}'