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.
Models
Section titled “Models”GET /v1/modelsLists the models visible to the current Token. Use a returned data[].id as the model ID in another request.
Chat Completions
Section titled “Chat Completions”POST /v1/chat/completionsSends role-based messages and returns generated content in choices. Use this format for clients and programs that request OpenAI Chat Completions.
Responses
Section titled “Responses”POST /v1/responsesSends a generation request in Responses format. Codex custom providers use this request mode.
Messages
Section titled “Messages”POST /v1/messagesSends a request in Messages format. Claude Code reaches this path from the root address https://api.zhiflo.com.
Connection and request values
Section titled “Connection and request values”| 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.