API Reference

API Reference

Base URL: https://api.nexotao.com. Authentication via API key — see Authentication.

Endpoints

MethodPathFunction
GET/modelsPublic pricing catalog for the site (no key)
GET/v1/modelsOpenAI-format model list (requires key) — used by n8n etc.
POST/v1/chat/completionsChat, OpenAI format (GPT, DeepSeek, and Claude)
POST/v1/responsesChat, OpenAI Responses format (GPT, DeepSeek, and Claude)
POST/v1/messagesChat, Anthropic format (Claude models)
POST/v1/images/generationsImage generation
POST/v1/audio/transcriptionsAudio transcription (multipart)

Response headers

Every billable request returns:

HeaderMeaning
X-Cost-RpThe actual cost of the request in Rupiah
X-Request-IdThe request id for tracking

Error codes

StatusMeaningAction
400Invalid requestCheck the body/parameters
401Invalid or revoked API keyCreate / use an active key
402Insufficient balanceTop up your Rupiah balance
429Too many requestsRetry with backoff

The error body is JSON, e.g.:

{ "error": "insufficient balance" }

GET /models

Returns the list of active models along with sell prices (no internal cost data). Used by the live pricing tables on the Billing and Models & Pricing pages.

curl https://api.nexotao.com/models

Each item contains: model, display_name, tier, provider, supports_vision, modality, and the *_micro price fields (micro-rupiah; 1 Rp = 1,000,000 micro).