Skip to Content
DocsQuick Start

Quick Start

This guide helps you integrate with the HaoAI Gateway and start calling 100+ LLMs in just 3 minutes.

Prerequisites

  1. Sign up at the HaoAI Console  and get an API Key
  2. Have a development environment ready (Python 3.8+ / Node.js 18+)

HaoAI is compatible with all three major protocols — OpenAI / Anthropic / Gemini. You can use any official SDK to connect.

Choose Your Protocol

OpenAI Compatible Protocol — The most universal integration method.

Terminal
# HaoAI API endpoint. Get your API Key at https://hao.ai/dashboard 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?"} ] }'

Next Steps