Skip to Content
DocumentationAPI endpoints

API endpoints

Every operation the API exposes, generated from the same OpenAPI document that powers the interactive reference. The base URL is https://api.apihubs.ru, and every call is authenticated with a bearer API key — see Authentication.

Account Management

MethodPathWhat it does
GET/api/v1/statsUsage and spend statistics for the current user
GET/api/v1/user/meRequest to get current user

Catalog

MethodPathWhat it does
GET/api/v1/catalogGet the public model catalog
GET/api/v1/catalog/{id}Get one catalog entry by model id

Costs

MethodPathWhat it does
GET/api/v1/costGet all prices by model
GET/api/v1/cost/{model}Get prices for specific model

Generations

MethodPathWhat it does
POST/api/v1/generation/createCreate generation request based on model. Returns immediately with a taskId
POST/api/v1/generation/estimateEstimate the exact balance charge for a generation request

LLM

MethodPathWhat it does
POST/api/v1/chat/completionsOpenAI-compatible chat completion. Set stream: true for server-sent events.
POST/api/v1/messagesAnthropic Messages API-compatible endpoint (Claude models). Set stream: true for server-sent events.
GET/api/v1/modelsList available chat models with token pricing (USD per 1M tokens)

Task Management

MethodPathWhat it does
GET/api/v1/task/status/{taskId}Get task status

The full document is served at /openapi.json if you would rather generate a client from it.

API endpoints — API Hubs