Guias
Erros
Todo erro tem o mesmo corpo. Tente de novo só em 429, 500 e 503.
Corpo do erro
json
{ "error": { "code", "message", "request_id", "param"?, "retry_after_s"? } }
Códigos
invalid_parameter | 400 | |
missing_location | 400 | |
invalid_json | 400 | |
invalid_key | 401 | |
unauthorized | 401 | |
key_required | 401 | |
place_not_found | 404 | |
not_found | 404 | |
invalid_promo | 404 | |
method_not_allowed | 405 | |
gone | 410 | |
key_exists | 409 | |
key_limit | 409 | |
already_subscribed | 409 | |
no_subscription | 409 | |
unsupported_media_type | 415 | |
rate_limited | 429 | Tentar de novo |
quota_exceeded | 429 | |
server_error | 500 | Tentar de novo |
unavailable | 503 | Tentar de novo |
accounts_closed | 503 |
llms-full.txt explica todos os códigos.
Novas tentativas
Em 429, espere Retry-After segundos antes de tentar de novo; retry_after_s no corpo tem o mesmo valor.