Error Codes and Troubleshooting
Start with a minimal curl request before debugging an SDK or desktop client.Quick checklist
- Confirm the request host is
kiosapi.com. - Confirm the protocol-specific path and authentication header match.
- Call
GET /v1/modelsand copy an available model ID exactly. - Check token status, quota, account balance, and expiration.
- Remove accidental duplicate paths such as
/v1/v1/chat/completions.
Common status codes
Minimal connectivity test
GET /v1/models.
Base URL mistakes
/v1/v1/...: the client appended/v1; configurehttps://kiosapi.com.- Missing
/v1: configurehttps://kiosapi.com/v1when the client expects the complete OpenAI root. - Claude request sent to
/chat/completions: use the intended OpenAI format or switch the client to/v1/messages. - Gemini request sent with Bearer auth: use
x-goog-api-keyfor the native Gemini route.
