Quickstart
Markdown versionReplace <BASE_URL> using values from Endpoints.
Get your first chat completion from SupaNexus in under two minutes.
Prerequisites
- Access to the SupaNexus API (see Endpoints).
- A project API key created in the Developer Console.
Base URL
Examples below use the <BASE_URL> placeholder (usually with /v1):
<BASE_URL>/v1
Fill
<BASE_URL>from Endpoints.
Replace deepseek/deepseek-chat with a model id from GET /v1/models.
Send a chat completion
Code examples
export SNX_API_KEY="your-api-key"
export SNX_BASE_URL="<BASE_URL>/v1"
curl -s "${SNX_BASE_URL}/chat/completions" \
-H "Authorization: Bearer ${SNX_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-chat",
"messages": [{"role": "user", "content": "Say hello in one sentence."}]
}'List available models
Code examples
curl -s "${SNX_BASE_URL}/models" \
-H "Authorization: Bearer ${SNX_API_KEY}"Next steps
- Authentication — API key format and errors
- Chat Completions — full request/response reference
- OpenAI SDK Integration — drop-in migration guide