Skip to main content

Entry points

Use the base URL for your SDK or client. Do not add paths from another API format.

Supported API formats

If you are unsure which format to use, start with OpenAI Chat Completions for a basic chat request. Codex CLI uses Responses, not Chat Completions.

Authentication

AIOHub API keys start with sk-. Different clients use different headers with the same API key value: See Authentication for examples.

Request example

Response shape

Successful responses follow the selected compatible API format. For example, an OpenAI Chat Completions response looks like:

Streaming responses

Chat Completions supports SSE streaming. Set "stream": true:

Error responses

Error responses include an HTTP status code and a JSON error body:
See HTTP status codes for common status codes and retry guidance.

Public endpoint scope

The API reference navigation lists the main user-facing endpoints. Available models, groups assigned to your API key, and endpoints depend on /v1/models, the console pricing page, and the current service state. Unlisted compatibility routes are not officially supported.