First Request
Prepare an active API key and copy an available model ID from the dashboard.
Set environment variables
bash
export AKAI_API_KEY="YOUR_API_KEY"
export AKAI_MODEL="MODEL_ID_FROM_CONSOLE"Send the request
bash
curl https://ai.akaii.top/v1/chat/completions \
-H "Authorization: Bearer $AKAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "'"$AKAI_MODEL"'",
"messages": [
{ "role": "user", "content": "Reply with: connected" }
]
}'Read the result
- JSON with model output: the key, model, and network are working.
401: the key is missing, invalid, or deleted.403: the key, group, or network is not allowed.404: verify the Base URL, endpoint path, and model ID.429: check quota, concurrency, or rate limits.