Errors & troubleshooting

Find the next step from a status code.

Start from the status code

Status codeMeaningWhat to do
400Invalid requestCheck the model ID, message format and parameters.
401Authentication failedMake sure you use the full API key and it is not disabled.
402Insufficient balanceCheck your available balance and retry after a top-up clears.
429Rate limited or quota exhaustedCheck the key's daily quota and request rate; avoid immediate retries.
5xxUpstream errorRetry later; requests that never entered generation have their hold released and are not billed.

Still can't connect

  1. Confirm the Base URL matches the right API format, without a duplicated /v1.
  2. Confirm you entered the full key, not the masked prefix shown in the UI.
  3. Copy the real ID from the model catalog and test with a minimal request first.
  4. Check the error body returned by your client and the usage records to diagnose upstream errors.