Call the ZhiFlo API from code
Begin with an observable request, then use the authentication, error, and reference pages as needed. Most OpenAI-compatible integrations use https://api.zhiflo.com/v1 as their Base URL.
Make the first request
Section titled “Make the first request”Call GET /v1/models to see which models the Token can access, then use one returned ID with POST /v1/chat/completions.
Send the Token correctly
Section titled “Send the Token correctly”Learn the Bearer header, temporary environment variables, and places where a Token does not belong.
Recover from an error
Section titled “Recover from an error”Use the HTTP status code to find the first field to inspect, changing only one thing at a time.
Look up errors and recovery actions
Find request paths and fields
Section titled “Find request paths and fields”The API reference covers Models, Chat Completions, Responses, and Messages.