Base URL & endpoints
Base URL
https://ai-api.cloud
Endpoints
| Protocol | Path | Notes |
|---|---|---|
| OpenAI-compatible | /v1/chat/completions |
also /v1/models to list available models |
| Anthropic Messages | /v1/messages |
send the anthropic-version: 2023-06-01 header |
For the OpenAI SDK set base_url to https://ai-api.cloud/v1. For the Anthropic SDK set base_url to
https://ai-api.cloud (the SDK appends /v1/messages).
Authentication
Pass your API key as a Bearer token on every request:
Authorization: Bearer YOUR_API_KEY
Protocol is end-to-end — no conversion
A model is reachable only over the protocols of its configured endpoints. We do not silently convert between OpenAI and Anthropic formats (their caching works differently). So:
- If a model has an OpenAI endpoint, call it via
/v1/chat/completions. - If it has an Anthropic endpoint, call it via
/v1/messages. - Calling a model over a protocol it doesn't support returns a visible error (it is not auto-converted).
Check which protocols each model supports on the Models & pricing page (or GET /v1/models).