---
title: "API Reference"
description: "Find documented endpoints, request examples, and protocol differences to clarify compatibility scope."
headingIds: {"Endpoint Index":"section-1","Compatibility Scope":"section-2","Responses & Troubleshooting":"section-3"}
---

<aside className="docs-publication" data-pagefind-ignore>

Documentation maintained by [1ZheAI](https://1zheai.com/en/editorial/#publisher). [Sources and corrections](https://1zheai.com/en/editorial/).

Found an error? [Contact support](mailto:support@1zheai.com) with the page address and a description. Do not send API keys or account credentials.

</aside>
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

| Endpoint | Purpose | Description & Examples |
| --- | --- | --- |
| `POST /v1/messages` | Anthropic native conversation | [Request & Response](/en/docs/api-messages/), [Anthropic SDK](/en/docs/quickstart-anthropic-sdk/), [curl](/en/docs/quickstart-curl/) |
| `POST /v1/chat/completions` | OpenAI-compatible conversation | [Request & Response](/en/docs/api-chat-completions/), [OpenAI SDK](/en/docs/quickstart-openai-sdk/), [curl](/en/docs/quickstart-curl/) |
| `POST /v1/responses` | OpenAI Responses | [Request & Response](/en/docs/api-responses/), [Codex CLI](/en/docs/quickstart-codex/) |
| `GET /v1/models` | Query models available to your key | [List format & query](/en/docs/api-models/), [Model selection](/en/docs/models/) |
| `POST /v1/messages/count_tokens` | Input token counting | [Endpoint description](/en/docs/base-url/) |
| `POST /v1/images/generations` | Text-to-image generation | [Image generation integration](/en/docs/api-images/) |

## 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](/en/docs/quickstart-codex/). The currently available models are subject to the [model description](/en/docs/models/) and the list actually returned by your key.

## Responses & Troubleshooting

<CardGroup cols={2}>
 <Card title="Streaming responses" href="/en/docs/streaming/"> event formats and stream disconnection handling for both protocols. </Card>
 <Card title="Error codes & troubleshooting" href="/en/docs/troubleshooting/"> locate issues by status code and error message. </Card>
</CardGroup>

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.
