HaoAI Documentation
One API for leading global models
Compatible with official OpenAI / Anthropic / Gemini SDKs, with a Grok / xAI protocol entry point
Four Protocols, One Gateway
OpenAI Compatible
curl https://api.hao.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_HAOAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.4-mini",
"messages": [{"role": "user", "content": "What is the meaning of life?"}]
}'Quick Start
Get started in 3 minutes with Python / TypeScript / cURL
API Reference
Complete endpoint docs for OpenAI, Anthropic, Grok / xAI, and Gemini protocols
Integrations
Setup guides for Claude Code, Zed, Cline, and more
Model Catalog ↗
Browse currently available models including GPT, Claude, and Grok