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:
| Protocol | Base URL | Path the tool appends |
|---|---|---|
| Anthropic Messages | https://api.hiapi.ai | /v1/messages |
| OpenAI Chat Completions | https://api.hiapi.ai/v1 | /chat/completions |
| OpenAI Responses | https://api.hiapi.ai/v1 | /responses |
- Stop at the level shown above. Don’t add
/chat/completions,/responses, or a second/v1yourself. - A few tools have their own rule (for example, Cherry Studio takes
https://api.hiapi.aifor 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.