API Documentation
OpenAI-compatible SupaNexus API reference. Chat completions, models, streaming, errors, and SDK integration.
POST <BASE_URL>/v1/chat/completions
Authorization: Bearer <API_KEY> (e.g. sk-snx-...)
Fill <BASE_URL> from Endpoints.
Documentation
- Endpoints
Global and CN base URLs
- Quickstart
First chat completion in two minutes
- Authentication
Bearer API key format and errors
- Chat Completions
POST /v1/chat/completions reference
- Messages (Anthropic)
POST /v1/messages Anthropic-compatible API
- Models
GET /v1/models list and retrieve
- Model pricing
Where to find input / cached / output rates
- Streaming
SSE streaming responses
- Parameters
Request parameters and pass-through
- Errors
HTTP status codes and error shapes
- Rate Limits & Quotas
IP limits, quota and balance pre-checks
- Response Headers
X-SNX-* diagnostic headers
- OpenAI SDK Integration
Drop-in OpenAI SDK migration
- Anthropic SDK Integration
Anthropic SDK and Claude Code via /v1/messages