API Endpoints
Compatible with the OpenAI and Anthropic API formats. This page lists every public endpoint; each endpoint’s parameters and request examples are on its own page.
On this page
- POST
/chat/completionsChat Completions
OpenAI Chat Completions-compatible format for most OpenAI SDKs and chat clients.
- POST
/responsesResponses
OpenAI Responses-compatible format. Recommended for Codex.
- POST
/messagesMessages
Anthropic Messages-compatible format for Claude Code and Anthropic SDKs. Native Messages requests must include
max_tokens; use/chat/completionsfor OpenAI-style requests. - GET
/modelsModels
Returns the available text model IDs.
The gateway accepts paths with and without /v1; both forms are equivalent.