{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/PromptFeedback",
"title": "PromptFeedback",
"type": "object",
"description": "A set of the feedback metadata for the prompt specified in GenerateContentRequest.content.",
"properties": {
"blockReason": {
"type": "string",
"description": "If set, the prompt was blocked and no candidates are returned.",
"enum": [
"BLOCK_REASON_UNSPECIFIED",
"SAFETY",
"OTHER",
"BLOCKLIST",
"PROHIBITED_CONTENT"
]
},
"safetyRatings": {
"type": "array",
"description": "Ratings for safety of the prompt.",
"items": {
"$ref": "#/components/schemas/SafetyRating"
}
}
}
}
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.