Chat Completions API
OpenAI-compatible interface for Ling-1T chat.
Chat Completions API
The chat completions endpoint mirrors OpenAI’s v1/chat/completions contract. Use it to stream or fetch Ling-1T responses with minimal code changes.
- Endpoint:
POST https://ling-1t.ai/api/v1/chat/completions - Auth:
Authorization: Bearer <api-key> - Model:
inclusionai/ling-1t
Request Example (JSON)
Node.js (TypeScript)
Python
Streaming Responses
Set stream: true to receive Server-Sent Events (SSE). The data format matches OpenAI’s, enabling drop-in use of existing clients.
Usage Metrics
Responses include token usage in the OpenAI schema (usage.prompt_tokens, usage.completion_tokens). These values feed billing and are visible in the dashboard usage explorer.