Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.corroborateContent
Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts.
Endpoint
post
https://aiplatform.googleapis.com/v1/{parent}:corroborateContent
Path parameters
parent
string
Required. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: projects/{project}/locations/{location}.
Request body
The request body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[],[],null,["# Method: locations.corroborateContent\n\n**Full name**: projects.locations.corroborateContent\n\nGiven an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts. \n\n### Endpoint\n\npost `https:``/``/aiplatform.googleapis.com``/v1``/{parent}:corroborateContent` \n\n### Path parameters\n\n`parent` `string` \nRequired. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`.\n\n### Request body\n\nThe request body contains data with the following structure:\nFields `facts[]` `object (`[Fact](/vertex-ai/generative-ai/docs/reference/rest/v1/Fact)`)` \nOptional. Facts used to generate the text can also be used to corroborate the text.\n`parameters` `object (`[Parameters](/vertex-ai/generative-ai/docs/reference/rest/v1/projects.locations/corroborateContent#Parameters)`)` \nOptional. Parameters that can be set to override default settings per request.\n`content` `object (`[Content](/vertex-ai/generative-ai/docs/reference/rest/v1/Content)`)` \nOptional. Input content to corroborate, only text format is supported for now. \n\n### Response body\n\nResponse message for locations.corroborateContent.\n\nIf successful, the response body contains data with the following structure:\nFields `claims[]` `object (`[Claim](/vertex-ai/generative-ai/docs/reference/rest/v1/projects.locations/corroborateContent#Claim)`)` \nClaims that are extracted from the input content and facts that support the claims.\n`corroborationScore` `number` \nconfidence score of corroborating content. value is \\[0,1\\] with 1 is the most confidence. \n\nParameters\n----------\n\nParameters that can be overrided per request.\nFields `citationThreshold` `number` \nOptional. Only return claims with citation score larger than the threshold. \n\nClaim\n-----\n\nClaim that is extracted from the input text and facts that support it.\nFields `factIndexes[]` `integer` \nIndexes of the facts supporting this claim.\n`startIndex` `integer` \nIndex in the input text where the claim starts (inclusive).\n`endIndex` `integer` \nIndex in the input text where the claim ends (exclusive).\n`score` `number` \nconfidence score of this corroboration."]]