Notice: Kling 4.0 is here: text-to-video and image-to-video are 20% off for a limited time. Try it now
HiAPI
Tutorials
On this page

Base URL & protocols

How to enter the HiAPI base URL in agent tools, depending on the protocol the tool uses.

Enter the HiAPI base URL according to the protocol your tool uses:

ProtocolBase URLPath the tool appends
Anthropic Messageshttps://api.hiapi.ai/v1/messages
OpenAI Chat Completionshttps://api.hiapi.ai/v1/chat/completions
OpenAI Responseshttps://api.hiapi.ai/v1/responses
  • Stop at the level shown above. Don’t add /chat/completions, /responses, or a second /v1 yourself.
  • A few tools have their own rule (for example, Cherry Studio takes https://api.hiapi.ai for all three endpoints and appends the path itself). Follow the tool’s guide.

Model name

Use the model name shown in the text model list. The “for example, xxx” model and protocol on each tool page are a tested combination. If another model returns 400 does not support this endpoint, that model does not support the current protocol; switch to another protocol or another model.