The maximum number of tokens as specified in the request was reached.
Other
All other reasons that stopped the token generation
Recitation
The token generation was stopped as the response was flagged for
unauthorized citations.
Safety
The token generation was stopped as the response was flagged for safety
reasons. NOTE: When streaming the Candidate.content will be empty if
content filters blocked the output.
Stop
Natural stop point of the model or provided stop sequence.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eCandidate.Types.FinishReason\u003c/code\u003e enum within the Google Cloud AI Platform V1 API, detailing the various reasons a model may stop generating tokens.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is for version 3.22.0, with links available to documentation for various previous versions, all the way back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCandidate.Types.FinishReason\u003c/code\u003e enum includes values like \u003ccode\u003eMaxTokens\u003c/code\u003e, \u003ccode\u003eOther\u003c/code\u003e, \u003ccode\u003eRecitation\u003c/code\u003e, \u003ccode\u003eSafety\u003c/code\u003e, \u003ccode\u003eStop\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, each describing a specific reason for token generation termination.\u003c/p\u003e\n"],["\u003cp\u003eEach version listed on the page links to the specific documentation for the \u003ccode\u003eCandidate.Types.FinishReason\u003c/code\u003e within that version of the API, allowing users to see how the enum has changed over time.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation specifies that when \u003ccode\u003eSafety\u003c/code\u003e is the finish reason, the \u003ccode\u003eCandidate.content\u003c/code\u003e will be empty if content filters blocked the output.\u003c/p\u003e\n"]]],[],null,[]]