API reference
OpenAI-compatible REST API for NexGate — chat completions, models, the cost estimator, account, health, and error reference.
NexGate exposes an OpenAI-compatible REST API. Point any OpenAI-compatible SDK at the NexGate base URL, authenticate with your API key, and call models by name.
Base URL https://api.nexgate.app/v1
Auth Authorization: Bearer nx_sk_...Tip
Use /api/v1 as the SDK base URL for chat completions. Account, health, and
estimator utilities live under /api/* without the /v1 prefix.
Endpoints
Chat Completions
The core OpenAI-compatible endpoint — request parameters, streaming, and limits.
Models
List the verified chat models available through the gateway.
Cost Estimator
Estimate the credit cost of a request before you send it.
Account
Read your balance and usage programmatically.
Health
Service health and availability checks.
Errors & Rate Limits
HTTP status codes, credit error codes, and rate-limit behavior.