11

API reference

All endpoints under https://api.nxioai.com/api/v1. The machine-readable OpenAPI 3.1 document is at https://platform.nxioai.com/openapi.json.

Endpoints

MethodPathAuthDescription
POST/chat/completionskeyOpenAI-compatible chat completion; stream: true for SSE.
GET/models—Public model catalog with prices.
GET/keykeyCurrent key: label, limit, usage, remaining.
GET/creditskeyAccount balance.
GET/generation?id=keyStored usage and cost of one request.
POST/messageskeyAnthropic Messages format is not supported. Call Claude models through POST /chat/completions with the same model ids.
POST/responseskeyOpenAI Responses API pass-through (models tagged openai-response). Upstream id kept for previous_response_id; our id in X-Request-Id / nxio_request_id; usage gains cost.
POST/embeddingskeyOpenAI-compatible embeddings: {model, input}. Billed on prompt_tokens at the model's input price; usage.cost in USD.

Headers

HeaderDirectionMeaning
Authorization: Bearer <key>requestRequired on authenticated routes.
X-Title / X-NXIO-TitlerequestOptional app name for analytics.
HTTP-RefererrequestOptional app URL for analytics.
X-Request-IdresponseNXIO request id; equals the response id.
Retry-AfterresponseSeconds to wait on 402 (in-flight budget) and 429.