Skip to content
Developer docs/Quickstart
Get startedAPI v1

Quickstart

Connect to multiple AI models through a unified API. Manage keys, credit, requests and tasks on one platform to simplify AI integration.

BASE URLhttps://www.heyai.cc/v1HTTPS

1API 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 models
Interface preview
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
pip install openai

Next steps

Developer docs | HeyAI