Endpoints
Markdown versionX6.AI has one endpoint: https://api.x6.ai. The account, API key, request paths, model list, and billing all use this host.
The endpoint host does not include /v1. Add /v1 only on concrete API paths (e.g. /v1/chat/completions) or in the OpenAI SDK base_url.
OpenAI SDK
OpenAI SDK base_url must append /v1 to the endpoint host:
from openai import OpenAI
client = OpenAI(
base_url="https://api.x6.ai/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.x6.ai",
)