Skip to main content

GenerationErrorOut

codeCoderequired

Why the generation failed: content_blocked (a content safety check refused the request or an input), insufficient_credits (the billing account ran out), invalid_input (an input could not be used), generation_failed (it did not produce a result) or timeout (it did not finish in time).

Possible values: [content_blocked, insufficient_credits, insufficient_available_credits, invalid_input, generation_failed, timeout]

messageMessagerequired

A human-readable explanation.

GenerationErrorOut
{
"code": "content_blocked",
"message": "string"
}