Skip to main content

Request

Response

Image from base64 data

Vertex Image

Parameters

header
An optional header used for spend logging metadata, containing JSON properties like user_id, project_id, and env.
array
required
The conversation history or input prompts as an array of content objects.
object
Instructions to the model that dictate how it should behave.
object
Configuration options for the generation.
array
A list of unique safety settings for blocking unsafe content.
array
A list of tools the model may call.
object
Configuration for tools.

Params to Avoid

Ensure you do not mix OpenAI or Azure-specific parameters (such as prompt, size, quality, or n) with Gemini/Vertex AI request structure. Vertex AI expects prompt text inside the nested contents.parts object using camelCase keys.