Skip to content

Authorization and Base URLs

Base URL

Use:

https://api.nexus-hub.ru

For clients that expect the /v1 path in the configuration, use:

https://api.nexus-hub.ru/v1

How to Send the API Key

Recommended option:

Authorization: Bearer <YOUR_NEXUS_API_KEY>

These headers are also supported:

x-api-key: <YOUR_NEXUS_API_KEY>
api-key: <YOUR_NEXUS_API_KEY>

Public Endpoints

Available:

  • GET /v1/models
  • POST /v1/chat/completions
  • POST /v1/messages
  • POST /v1/messages/count_tokens
  • POST /v1/responses
  • POST /v1/responses/compact

Quick Check

curl https://api.nexus-hub.ru/v1/models \
  -H "Authorization: Bearer YOUR_NEXUS_API_KEY"

If the key is active, the response contains the models available to that specific key.

Request ID

If your client sends x-request-id, Nexus uses it for diagnostics. Do not reuse the same x-request-id for different requests: a duplicate may be rejected.