API Reference
Find documented endpoints, request examples, and protocol differences to clarify compatibility scope.
This page collects the existing endpoint documentation and request examples on this site. This site provides both Claude and OpenAI / GPT models. Choose the corresponding protocol based on the model and tool; the specific models are subject to the list available to your key.
Endpoint Index
Section titled “Endpoint Index”| Endpoint | Purpose | Description & Examples |
|---|---|---|
POST /v1/messages | Anthropic native conversation | Request & Response, Anthropic SDK, curl |
POST /v1/chat/completions | OpenAI-compatible conversation | Request & Response, OpenAI SDK, curl |
POST /v1/responses | OpenAI Responses | Request & Response, Codex CLI |
GET /v1/models | Query models available to your key | List format & query, Model selection |
POST /v1/messages/count_tokens | Input token counting | Endpoint description |
POST /v1/images/generations | Text-to-image generation | Image generation integration |
Compatibility Scope
Section titled “Compatibility Scope”For Claude native capabilities, first refer to the Anthropic integration tutorial. Before switching protocols, verify that the required capabilities are described in the corresponding tutorial; do not infer that tool calls, caching, or long-running tasks are supported solely because a request succeeds.
Codex uses /v1/responses; see Codex CLI integration. The currently available models are subject to the model description and the list actually returned by your key.
Responses & Troubleshooting
Section titled “Responses & Troubleshooting”event formats and stream disconnection handling for both protocols.
locate issues by status code and error message.
Endpoint details provide minimal requests, common fields, result reading, and compatibility boundaries; full parameters still require combining the protocol documentation of the selected model. This site does not yet provide a downloadable complete OpenAPI specification.
Embeddings, Batch, file hosting, and third-party proprietary models not confirmed in the public directory are not within the scope of commitment on this page. Confirm with support first when you need these capabilities.
