Endpoints — Markdown source
Raw Markdown for copying or feeding to AI agents.
> **AI Agents**: Index `/api/llms.txt` | Full `/api/llms-full-en.txt` | OpenAPI `/api/openapi.yaml`
> Endpoint: `https://api.x6.ai`
# Endpoints
X6.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:
```python
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`):
```python
import anthropic
client = anthropic.Anthropic(
api_key="sk-snx-...",
base_url="https://api.x6.ai",
)
```
## Related
- [Quickstart](./quickstart.md)
- [OpenAI SDK Integration](./openai-sdk-integration.md)
- [Anthropic SDK Integration](./anthropic-sdk-integration.md)