LinkexLinkex Docs
Using the API

Using the API

Endpoints, streaming, and where to find the full reference.

The primary surface is OpenAI-compatible under https://linkex.ai/v1. If your tool speaks OpenAI, it speaks Linkex.

Core endpoints

EndpointPurpose
GET /v1/modelsModels available to your key
POST /v1/chat/completionsChat (streaming and non-streaming)
POST /v1/responsesOpenAI Responses format
POST /v1/embeddingsEmbeddings
POST /v1/images/generationsImage generation
POST /v1/audio/...Speech, transcription, translation
POST /v1/messagesAnthropic Messages format
/v1beta/models/...Gemini format
POST /v1/rerankRerank
video routes (/v1/videos, /kling/..., /jimeng/...)Video generation

The API reference documents every route with schemas, generated from the gateway's OpenAPI spec.

Streaming

Pass "stream": true — responses arrive as standard OpenAI SSE chunks. Server-side idle timeout is generous (10 minutes) to accommodate long generations.

curl -N https://linkex.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-4o", "stream": true, "messages": [{"role":"user","content":"hi"}]}'

In this section

On this page