Skip to main content

Request

Response


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
System instructions that provide context, rules, or guidelines to the model.
object
Configuration options for model generation and outputs.
array
A list of unique safety settings for blocking unsafe content.
array
A list of Tools the model may use to generate the next response. Supported tools are function declarations, code execution, and Google Search.
object
Tool configuration for any Tool specified in the request.

Params to Avoid