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.
[[["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-08-06 UTC."],[],[],null,["# Method: tuningJobs.optimizePrompt\n\n**Full name**: projects.locations.tuningJobs.optimizePrompt\n\nOptimizes a prompt. \n\n### Endpoint\n\npost `https:``/``/aiplatform.googleapis.com``/v1beta1``/{parent}``/tuningJobs:optimizePrompt` \n\n### Path parameters\n\n`parent` `string` \nRequired. The resource name of the Location to optimize the prompt in. Format: `projects/{project}/locations/{location}`\n\n### Request body\n\nThe request body contains data with the following structure:\nFields `content` `object (`[Content](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/Content)`)` \nRequired. The content to optimize. \n\n### Response body\n\nResponse message for [GenAiTuningService.OptimizePrompt](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/projects.locations.tuningJobs/optimizePrompt#google.cloud.aiplatform.v1beta1.GenAiTuningService.OptimizePrompt)\n\nIf successful, the response body contains data with the following structure:\nFields `content` `object (`[Content](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/Content)`)` \nOutput only. The optimized prompt content."]]