API Keys

Authentication

Ling.AI accepts API keys through the Authorization bearer header or x-api-key header. Keep keys out of browsers and rotate them when an integration changes ownership.

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

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.

Header options

Use Authorization: Bearer <YOUR_API_KEY> for OpenAI SDK compatibility, or x-api-key for simple server-side HTTP clients.

IP allowlist

If an API key has an IP allowlist, requests must come from an allowed egress address. Failed requests return an authentication error before model routing.

Example

Example
curl https://api.vip.lingapi.ai/v1/models \
  -H "Authorization: Bearer <YOUR_API_KEY>"