SupaNexus

SupaNexus provides two endpoints that share the same account and API key. Request paths, authentication, model list, and billing are identical — use either.

Endpoint hosts do not include /v1. Add /v1 only on concrete API paths (e.g. /v1/chat/completions) or in the OpenAI SDK base_url.

Base URLs

SiteBase URLWhen to use
Globalhttps://api.supanexus.aiDefault endpoint
CNhttps://api.supanexus.ioBackup endpoint

How to choose

  • Use Global by default.
  • If Global is unreachable or unstable, switch to the CN backup endpoint.
  • When switching, change only the endpoint host (and append /v1 where the SDK requires it). API key and other code stay the same.

OpenAI SDK

OpenAI SDK base_url must append /v1 to the endpoint host:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.supanexus.ai/v1",  # or "https://api.supanexus.io/v1"
    api_key="your-api-key",
)

Anthropic SDK

Anthropic SDK base_url is the endpoint host (no /v1):

import anthropic

client = anthropic.Anthropic(
    api_key="sk-snx-...",
    base_url="https://api.supanexus.ai",  # or "https://api.supanexus.io"
)

Related