Skip to content

API reference

Base URL: https://ai.lynkrouter.com/v1. Requests and responses follow the OpenAI API format.

Create a chat completion

POST /chat/completions

FieldTypeDescription
modelstring, requiredA model identifier from the catalog.
messagesarray, requiredConversation messages, each with a role and content.
{
  "model": "<model-id>",
  "messages": [
    { "role": "user", "content": "Hello" }
  ]
}

The response shape above is illustrative: values are placeholders, not real output. Other optional OpenAI-format parameters are accepted only where the selected model supports them.

Authentication is described in Authentication; failure responses are covered in Errors.