Quickstart
Connect to multiple AI models through a unified API. Manage keys, credit, requests and tasks on one platform to simplify AI integration.
API reference ↗API documentation, SDK examples and debugging tools.Model market ↗Browse models configured for public availability, their context and capabilities. Calls still require appropriate key permissions, routing and credit.
BASE URL
https://www.heyai.cc/v1HTTPS1API keys
Developer console →Protect your keys
Create an API key in the console and check model permissions, quotas and credit. Read keys from server-side environment variables, never from frontend code or public repositories.
2Your first request
Save your key as LLMAPI_API_KEY. Use /v1/models to find an authorized chat model and replace YOUR_MODEL_ID. Run these examples on the server; real calls consume usage.
POST
/v1/chat/completionsChat modelsInterface preview
cURL
Python
Node.js
curl https://www.heyai.cc/v1/chat/completions \
-H "Authorization: Bearer $LLMAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL_ID",
"messages": [{"role": "user", "content": "Hello HeyAI"}]
}'Example response · 200 OK
{
"id": "chatcmpl_example",
"object": "chat.completion",
"model": "YOUR_MODEL_ID",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello!"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 12,
"total_tokens": 30
}
}3SDK integration
Chat completions use an OpenAI-compatible request format. Set the base URL and key; supported parameters and compatibility are defined in the API reference.
Install SDK
Python
Node.js
pip install openai