Help

Troubleshooting

Resolve common authentication, model visibility, idempotency, Files, and parameter errors.

文

This guide has an independently written Vietnamese edition. Đọc bằng Tiếng Việt

SDK documentation · API v1

Authentication errors

For 401 invalid_api_key, confirm the SDK is using an active application key in the api_key / apiKey setting. Do not use a workspace login token or provider key. For 403 application_inactive, ask the application owner to check its status. Confirm the base URL points to the AI service and ends with /v1.

Model not found

For 404 model_not_found, list models using the same application key. Use an alias, or a concrete model shown by GET /v1/models. Ask the application owner to check its model pool and provider configuration if no eligible model appears. A pinned model cannot fall back to a different model.

Missing idempotency key

For 400 missing_idempotency_key, send an Idempotency-Key on Chat, Responses, and Embeddings create requests. Generate it once per logical request and keep it unchanged across retries.

Unsupported parameter

For 400 unknown_parameter or unsupported_parameter, remove the field or use a parameter/API combination covered by the compatibility profile. Some settings are accepted only when an eligible model/provider supports them. Unknown SDK features are not automatically forwarded upstream.

Files or Responses not found

For 404 file_not_found, confirm the file has not expired or been deleted and that the key belongs to the application that uploaded it. For 404 response_not_found, confirm the stored response is less than 30 days old, has not been deleted, and belongs to the same application. store=false responses are not retrievable.

Request too large

For 413 request_too_large, reduce the payload size. For supported attachments, use the Files upload and file_id flow rather than embedding large bytes in a JSON request. File size and request-body limits are configured separately and can vary by deployment.

For other errors, keep the response code, error code, and x-request-id or x-gateway-request-id, then ask your workspace administrator to investigate. Do not share the application key.