Skip to main content

Error Codes and Troubleshooting

Start with a minimal curl request before debugging an SDK or desktop client.

Quick checklist

  1. Confirm the request host is kiosapi.com.
  2. Confirm the protocol-specific path and authentication header match.
  3. Call GET /v1/models and copy an available model ID exactly.
  4. Check token status, quota, account balance, and expiration.
  5. Remove accidental duplicate paths such as /v1/v1/chat/completions.

Common status codes

Minimal connectivity test

If the model is unavailable to your token, replace it with an ID returned by GET /v1/models.

Base URL mistakes

  • /v1/v1/...: the client appended /v1; configure https://kiosapi.com.
  • Missing /v1: configure https://kiosapi.com/v1 when 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-key for the native Gemini route.

Reporting a persistent issue

Include the timestamp, endpoint path, HTTP status, model ID, client name/version, and sanitized response body. Never include the full API key.