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>

OpenAI-Compatible Runtime Baseline

For ordinary OpenAI-compatible clients, use:

  • GET /v1/models
  • GET /v1/models/{model}
  • POST /v1/embeddings
  • GET /v1/balance
  • POST /v1/chat/completions
  • POST /v1/completions
  • POST /v1/responses
  • POST /v1/responses/compact

Also available:

  • POST /v1/messages
  • POST /v1/messages/count_tokens
  • GET /v1/realtime
  • POST /v1/images/*
  • POST /v1/audio/*

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

Nexus returns x-request-id on local JSON and SSE responses.

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.