Skip to content

FAQ

This page collects common troubleshooting steps for Potato API. When a request fails, first check your API key, quota, model name, token group permissions, and endpoint URL.

Quick Diagnosis

4xx errors usually point to client-side configuration or request issues. 5xx errors usually point to gateway or upstream service issues; retry later and keep the request-id for support.

Basic Checklist

ItemWhat to Check
API keyMake sure the key is copied completely, has no extra spaces, and is not disabled.
Account quotaConfirm that your balance or token quota is still available in the console.
Model nameCopy the full model ID from Model Square or the console. Do not edit it manually.
Token groupConfirm that the API key's group has permission to call the model.
Base URLConfirm it is https://www.potatoai.cc/v1 and does not miss /v1.

Error Code Reference

HTTP status codes help identify whether the problem belongs to the client, gateway, or upstream service.

StatusMeaningCommon CauseRecommended Action
200SuccessNormal response; if the body is empty, the endpoint may be wrong.Check whether the endpoint matches the model or API type.
400Bad requestInvalid JSON, missing fields, invalid parameters, or misspelled model name.Recheck the request body and model name.
401UnauthorizedAPI key is missing, incorrect, or disabled.Check the Authorization: Bearer sk-xxx format.
403ForbiddenThe key has no access to the model or current token group.Check token group permissions in the console.
404Not foundURL typo, such as /v1/message instead of /v1/messages.Call /v1/models to verify; check URL spelling.
413Request too largePrompt or input exceeds the model context window.Shorten the input, or switch to a larger-context model.
429Rate limitedQPS limit reached, or account quota is exhausted.Reduce concurrency and check quota in the console.
500Upstream errorUpstream model service error.Wait 30 seconds and retry; if it persists, submit a ticket with the request-id.
502Gateway errorConnection issue between the gateway and upstream service.Wait 1 minute and retry.
503Service unavailableUpstream overload or maintenance.Wait 1-5 minutes and retry.
504Gateway timeoutUpstream response is slow, or the prompt is too long.Shorten the input, or enable streaming output.
No response / stuckNo response or request stuckLocal network, DNS, TLS issue, or inaccurate system time.Check the network, switch DNS, and correct the system time.

Additional Notes

4xx Errors

4xx errors are usually client-side issues, such as incorrect keys, model names, URLs, request bodies, or permissions. In most cases, you can fix them by checking your local configuration.

5xx Errors

5xx errors are usually gateway or upstream model service issues. Retry after a short wait; if the issue continues, submit a ticket with the request-id, time, model name, and brief request scenario.

Pricing or Quota Looks Different

If model pricing, available models, or quota usage differs from expectations, refer to the console and final billing records.