Skip to main content

Request

Response


Parameters

spend-logs-metadata
header
An optional header used for spend logging metadata, containing JSON properties like user_id, project_id, and env.
contents
array
required
The conversation history or input prompts as an array of content objects.
systemInstruction
object
System instructions that provide context, rules, or guidelines to the model.
generationConfig
object
Configuration options for model generation and outputs.
tools
array
A list of Tools the model may use to generate the next response. Supported tools are function declarations and code execution.
toolConfig
object
Tool configuration for any Tool specified in the request.
safetySettings
array
A list of unique safety settings for blocking unsafe content.

Params to Avoid