Level 1: is the API up?
curl -s -m 20 -o /dev/null -w "%{http_code}\n" https://api.luv13.ai/v1/models| Output | Meaning |
|---|---|
200 | Reachable |
522 | luv13's servers are unreachable behind Cloudflare. Wait and retry. |
000 | No response within 20 seconds, or a network or DNS problem on your side |
Level 2: do my key and a model work?
curl -s -m 60 -w "\nHTTP %{http_code}\n" https://api.luv13.ai/v1/chat/completions \
-H "Authorization: Bearer $LUV13_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "luv13/glm-5.3-flash", "messages": [{"role": "user", "content": "ping"}]}'When the key works, this is billed like any request, a tiny fraction of a cent at $0.33 per 1M tokens. A 401 means the key is wrong; anything else, see Errors and Status Codes.
Monitoring
- Use Level 1 for frequent automated checks. It's free.
- Run Level 2 rarely, because it draws on your balance.
- Alert on repeated failures, not one. luv13 runs on single-provider capacity, and brief failures under load are expected; see Retrying Requests.
- Check that the response still lists the model id your app uses. If it's gone, switch ids. See Listing Models.
