Skip to content

ZhiFlo API reference

Choose an operation by the result you need. If this is your first API call, complete Make your first API request before using the field reference.

GET /v1/models

Lists the models visible to the current Token. Use a returned data[].id as the model ID in another request.

POST /v1/chat/completions

Sends role-based messages and returns generated content in choices. Use this format for clients and programs that request OpenAI Chat Completions.

POST /v1/responses

Sends a generation request in Responses format. Codex custom providers use this request mode.

POST /v1/messages

Sends a request in Messages format. Claude Code reaches this path from the root address https://api.zhiflo.com.

Item When it is needed Value
Service root Identify the API host https://api.zhiflo.com
OpenAI-compatible Base URL Configure a compatible client or SDK https://api.zhiflo.com/v1
Authentication Every request Authorization: Bearer <YOUR_ZHIFLO_TOKEN>
Content type POST requests application/json
Model Chat Completions, Responses, and Messages requests Complete model ID from the current account list

Keep the Token out of URLs and request bodies. See Bearer authentication for the header and API errors for status codes.