Guide

Streaming Responses

Enable stream=true to receive incremental server-sent events from compatible chat and response models.

Base https://api.lingapi.ai

Quick checklist

  1. Confirm the selected model supports this capability.
  2. Send a minimal request before enabling the feature in production.
  3. Verify usage, billing, and error handling in the console.

How to use it

Set stream=true and read events until the final chunk.

Safety checks

Keep retries bounded, record request ids, and make user-facing workflows resilient to provider-side failures.

Example

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