400 | invalid_request | The request is malformed: the body isn’t valid JSON, it has an unknown field, a query parameter is unknown or sent twice, the Idempotency-Key header isn’t 1 to 255 printable ASCII characters, or an endpoint that takes no body received one. |
405 | invalid_request | The endpoint doesn’t accept this method. The Allow header lists the methods it accepts. |
413 | invalid_request | The request body is larger than 128 KiB. |
415 | invalid_request | The request body isn’t sent as application/json. |
400 | validation_failed | A value is invalid for the endpoint or for the model’s request schema, or a cursor doesn’t match the filters sent with it. |
400 | model_unavailable | The model isn’t available to your organization, or it’s past its sunset date. param is model. |
400 | input_import_failed | ZeroGen couldn’t import a URL input. param names the input, such as inputs[1].url. Nothing is charged. |
401 | invalid_api_key | The API key is missing, malformed, unknown, revoked, or expired. |
402 | insufficient_balance | Your organization’s available balance can’t cover the generation’s quote. details carries availableMicroUsd and requiredMicroUsd. |
402 | spend_limit_reached | The generation would pass your organization’s monthly spend limit or the project’s monthly budget. An admin can raise them. |
402 | cost_limit_exceeded | The quote is higher than the request’s maxCostMicroUsd. details carries quotedMicroUsd and maxCostMicroUsd. |
403 | permission_denied | The key lacks the endpoint’s scope (details.scope names it), the request came from a browser, the API isn’t enabled for your organization, a test key reached outside its sandbox, or the owner’s membership doesn’t allow the action. |
404 | not_found | No such endpoint, or no resource with this ID that the key can reach. An ID that isn’t a UUID is also not_found. |
409 | idempotency_conflict | The Idempotency-Key was already used for a different request. |
409 | idempotency_in_progress | A request with this Idempotency-Key is still running. Retryable. |
409 | invalid_state | The generation needs a person’s approval, so an API key can’t start it. For example, a generation that runs on your organization’s own provider key with no provider list price. details.approvalReason says why. |
429 | rate_limited | A rate limit, a running-generation cap, or a URL import limit was reached. Retryable after Retry-After. For details, see Rate limits. |
500 | internal | Something went wrong in ZeroGen. Retryable. |
503 | pricing_unavailable | ZeroGen can’t price the generation right now. retryable says whether a retry can help. |
503 | unavailable | ZeroGen can’t check API keys right now, which is retryable, or your organization’s balance isn’t available, which isn’t. |