Troubleshooting
Common issues and solutions for ZQ Platform APIs.
Authentication Issues
401 Unauthorized
Problem: {"detail": "Invalid or missing API key"}
Solutions:
- Check your API key is set correctly:
echo $ZQ_API_KEY - Ensure the header is correct:
x-api-key(notAuthorization) - Verify there are no extra spaces or quotes in your key
403 Forbidden
Problem: {"detail": "Insufficient tier for resource"}
Solutions:
- Check your current tier:
GET /v1/usage/me - Contact contact@zettaquant.ai to upgrade
Rate Limiting
429 Too Many Requests
Problem: Rate limit exceeded
Solutions:
- Check your usage:
GET /v1/usage/me - Implement exponential backoff:
import time
for attempt in range(3):
response = make_request()
if response.status_code == 429:
time.sleep(2 ** attempt)
continue
break - Batch requests (up to 100 texts per inference call)
Common Errors
Invalid Model ID
Problem: {"detail": "Model not found: xyz"}
Solution: List available models first:
curl -H "x-api-key: $ZQ_API_KEY" $ZQ_BASE_URL/v1/models
Invalid Bank Name
Problem: {"detail": "Invalid filter value for bank_name"}
Solution: Use exact values from the Available Central Banks list.
Getting Help
- Email: support@zettaquant.ai
- API Access: contact@zettaquant.ai