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 Tools the model may use to generate the next response. Supported tools are function declarations and code execution.
object
Tool configuration for any Tool specified in the request.
array
A list of unique safety settings for blocking unsafe content.

Params to Avoid