Skip to content

Quickstart

Make your first request in four steps.

Prerequisites

  • A LynkRouter account and a funded balance of prepaid credits.
  • An OpenAI-compatible client, or any HTTP client such as cURL.

1. Create an API key

Open API keys in your dashboard and create a key. Copy it when it is shown and store it as an environment variable named LYNKROUTER_API_KEY. Never put keys in client-side code or commit them to source control.

2. Choose a model

Pick a model from the catalog and copy its identifier. The examples use <model-id> as a placeholder.

3. Send a request

The base URL is https://ai.lynkrouter.com/v1.

curl https://ai.lynkrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $LYNKROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "<model-id>",
    "messages": [
      { "role": "user", "content": "Hello" }
    ]
  }'

4. Check the response and your usage

A successful call returns an OpenAI-format chat completion with the generated message in choices[0].message.content. Then open Usage to see the request. Usage can lag the request; the Usage page states when it was last updated.

If something fails, see Errors.