{
"error": {
"code": "not_found",
"http_status": 404,
"message": "The requested model was not found.",
"request_id": "req_3f9a1c2b7d4e5f60718293a4",
"type": "invalid_request_error"
}
}
Generates a model response given an input GenerateContentRequest.
Refer to the text generation
guide for detailed
usage information. Input capabilities differ between models, including
tuned models. Refer to the model
guide and tuning
guide for details.
{
"error": {
"code": "not_found",
"http_status": 404,
"message": "The requested model was not found.",
"request_id": "req_3f9a1c2b7d4e5f60718293a4",
"type": "invalid_request_error"
}
}
Send your DreamTo API Key in the x-goog-api-key header, the way the Google SDKs do by default; the ?key=<API Key> query parameter works too.
Path Parameters
model
string
default:gemini-4-hydrogen
required
ID of the model to use, for example gemini-4-hydrogen. See Models for the available models.
Body
application/json
Request to generate a completion from the model.
contents
object[]
required
Required. The content of the current conversation with the model.
For single-turn queries, this is a single instance. For multi-turn queries
like
chat,
this is a repeated field that contains the conversation history and the
latest request.
Show child attributes
continuationToken
string<byte>
Optional. An opaque continuation token used to resume generation from a
previous GenerateContent or StreamGenerateContent response that stopped
with finish_reason set to CONTINUATION. Note that contents is
mandatory and must identically replicate the prompt and conversation
history from the initial request when continuation token is provided in
a request.
tools
object[]
Optional. A list of Tools the Model may use to generate the next response.
A Tool is a piece of code that enables the system to interact with
external systems to perform an action, or set of actions, outside of
knowledge and scope of the Model. Supported Tools are Function and
code_execution. Refer to the Function
calling and the
Code execution
guides to learn more.
Show child attributes
serviceTier
enum<string>
Optional. The service tier of the request.
Available options:
unspecified,
standard,
flex,
priority
toolConfig
object
Optional. Tool configuration for any Tool specified in the request. Refer to the
Function calling
guide
for a usage example.
Show child attributes
safetySettings
object[]
Optional. A list of unique SafetySetting instances for blocking unsafe content.
This will be enforced on the GenerateContentRequest.contents and
GenerateContentResponse.candidates. There should not be more than one
setting for each SafetyCategory type. The API will block any contents and
responses that fail to meet the thresholds set by these settings. This list
overrides the default settings for each SafetyCategory specified in the
safety_settings. If there is no SafetySetting for a given
SafetyCategory provided in the list, the API will use the default safety
setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH,
HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT,
HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY,
HARM_CATEGORY_JAILBREAK are supported.
Refer to the guide
for detailed information on available safety settings. Also refer to the
Safety guidance to
learn how to incorporate safety considerations in your AI applications.
Show child attributes
labels
object
Optional. Labels with user-defined metadata for the request.
Optional. Labels must follow standard unified Cloud label requirements:
Label keys must start with a letter.
Label keys and values can be no longer than 63 characters (Unicode
codepoints) and can only contain lowercase letters, numeric characters,
underscores, and dashes.
International characters are allowed.
Usage:
Safety identifiers from aggregators: Use the key safety_identifier
(e.g. {"safety_identifier": "user_session_123"})
Show child attributes
cachedContent
string
Optional. The name of the content
cached to use as context
to serve the prediction. Format: cachedContents/{cachedContent}
generationConfig
object
Optional. Configuration options for model generation and outputs.
Show child attributes
store
boolean
Optional. Configures the logging behavior for a given request. If set, it takes
precedence over the project-level logging config.
Response from the model supporting multiple candidate responses.
Safety ratings and content filtering are reported for both
prompt in GenerateContentResponse.prompt_feedback and for each candidate
in finish_reason and in safety_ratings. The API:
Returns either all requested candidates or none of them
Returns no candidates at all only if there was something wrong with the
prompt (check prompt_feedback)
Reports feedback on each candidate in finish_reason and
safety_ratings.
modelVersion
string
read-only
Output only. The model version used to generate the response.
candidates
object[]
Candidate responses from the model.
Show child attributes
promptFeedback
object
Returns the prompt's feedback related to the content filters.
Show child attributes
responseId
string
read-only
Output only. response_id is used to identify each response.
usageMetadata
object
Output only. Metadata on the generation requests' token usage.
Show child attributes
modelStatus
object
Output only. The current model status of this model.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DreamTo API","description":"DreamTo 开放平台 API 对接文档:大模型、图像生成、视频生成、素材库与回调通知。","colors":{"primary":"#3E3E3F","light":"#D9D9D9","dark":"#363637"},"logo":{"light":"https://mintcdn.com/dreamto/qdi4xMMMFQC2W0qR/logo/light.png?fit=max\u0026auto=format\u0026n=qdi4xMMMFQC2W0qR\u0026q=85\u0026s=34f5db7a934e6d8d4723f28e3524c21a","dark":"https://mintcdn.com/dreamto/qdi4xMMMFQC2W0qR/logo/dark.png?fit=max\u0026auto=format\u0026n=qdi4xMMMFQC2W0qR\u0026q=85\u0026s=e9e91d5623ae6cf20295add0e33604b6","href":"https://www.dreamto.ai"},"favicon":"https://mintcdn.com/dreamto/Ph_X0c0GH3e_Oc4M/logo/favicon.png?fit=max\u0026auto=format\u0026n=Ph_X0c0GH3e_Oc4M\u0026q=85\u0026s=a962c369d147adc379d19082b3761244","api":{"examples":{"languages":["curl","python","javascript","node","go","java","php","ruby","csharp","swift","kotlin","rust"],"prefill":true}},"appearance":{"default":"dark"},"navbar":{"primary":{"type":"button","label":"Console","href":"https://www.dreamto.ai"}},"footer":{"socials":{"website":"https://www.dreamto.ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode","download-pdf","download-spec","assistant","grok","aistudio","devin","windsurf","add-mcp","devin-mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"zh","default":true,"href":""},{"language":"en","href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dreamto","hasAudioNarration":false,"actualSubdomain":"dreamto","customDomains":["docs.dreamto.ai"],"gitSource":{"type":"github","owner":"dreamtoai","repo":"dreamtoai-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6af54bcfc07174dae1a336e3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b13fb2c585955f128114e94","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"zh","tag":"音乐生成","count":94},{"language":"zh","tag":"Suno","count":94},{"language":"en","tag":"Music generation","count":94},{"language":"en","tag":"Suno","count":94},{"language":"zh","tag":"Seedance 视频生成","count":82},{"language":"en","tag":"Seedance video","count":82},{"language":"zh","tag":"使用示例","count":63},{"language":"en","tag":"Examples","count":63},{"language":"zh","tag":"图像生成","count":50},{"language":"zh","tag":"歌曲生成与编辑","count":50},{"language":"en","tag":"Image generation","count":50},{"language":"en","tag":"Songs","count":50},{"language":"zh","tag":"PixVerse 视频生成","count":28},{"language":"en","tag":"PixVerse video","count":28},{"language":"zh","tag":"Wan 视频生成","count":27},{"language":"en","tag":"Wan video","count":27},{"language":"zh","tag":"工具接入","count":16},{"language":"zh","tag":"Seedance 2.5","count":16},{"language":"en","tag":"Integrations","count":16},{"language":"en","tag":"Seedance 2.5","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar img.nav-logo,.nav-logo{height:2.5rem;max-height:2.5rem;width:auto}@media (max-width: 1024px){#navbar img.nav-logo,.nav-logo{height:2rem;max-height:2rem}}"}]}
{"page":{"pagePath":"en/api-reference/gemini-generate-content/generate-content","slug":"/en/api-reference/gemini-generate-content/generate-content","pageMetadata":{"title":"Generate content","description":"Generates a model response given an input `GenerateContentRequest`.\nRefer to the [text generation\nguide](https://aistudio.google.com/docs/text-generation) for detailed\nusage information. Input capabilities differ between models, including\ntuned models. Refer to the [model\nguide](https://aistudio.google.com/docs/models) and [tuning\nguide](https://aistudio.google.com/docs/model-tuning) for details.","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-generate-content.json post /v1beta/models/{model}:generateContent","href":"/en/api-reference/gemini-generate-content/generate-content","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Generates a model response given an input \", _jsx(_components.code, {\n children: \"GenerateContentRequest\"\n }), \".\\nRefer to the \", _jsx(_components.a, {\n href: \"https://aistudio.google.com/docs/text-generation\",\n children: \"text generation\\nguide\"\n }), \" for detailed\\nusage information. Input capabilities differ between models, including\\ntuned models. Refer to the \", _jsx(_components.a, {\n href: \"https://aistudio.google.com/docs/models\",\n children: \"model\\nguide\"\n }), \" and \", _jsx(_components.a, {\n href: \"https://aistudio.google.com/docs/model-tuning\",\n children: \"tuning\\nguide\"\n }), \" for details.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Generate content","description":"Generates a model response given an input `GenerateContentRequest`.\nRefer to the [text generation\nguide](https://aistudio.google.com/docs/text-generation) for detailed\nusage information. Input capabilities differ between models, including\ntuned models. Refer to the [model\nguide](https://aistudio.google.com/docs/models) and [tuning\nguide](https://aistudio.google.com/docs/model-tuning) for details.","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-generate-content.json post /v1beta/models/{model}:generateContent","href":"/en/api-reference/gemini-generate-content/generate-content","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"generateContent","summary":"Generate content","description":"Generates a model response given an input `GenerateContentRequest`.\nRefer to the [text generation\nguide](https://aistudio.google.com/docs/text-generation) for detailed\nusage information. Input capabilities differ between models, including\ntuned models. Refer to the [model\nguide](https://aistudio.google.com/docs/models) and [tuning\nguide](https://aistudio.google.com/docs/model-tuning) for details.","tags":["generateContent"],"parameters":["809e9915-03af-4b3c-aa79-fda3c3742846"],"requestBody":"c7b093df-90bc-46f9-a7f6-68d8c975d199","responses":{"200":"ed500e25-a883-45b2-bf0a-e4b3edba72dd","400":"03f5537b-e17c-4bf2-91ae-6a53ef3161ef","401":"50068fca-c38f-4ab0-99eb-1285a945c633","402":"56b937d1-7706-4e2c-a55c-70cc362c914b","403":"e70b4a5f-647e-4613-baaa-75f84ae850e0","404":"462915e8-798a-4614-a6dc-f930ff444c3f","429":"64a11487-8d1d-4e40-b2a4-cbc1e318ae4e","500":"d4192644-cb48-4190-b94f-be8280997f56","503":"685dfdd4-dce5-4786-8356-91fcb434c28d"},"x-mint":{"href":"/en/api-reference/gemini-generate-content/generate-content","metadata":{"title":"Generate content","sidebarTitle":"Generate content"}},"method":"post","type":"path","servers":["6d5bd19d-d845-4a17-a503-29004ed290c1"],"security":["97c1d3a8-d746-406b-bccd-ce2b80cfa46e","e01b730a-4d38-4afc-a93e-62092ebe3956"],"path":"/v1beta/models/{model}:generateContent","baseUrlOptions":["https://api.dreamto.ai"],"title":"Generate content","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","node","go","java","php","ruby","csharp","swift","kotlin","rust"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.contents.items.0.parts.items.0.text":"Explain quantum computing in three sentences.","body.contents.items.0.role":"user"},{"body.contents.items.0.parts.items.0.text":"Suggest a name for a coffee shop.","body.contents.items.0.role":"user","body.contents.items.1.parts.items.0.text":"How about \"Morning Light Coffee\"?","body.contents.items.1.role":"model","body.contents.items.2.parts.items.0.text":"Now add a tagline for that name.","body.contents.items.2.role":"user","body.systemInstruction.parts.items.0.text":"You are a concise, professional assistant."},{"body.contents.items.0.parts.items.0.text":"Prove that among any five integers there are three whose sum is divisible by 3.","body.contents.items.0.role":"user","body.generationConfig.thinkingConfig.thinkingLevel":"HIGH","body.generationConfig.maxOutputTokens":8192},{"body.contents.items.0.parts.items.0.inlineData.data":"\u003cBase64-encoded image>","body.contents.items.0.parts.items.0.inlineData.mimeType":"image/jpeg","body.contents.items.0.parts.items.1.text":"What is in this image?","body.contents.items.0.role":"user"},{"body.contents.items.0.parts.items.0.text":"What's the weather like in Hangzhou today?","body.contents.items.0.role":"user","body.tools.items.0.functionDeclarations.items.0.description":"Get the current weather for a city","body.tools.items.0.functionDeclarations.items.0.name":"get_weather","body.tools.items.0.functionDeclarations.items.0.parametersJsonSchema":{"type":"object","properties":{"city":{"type":"string","description":"City name, e.g. Hangzhou"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["city"]}},{"body.contents.items.0.parts.items.0.text":"Extract the contact from this sentence: I'm Li Lei from Galaxy Tech, lilei@example.com.","body.contents.items.0.role":"user","body.generationConfig.responseMimeType":"application/json","body.generationConfig.responseJsonSchema":{"type":"object","properties":{"name":{"type":"string"},"company":{"type":"string"},"email":{"type":"string"}},"required":["name","company","email"]}}]},"dependencies":{"parameters":{"809e9915-03af-4b3c-aa79-fda3c3742846":{"description":"ID of the model to use, for example `gemini-4-hydrogen`. See [Models](/en/llm/gemini-generate-content) for the available models.","required":true,"schema":{"type":"string","default":"gemini-4-hydrogen","isRequired":true,"description":"ID of the model to use, for example `gemini-4-hydrogen`. See [Models](/en/llm/gemini-generate-content) for the available models.","uniqueKey":"","typeLabel":"string"},"in":"path","name":"model"}},"requestBody":{"content":{"application/json":{"schema":{"description":"Request to generate a completion from the model.","properties":{"contents":{"description":"Required. The content of the current conversation with the model.\n\nFor single-turn queries, this is a single instance. For multi-turn queries\nlike\n[chat](https://aistudio.google.com/docs/text-generation#multi-turn-conversations),\nthis is a repeated field that contains the conversation history and the\nlatest request.","type":"array","items":{"properties":{"parts":{"items":{"type":"object","properties":{"toolResponse":{"type":"object","description":"The output from a server-side `ToolCall` execution. This field is\npopulated by the client with the results of executing the\ncorresponding `ToolCall`.","required":["toolType"],"properties":{"toolType":{"type":"string","description":"Required. The type of tool that was called, matching the `tool_type` in the\ncorresponding `ToolCall`.","enum":["TOOL_TYPE_UNSPECIFIED","GOOGLE_SEARCH_WEB","GOOGLE_SEARCH_IMAGE","URL_CONTEXT","GOOGLE_MAPS","FILE_SEARCH","MEDIA_PROCESSING"],"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolResponse.toolType","typeLabel":"enum\u003cstring>"},"response":{"type":"object","description":"Optional. The tool response.","additionalProperties":{"description":"Properties of the object.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolResponse.response.additionalProperties","typeLabel":"any"},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolResponse.response","typeLabel":"object"},"id":{"type":"string","description":"Optional. The identifier of the tool call this response is for.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolResponse.id","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolResponse","typeLabel":"object"},"executableCode":{"type":"object","description":"Code generated by the model that is meant to be executed.","required":["language","code"],"properties":{"language":{"type":"string","description":"Required. Programming language of the `code`.\n\n**Allowed values:**\n- `LANGUAGE_UNSPECIFIED`: Unspecified language. This value should not be used.\n- `PYTHON`: Python >= 3.10, with numpy and simpy available. Python is the default language.","enum":["LANGUAGE_UNSPECIFIED","PYTHON"],"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].executableCode.language","typeLabel":"enum\u003cstring>"},"code":{"description":"Required. The code to be executed.","type":"string","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].executableCode.code","typeLabel":"string"},"id":{"type":"string","description":"Optional. Unique identifier of the `ExecutableCode` part.\nThe server returns the `CodeExecutionResult` with the matching `id`.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].executableCode.id","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].executableCode","typeLabel":"object"},"speechMetadata":{"type":"object","description":"Optional. Metadata applied to text parts to customize how they should be spoken or\nsynthesized, such as specifying speaker identity or speaking style.","properties":{"style":{"type":"string","description":"Optional. Optional style instruction for the speech synthesis.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].speechMetadata.style","typeLabel":"string"},"speaker":{"type":"string","description":"Optional. Optional speaker name for multi-speaker synthesis.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].speechMetadata.speaker","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].speechMetadata","typeLabel":"object"},"audioMetadata":{"type":"object","description":"Optional. Audio metadata. The metadata should only be specified while the audio\ndata is presented in inline_data or file_data.","properties":{"endOffset":{"description":"Optional. The end offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. The start offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioMetadata","typeLabel":"object"},"audioTranscription":{"type":"object","description":"Optional. Audio (input or output) transcription.\nThis is only set when this Part contains audio data.","required":["text"],"properties":{"text":{"type":"string","description":"Required. The transcription text of this audio segment.","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioTranscription.text","typeLabel":"string"},"words":{"type":"array","items":{"description":"Information about a single recognized word.","properties":{"word":{"description":"Required. Transcript of the word.","type":"string","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioTranscription.words.items.[INDEX].word","typeLabel":"string"},"endOffset":{"type":"string","format":"google-duration","description":"Optional. End offset in time of the word relative to the start of the audio.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioTranscription.words.items.[INDEX].endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. Start offset in time of the word relative to the start of the audio.","format":"google-duration","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioTranscription.words.items.[INDEX].startOffset","typeLabel":"string\u003cgoogle-duration>"}},"required":["word"],"type":"object","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioTranscription.words.items.[INDEX]","typeLabel":"object"},"description":"Optional. Detailed word-level transcriptions and timing details.\nPresent when word_timestamp is set.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioTranscription.words","typeLabel":"object[]"},"speakerLabel":{"type":"string","description":"Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\",\n\"spk_2\"). Present when diarization is set.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioTranscription.speakerLabel","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].audioTranscription","typeLabel":"object"},"inlineData":{"type":"object","description":"Inline media bytes.","properties":{"data":{"description":"Raw bytes for media formats.","type":"string","format":"byte","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"},"mimeType":{"type":"string","description":"The IANA standard MIME type of the source data.\nExamples of supported types:\n- Images: image/png, image/jpeg, image/jpg, image/webp, image/heic,\nimage/heif, image/gif, image/avif\n- Audio: audio/*, video/audio/s16le, video/audio/wav\n- Video: video/*\n- Text: text/plain, text/html, text/css, text/javascript,\ntext/x-typescript, text/csv, text/markdown, text/x-python, text/xml,\ntext/rtf, video/text/timestamp\n- Applications: application/x-javascript, application/x-typescript,\napplication/x-python-code, application/json, application/x-ipynb+json,\napplication/rtf, application/pdf For additional context,\nsee [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"},"displayName":{"description":"Optional. Specifies the name used to refer to this blob to the model (e.g.\n\"my_blob.png\"). Used as the blob reference identifier when\n`verbalization_mode` is set to `REFERENCE_ONLY`.","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].inlineData.displayName","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].inlineData","typeLabel":"object"},"spreadsheetMetadata":{"type":"object","description":"Optional. Spreadsheet metadata. The metadata should only be specified while the\nspreadsheet data is presented in inline_data or file_data.","properties":{"contentLayers":{"type":"array","items":{"type":"string","enum":["CONTENT_LAYER_UNSPECIFIED","DATA","FORMULAS","VISUAL"],"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].spreadsheetMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `DATA`: Cell values, merges, and formats.\n- `FORMULAS`: Formula expressions and their computed results.\n- `VISUAL`: A rendered image of the sheet.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].spreadsheetMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"visibleCells":{"description":"Optional. The range of cells to extract, in A1 notation (e.g. \"A1:D10\").\nIf not set, the full occupied area of the sheet is used.","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].spreadsheetMetadata.visibleCells","typeLabel":"string"},"sheetIndex":{"description":"Optional. The 1-indexed index of the sheet to extract, in workbook order.\nIf not set, all sheets are extracted.","format":"int32","type":"integer","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].spreadsheetMetadata.sheetIndex","typeLabel":"integer\u003cint32>"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].spreadsheetMetadata","typeLabel":"object"},"partMetadata":{"type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].partMetadata.additionalProperties","typeLabel":"any"},"description":"Custom metadata associated with the Part.\nAgents using genai.Part as content representation may need to keep track\nof the additional information. For example it can be name of a file/source\nfrom which the Part originates or a way to multiplex multiple Part streams.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].partMetadata","typeLabel":"object"},"text":{"type":"string","description":"Inline text.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].text","typeLabel":"string"},"thoughtSignature":{"format":"byte","description":"Optional. An opaque signature for the thought so it can be reused in subsequent\nrequests.","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].thoughtSignature","typeLabel":"string\u003cbyte>"},"codeExecutionResult":{"type":"object","description":"Result of executing the `ExecutableCode`.","required":["outcome"],"properties":{"outcome":{"description":"Required. Outcome of the code execution.\n\n**Allowed values:**\n- `OUTCOME_UNSPECIFIED`: Unspecified status. This value should not be used.\n- `OUTCOME_OK`: Code execution completed successfully. `output` contains the stdout, if any.\n- `OUTCOME_FAILED`: Code execution failed. `output` contains the stderr and stdout, if any.\n- `OUTCOME_DEADLINE_EXCEEDED`: Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present.","enum":["OUTCOME_UNSPECIFIED","OUTCOME_OK","OUTCOME_FAILED","OUTCOME_DEADLINE_EXCEEDED"],"type":"string","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].codeExecutionResult.outcome","typeLabel":"enum\u003cstring>"},"id":{"description":"Optional. The identifier of the `ExecutableCode` part this result is for.\nOnly populated if the corresponding `ExecutableCode` has an id.","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].codeExecutionResult.id","typeLabel":"string"},"output":{"type":"string","description":"Optional. Contains stdout when code execution is successful, stderr or other\ndescription otherwise.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].codeExecutionResult.output","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].codeExecutionResult","typeLabel":"object"},"thought":{"description":"Optional. Indicates if the part is thought from the model.","type":"boolean","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].thought","typeLabel":"boolean"},"functionCall":{"type":"object","description":"A predicted `FunctionCall` returned from the model that contains\na string representing the `FunctionDeclaration.name` with the\narguments and their values.","required":["name"],"properties":{"name":{"description":"Required. The name of the function to call.\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum\nlength of 128.","type":"string","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionCall.name","typeLabel":"string"},"args":{"type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionCall.args.additionalProperties","typeLabel":"any"},"description":"Optional. The function parameters and values in JSON object format.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionCall.args","typeLabel":"object"},"id":{"description":"Optional. Unique identifier of the function call. If populated, the client to\nexecute the `function_call` and return the response with the matching `id`.","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionCall.id","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionCall","typeLabel":"object"},"mediaProcessing":{"type":"string","description":"Optional. How the model processes this part's media for understanding.\nOnly meaningful for video parts (`inline_data` or `file_data` with video\nmime). Non-video parts ignore this field.\n\n**Allowed values:**\n- `MEDIA_PROCESSING_UNSPECIFIED`: Defaults to model-specific processing.\n- `STATIC`: Fixed-rate frame extraction. All frames placed in context.\n- `AGENTIC`: Model-driven dynamic navigation. Recommended for most use cases.","enum":["MEDIA_PROCESSING_UNSPECIFIED","STATIC","AGENTIC"],"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].mediaProcessing","typeLabel":"enum\u003cstring>"},"videoMetadata":{"type":"object","description":"Optional. Video metadata. The metadata should only be specified while the video\ndata is presented in inline_data or file_data.","properties":{"fps":{"description":"Optional. The frame rate of the video sent to the model. If not specified, the\ndefault value will be 1.0.\nThe fps range is (0.0, 24.0].","format":"double","type":"number","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].videoMetadata.fps","typeLabel":"number\u003cdouble>"},"startOffset":{"description":"Optional. The start offset of the video.","format":"google-duration","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].videoMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"},"contentLayers":{"items":{"enum":["CONTENT_LAYER_UNSPECIFIED","FRAMES","AUDIO","TRANSCRIPT"],"type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].videoMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [FRAMES, AUDIO].\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `FRAMES`: Extract video frames.\n- `AUDIO`: Extract audio track.\n- `TRANSCRIPT`: Extract audio transcript.","type":"array","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].videoMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"endOffset":{"type":"string","description":"Optional. The end offset of the video.","format":"google-duration","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].videoMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].videoMetadata","typeLabel":"object"},"fileData":{"type":"object","description":"URI based data.","required":["fileUri"],"properties":{"fileUri":{"description":"Required. URI.","type":"string","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].fileData.fileUri","typeLabel":"string"},"displayName":{"description":"Optional. Specifies the name used to refer to this file to the model (e.g.\n\"my_file.pdf\"). Used as the file reference identifier when\n`verbalization_mode` is set to `REFERENCE_ONLY`.","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].fileData.displayName","typeLabel":"string"},"mimeType":{"type":"string","description":"Optional. The IANA standard MIME type of the source data.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].fileData.mimeType","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].fileData","typeLabel":"object"},"mediaResolution":{"type":"object","description":"Optional. Media resolution for the input media.","properties":{"level":{"enum":["MEDIA_RESOLUTION_UNSPECIFIED","MEDIA_RESOLUTION_LOW","MEDIA_RESOLUTION_MEDIUM","MEDIA_RESOLUTION_HIGH","MEDIA_RESOLUTION_ULTRA_HIGH"],"type":"string","description":"The tokenization quality used for given media.\n for Gemini API support .\n\n**Allowed values:**\n- `MEDIA_RESOLUTION_UNSPECIFIED`: Media resolution has not been set.\n- `MEDIA_RESOLUTION_LOW`: Media resolution set to low.\n- `MEDIA_RESOLUTION_MEDIUM`: Media resolution set to medium.\n- `MEDIA_RESOLUTION_HIGH`: Media resolution set to high.\n- `MEDIA_RESOLUTION_ULTRA_HIGH`: Media resolution set to ultra high.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].mediaResolution.level","typeLabel":"enum\u003cstring>"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].mediaResolution","typeLabel":"object"},"documentMetadata":{"type":"object","description":"Optional. Document metadata. The metadata should only be specified while the\ndocument data is presented in inline_data or file_data.","properties":{"startPage":{"type":"integer","format":"int32","description":"Optional. 1-indexed inclusive start page.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].documentMetadata.startPage","typeLabel":"integer\u003cint32>"},"endPage":{"type":"integer","description":"Optional. 1-indexed inclusive end page.","format":"int32","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].documentMetadata.endPage","typeLabel":"integer\u003cint32>"},"contentLayers":{"type":"array","description":"Optional. Content layers to return.\nIf empty, defaults to [PAGE_IMAGE] when DocumentMetadata is set. When\nDocumentMetadata is not set, default document processing is used (for\nexample, page images for PDFs).\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `PAGE_IMAGE`: Rendered page images.\n- `PAGE_TEXT`: Extracted page text.","items":{"enum":["CONTENT_LAYER_UNSPECIFIED","PAGE_IMAGE","PAGE_TEXT"],"type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].documentMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].documentMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].documentMetadata","typeLabel":"object"},"functionResponse":{"type":"object","description":"The result output of a `FunctionCall` that contains a string\nrepresenting the `FunctionDeclaration.name` and a structured JSON\nobject containing any output from the function is used as context to\nthe model.","required":["name","response"],"properties":{"response":{"description":"Required. The function response in JSON object format.\nCallers can use any keys of their choice that fit the function's syntax\nto return the function output, e.g. \"output\", \"result\", etc.\nIn particular, if the function call failed to execute, the response can\nhave an \"error\" key to return error details to the model.\n\nMultimedia can be included by using a subobject containing a single \"$ref\"\nkey whose value is the `inline_data.display_name` or\n`file_data.display_name` of a `FunctionResponsePart` holding the\nmultimedia. See [Multimodal function\nresponses](https://aistudio.google.com/docs/function-calling#multimodal).","type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.response.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.response","typeLabel":"object"},"name":{"description":"Required. The name of the function to call.\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum\nlength of 128.","type":"string","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.name","typeLabel":"string"},"willContinue":{"description":"Optional. Signals that function call continues, and more responses will be\nreturned, turning the function call into a generator.\nIs only applicable to NON_BLOCKING function calls, is ignored otherwise.\nIf set to false, future responses will not be considered.\nIt is allowed to return empty `response` with `will_continue=False` to\nsignal that the function call is finished. This may still trigger the model\ngeneration. To avoid triggering the generation and finish the function\ncall, additionally set `scheduling` to `SILENT`.","type":"boolean","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.willContinue","typeLabel":"boolean"},"parts":{"type":"array","items":{"type":"object","description":"A datatype containing media that is part of a `FunctionResponse` message.\n\nA `FunctionResponsePart` consists of data which has an associated datatype. A\n`FunctionResponsePart` can only contain one of the accepted types in\n`FunctionResponsePart.data`.\n\nMedia can be passed as raw bytes (`inline_data`) or by URI (`file_data`) with\nan IANA MIME type identifying the type and subtype of the media.","properties":{"documentMetadata":{"type":"object","description":"Optional. Document metadata. The metadata should only be specified while the\ndocument data is presented in inline_data or file_data.","properties":{"startPage":{"type":"integer","format":"int32","description":"Optional. 1-indexed inclusive start page.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.startPage","typeLabel":"integer\u003cint32>"},"endPage":{"type":"integer","description":"Optional. 1-indexed inclusive end page.","format":"int32","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.endPage","typeLabel":"integer\u003cint32>"},"contentLayers":{"type":"array","description":"Optional. Content layers to return.\nIf empty, defaults to [PAGE_IMAGE] when DocumentMetadata is set. When\nDocumentMetadata is not set, default document processing is used (for\nexample, page images for PDFs).\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `PAGE_IMAGE`: Rendered page images.\n- `PAGE_TEXT`: Extracted page text.","items":{"enum":["CONTENT_LAYER_UNSPECIFIED","PAGE_IMAGE","PAGE_TEXT"],"type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata","typeLabel":"object"},"mediaProcessing":{"type":"string","description":"Optional. How the model processes this part's media for understanding.\nOnly meaningful for video parts (`inline_data` or `file_data` with video\nmime). Non-video parts ignore this field.\n\n**Allowed values:**\n- `MEDIA_PROCESSING_UNSPECIFIED`: Defaults to model-specific processing.\n- `STATIC`: Fixed-rate frame extraction. All frames placed in context.\n- `AGENTIC`: Model-driven dynamic navigation. Recommended for most use cases.","enum":["MEDIA_PROCESSING_UNSPECIFIED","STATIC","AGENTIC"],"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaProcessing","typeLabel":"enum\u003cstring>"},"mediaResolution":{"type":"object","description":"Optional. Media resolution for the input media.","properties":{"level":{"enum":["MEDIA_RESOLUTION_UNSPECIFIED","MEDIA_RESOLUTION_LOW","MEDIA_RESOLUTION_MEDIUM","MEDIA_RESOLUTION_HIGH","MEDIA_RESOLUTION_ULTRA_HIGH"],"type":"string","description":"The tokenization quality used for given media.\n for Gemini API support .\n\n**Allowed values:**\n- `MEDIA_RESOLUTION_UNSPECIFIED`: Media resolution has not been set.\n- `MEDIA_RESOLUTION_LOW`: Media resolution set to low.\n- `MEDIA_RESOLUTION_MEDIUM`: Media resolution set to medium.\n- `MEDIA_RESOLUTION_HIGH`: Media resolution set to high.\n- `MEDIA_RESOLUTION_ULTRA_HIGH`: Media resolution set to ultra high.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaResolution.level","typeLabel":"enum\u003cstring>"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaResolution","typeLabel":"object"},"spreadsheetMetadata":{"type":"object","description":"Optional. Spreadsheet metadata. The metadata should only be specified while the\nspreadsheet data is presented in inline_data or file_data.","properties":{"contentLayers":{"type":"array","items":{"type":"string","enum":["CONTENT_LAYER_UNSPECIFIED","DATA","FORMULAS","VISUAL"],"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `DATA`: Cell values, merges, and formats.\n- `FORMULAS`: Formula expressions and their computed results.\n- `VISUAL`: A rendered image of the sheet.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"visibleCells":{"description":"Optional. The range of cells to extract, in A1 notation (e.g. \"A1:D10\").\nIf not set, the full occupied area of the sheet is used.","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.visibleCells","typeLabel":"string"},"sheetIndex":{"description":"Optional. The 1-indexed index of the sheet to extract, in workbook order.\nIf not set, all sheets are extracted.","format":"int32","type":"integer","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.sheetIndex","typeLabel":"integer\u003cint32>"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata","typeLabel":"object"},"videoMetadata":{"type":"object","description":"Optional. Video metadata. The metadata should only be specified while the video\ndata is presented in inline_data or file_data.","properties":{"fps":{"description":"Optional. The frame rate of the video sent to the model. If not specified, the\ndefault value will be 1.0.\nThe fps range is (0.0, 24.0].","format":"double","type":"number","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.fps","typeLabel":"number\u003cdouble>"},"startOffset":{"description":"Optional. The start offset of the video.","format":"google-duration","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"},"contentLayers":{"items":{"enum":["CONTENT_LAYER_UNSPECIFIED","FRAMES","AUDIO","TRANSCRIPT"],"type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [FRAMES, AUDIO].\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `FRAMES`: Extract video frames.\n- `AUDIO`: Extract audio track.\n- `TRANSCRIPT`: Extract audio transcript.","type":"array","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"endOffset":{"type":"string","description":"Optional. The end offset of the video.","format":"google-duration","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata","typeLabel":"object"},"fileData":{"type":"object","description":"URI based data.","required":["fileUri"],"properties":{"fileUri":{"description":"Required. URI.","type":"string","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.fileUri","typeLabel":"string"},"displayName":{"description":"Optional. Display name of the file.\nUsed to provide a label or filename to distinguish file data, and to\nreference the file from `FunctionResponse.response` (for example, via\n`{\"$ref\": \"DISPLAY_NAME\"}`).","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.displayName","typeLabel":"string"},"mimeType":{"description":"The IANA standard MIME type of the source data.\nIf an unsupported MIME type is provided, an error will be returned. For a\ncomplete list of supported types, see [Multimodal function\nresponses](https://aistudio.google.com/docs/function-calling#multimodal)\nand [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.mimeType","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData","typeLabel":"object"},"audioMetadata":{"type":"object","description":"Optional. Audio metadata. The metadata should only be specified while the audio\ndata is presented in inline_data or file_data.","properties":{"endOffset":{"description":"Optional. The end offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. The start offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata","typeLabel":"object"},"inlineData":{"type":"object","description":"Inline media bytes.","properties":{"data":{"description":"Raw bytes for media formats.","type":"string","format":"byte","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"},"displayName":{"description":"Optional. Display name of the blob.\nUsed to provide a label or filename to distinguish blobs, and to reference\nthe blob from `FunctionResponse.response` (for example, via\n`{\"$ref\": \"DISPLAY_NAME\"}`).","type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.displayName","typeLabel":"string"},"mimeType":{"type":"string","description":"The IANA standard MIME type of the source data.\nExamples:\n - image/png\n - image/jpeg\nIf an unsupported MIME type is provided, an error will be returned. For a\ncomplete list of supported types, see [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData","typeLabel":"object"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts.items.[INDEX]","typeLabel":"object"},"description":"Optional. Ordered `Parts` that constitute a function response. Parts may have\ndifferent IANA MIME types.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.parts","typeLabel":"object[]"},"id":{"type":"string","description":"Optional. The identifier of the function call this response is for. Populated by the\nclient to match the corresponding function call `id`.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.id","typeLabel":"string"},"scheduling":{"description":"Optional. Specifies how the response should be scheduled in the conversation.\nOnly applicable to NON_BLOCKING function calls, is ignored otherwise.\nDefaults to WHEN_IDLE.\n\n**Allowed values:**\n- `SCHEDULING_UNSPECIFIED`: This value is unused.\n- `SILENT`: Only add the result to the conversation context, do not interrupt or trigger generation.\n- `WHEN_IDLE`: Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.\n- `INTERRUPT`: Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.","enum":["SCHEDULING_UNSPECIFIED","SILENT","WHEN_IDLE","INTERRUPT"],"type":"string","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse.scheduling","typeLabel":"enum\u003cstring>"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].functionResponse","typeLabel":"object"},"toolCall":{"type":"object","description":"Server-side tool call. This field is populated when the model\npredicts a tool invocation that should be executed on the server.\nThe client is expected to echo this message back to the API.","required":["toolType"],"properties":{"toolType":{"type":"string","description":"Required. The type of tool that was called.","enum":["TOOL_TYPE_UNSPECIFIED","GOOGLE_SEARCH_WEB","GOOGLE_SEARCH_IMAGE","URL_CONTEXT","GOOGLE_MAPS","FILE_SEARCH","MEDIA_PROCESSING"],"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolCall.toolType","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Optional. Unique identifier of the tool call.\nThe server returns the tool response with the matching `id`.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolCall.id","typeLabel":"string"},"args":{"additionalProperties":{"description":"Properties of the object.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolCall.args.additionalProperties","typeLabel":"any"},"description":"Optional. The tool call arguments.\nExample: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}","type":"object","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolCall.args","typeLabel":"object"},"toolName":{"type":"string","description":"Optional. The name of the tool that was called.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolCall.toolName","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].toolCall","typeLabel":"object"}},"description":"A datatype containing media that is part of a multi-part `Content` message.\n\nA `Part` consists of data which has an associated datatype. A `Part` can only\ncontain one of the accepted types in `Part.data`.\n\nA `Part` must have a fixed IANA MIME type identifying the type and subtype\nof the media if the `inline_data` field is filled with raw bytes.","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX]","typeLabel":"object"},"description":"Ordered `Parts` that constitute a single message. Parts may have different\nMIME types.","type":"array","uniqueKey":"contents.items.[INDEX].parts","typeLabel":"object[]"},"role":{"description":"Optional. The producer of the content. Must be either 'user' or 'model'.\n\nUseful to set for multi-turn conversations, otherwise can be left blank\nor unset.","type":"string","uniqueKey":"contents.items.[INDEX].role","typeLabel":"string"}},"description":"The base structured datatype containing multi-part content of a message.\n\nA `Content` includes a `role` field designating the producer of the `Content`\nand a `parts` field containing multi-part data that contains the content of\nthe message turn.","type":"object","uniqueKey":"contents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"contents","typeLabel":"object[]"},"continuationToken":{"format":"byte","description":"Optional. An opaque continuation token used to resume generation from a\nprevious `GenerateContent` or `StreamGenerateContent` response that stopped\nwith `finish_reason` set to `CONTINUATION`. Note that `contents` is\nmandatory and must identically replicate the prompt and conversation\nhistory from the initial request when continuation token is provided in\na request.","type":"string","uniqueKey":"continuationToken","typeLabel":"string\u003cbyte>"},"tools":{"items":{"properties":{"fileSearch":{"type":"object","description":"Optional. FileSearch tool type.\nTool to retrieve knowledge from Semantic Retrieval corpora.","required":["fileSearchStoreNames"],"properties":{"fileSearchStoreNames":{"type":"array","items":{"type":"string","uniqueKey":"tools.items.[INDEX].fileSearch.fileSearchStoreNames.items.[INDEX]","typeLabel":"string"},"description":"Required. The names of the file_search_stores to retrieve from.\nExample: `fileSearchStores/my-file-search-store-123`","isRequired":true,"uniqueKey":"tools.items.[INDEX].fileSearch.fileSearchStoreNames","typeLabel":"string[]"},"metadataFilter":{"description":"Optional. Metadata filter to apply to the semantic retrieval documents and chunks.","type":"string","uniqueKey":"tools.items.[INDEX].fileSearch.metadataFilter","typeLabel":"string"},"topK":{"description":"Optional. The number of semantic retrieval chunks to retrieve.","type":"integer","format":"int32","uniqueKey":"tools.items.[INDEX].fileSearch.topK","typeLabel":"integer\u003cint32>"}},"uniqueKey":"tools.items.[INDEX].fileSearch","typeLabel":"object"},"googleSearchRetrieval":{"type":"object","description":"Optional. Retrieval tool that is powered by Google search.","properties":{"dynamicRetrievalConfig":{"type":"object","description":"Specifies the dynamic retrieval configuration for the given source.","properties":{"dynamicThreshold":{"description":"The threshold to be used in dynamic retrieval.\nIf not set, a system default value is used.","type":"number","format":"float","uniqueKey":"tools.items.[INDEX].googleSearchRetrieval.dynamicRetrievalConfig.dynamicThreshold","typeLabel":"number\u003cfloat>"},"mode":{"description":"The mode of the predictor to be used in dynamic retrieval.\n\n**Allowed values:**\n- `MODE_UNSPECIFIED`: Always trigger retrieval.\n- `MODE_DYNAMIC`: Run retrieval only when system decides it is necessary.","type":"string","enum":["MODE_UNSPECIFIED","MODE_DYNAMIC"],"uniqueKey":"tools.items.[INDEX].googleSearchRetrieval.dynamicRetrievalConfig.mode","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].googleSearchRetrieval.dynamicRetrievalConfig","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].googleSearchRetrieval","typeLabel":"object"},"googleSearch":{"type":"object","description":"Optional. GoogleSearch tool type.\nTool to support Google Search in Model. Powered by Google.","properties":{"searchTypes":{"type":"object","description":"Optional. The set of search types to enable. If not set, web search is\nenabled by default.","properties":{"imageSearch":{"type":"object","description":"Optional. Enables image search. Image bytes are returned.","uniqueKey":"tools.items.[INDEX].googleSearch.searchTypes.imageSearch","typeLabel":"object"},"webSearch":{"type":"object","description":"Optional. Enables web search. Only text results are returned.","uniqueKey":"tools.items.[INDEX].googleSearch.searchTypes.webSearch","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].googleSearch.searchTypes","typeLabel":"object"},"timeRangeFilter":{"type":"object","description":"Optional. Filter search results to a specific time range.\nIf customers set a start time, they must set an end time (and vice\nversa).","properties":{"startTime":{"description":"Optional. Inclusive start of the interval.\n\nIf specified, a Timestamp matching this interval will have to be the same\nor after the start.","type":"string","format":"date-time","uniqueKey":"tools.items.[INDEX].googleSearch.timeRangeFilter.startTime","typeLabel":"string\u003cdate-time>"},"endTime":{"description":"Optional. Exclusive end of the interval.\n\nIf specified, a Timestamp matching this interval will have to be before the\nend.","format":"date-time","type":"string","uniqueKey":"tools.items.[INDEX].googleSearch.timeRangeFilter.endTime","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"tools.items.[INDEX].googleSearch.timeRangeFilter","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].googleSearch","typeLabel":"object"},"codeExecution":{"type":"object","description":"Optional. Enables the model to execute code as part of generation.","uniqueKey":"tools.items.[INDEX].codeExecution","typeLabel":"object"},"computerUse":{"type":"object","description":"Optional. Tool to support the model interacting directly with the computer.\nIf enabled, it automatically populates computer-use specific Function\nDeclarations.","required":["environment"],"properties":{"environment":{"type":"string","enum":["ENVIRONMENT_UNSPECIFIED","ENVIRONMENT_BROWSER","ENVIRONMENT_MOBILE","ENVIRONMENT_DESKTOP"],"description":"Required. The environment being operated.\n\n**Allowed values:**\n- `ENVIRONMENT_UNSPECIFIED`: Defaults to browser.\n- `ENVIRONMENT_BROWSER`: Operates in a web browser.\n- `ENVIRONMENT_MOBILE`: Operates in a mobile environment.\n- `ENVIRONMENT_DESKTOP`: Operates in a desktop environment.","isRequired":true,"uniqueKey":"tools.items.[INDEX].computerUse.environment","typeLabel":"enum\u003cstring>"},"enablePromptInjectionDetection":{"type":"boolean","description":"Optional. Whether enable the prompt injection detection check on computer-use\nrequest.","uniqueKey":"tools.items.[INDEX].computerUse.enablePromptInjectionDetection","typeLabel":"boolean"},"disabledSafetyPolicies":{"description":"Optional. Disabled safety policies for computer use.\n\n**Allowed values:**\n- `SAFETY_POLICY_UNSPECIFIED`: Unspecified safety policy.\n- `FINANCIAL_TRANSACTIONS`: Safety policy for financial transactions.\n- `SENSITIVE_DATA_MODIFICATION`: Safety policy for sensitive data modification.\n- `COMMUNICATION_TOOL`: Safety policy for communication tools (e.g. Gmail, Chat, Meet).\n- `ACCOUNT_CREATION`: Safety policy for account creation.\n- `DATA_MODIFICATION`: Safety policy for data modification.\n- `USER_CONSENT_MANAGEMENT`: Safety policy for user consent management.\n- `LEGAL_TERMS_AND_AGREEMENTS`: Safety policy for legal terms and agreements.","type":"array","items":{"enum":["SAFETY_POLICY_UNSPECIFIED","FINANCIAL_TRANSACTIONS","SENSITIVE_DATA_MODIFICATION","COMMUNICATION_TOOL","ACCOUNT_CREATION","DATA_MODIFICATION","USER_CONSENT_MANAGEMENT","LEGAL_TERMS_AND_AGREEMENTS"],"type":"string","uniqueKey":"tools.items.[INDEX].computerUse.disabledSafetyPolicies.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"tools.items.[INDEX].computerUse.disabledSafetyPolicies","typeLabel":"enum\u003cstring>[]"},"excludedPredefinedFunctions":{"type":"array","description":"Optional. By default, predefined functions are included in the final model\ncall.\nSome of them can be explicitly excluded from being automatically\nincluded. This can serve two purposes:\n1. Using a more restricted / different action space.\n2. Improving the definitions / instructions of predefined functions.","items":{"type":"string","uniqueKey":"tools.items.[INDEX].computerUse.excludedPredefinedFunctions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"tools.items.[INDEX].computerUse.excludedPredefinedFunctions","typeLabel":"string[]"}},"uniqueKey":"tools.items.[INDEX].computerUse","typeLabel":"object"},"googleMaps":{"type":"object","description":"Optional. Tool that allows grounding the model's response with geospatial context\nrelated to the user's query.","properties":{"enableWidget":{"description":"Optional. Whether to return a widget context token in the GroundingMetadata of the\nresponse. Developers can use the widget context token to render a Google\nMaps widget with geospatial context related to the places that the model\nreferences in the response.","type":"boolean","uniqueKey":"tools.items.[INDEX].googleMaps.enableWidget","typeLabel":"boolean"}},"uniqueKey":"tools.items.[INDEX].googleMaps","typeLabel":"object"},"functionDeclarations":{"description":"Optional. A list of `FunctionDeclarations` available to the model that can be used\nfor function calling.\n\nThe model or system does not execute the function. Instead the defined\nfunction may be returned as a FunctionCall\nwith arguments to the client side for execution. The model may decide to\ncall a subset of these functions by populating\nFunctionCall in the response. The next\nconversation turn may contain a\nFunctionResponse\nwith the Content.role \"function\" generation context for the next model\nturn.","items":{"required":["name","description"],"description":"Structured representation of a function declaration as defined by the\n[OpenAPI 3.03 specification](https://spec.openapis.org/oas/v3.0.3). Included\nin this declaration are the function name and parameters. This\nFunctionDeclaration is a representation of a block of code that can be used\nas a `Tool` by the model and executed by the client.","properties":{"description":{"type":"string","description":"Required. A brief description of the function.","isRequired":true,"uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].description","typeLabel":"string"},"name":{"description":"Required. The name of the function.\nMust be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes,\nwith a maximum length of 128.","type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].name","typeLabel":"string"},"parametersJsonSchema":{"description":"Optional. Describes the parameters to the function in JSON Schema format. The schema\nmust describe an object where the properties are the parameters to the\nfunction. For example:\n\n```\n{\n \"type\": \"object\",\n \"properties\": {\n \"name\": { \"type\": \"string\" },\n \"age\": { \"type\": \"integer\" }\n },\n \"additionalProperties\": false,\n \"required\": [\"name\", \"age\"],\n \"propertyOrdering\": [\"name\", \"age\"]\n}\n```\n\nThis field is mutually exclusive with `parameters`.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parametersJsonSchema","typeLabel":"any"},"responseJsonSchema":{"description":"Optional. Describes the output from this function in JSON Schema format. The value\nspecified by the schema is the response value of the function.\n\nThis field is mutually exclusive with `response`.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].responseJsonSchema","typeLabel":"any"},"behavior":{"description":"Optional. Specifies the function Behavior.\nCurrently only supported by the BidiGenerateContent method.\n\n**Allowed values:**\n- `UNSPECIFIED`: This value is unused.\n- `BLOCKING`: If set, the system will wait to receive the function response before continuing the conversation.\n- `NON_BLOCKING`: If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model.","enum":["UNSPECIFIED","BLOCKING","NON_BLOCKING"],"type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].behavior","typeLabel":"enum\u003cstring>"},"response":{"type":"object","description":"Optional. Describes the output from this function in JSON Schema format. Reflects the\nOpen API 3.03 Response Object. The Schema defines the type used for the\nresponse value of the function.","required":["type"],"properties":{"type":{"type":"string","description":"Required. Data type.","enum":["TYPE_UNSPECIFIED","STRING","NUMBER","INTEGER","BOOLEAN","ARRAY","OBJECT","NULL"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.type","typeLabel":"enum\u003cstring>"},"maxProperties":{"format":"int64","type":"string","description":"Optional. Maximum number of the properties for Type.OBJECT.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.maxProperties","typeLabel":"string\u003cint64>"},"description":{"description":"Optional. A brief description of the parameter. This could contain examples of use.\nParameter description may be formatted as Markdown.","type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.description","typeLabel":"string"},"propertyOrdering":{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.propertyOrdering.items.[INDEX]","typeLabel":"string"},"description":"Optional. The order of the properties.\nNot a standard field in open api spec. Used to determine the order of the\nproperties in the response.","type":"array","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.propertyOrdering","typeLabel":"string[]"},"default":{"description":"Optional. Default value of the field. Per JSON Schema, this field is intended for\ndocumentation generators and doesn't affect validation. Thus it's included\nhere and ignored so that developers who send schemas with a `default` field\ndon't get unknown-field errors.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.default","typeLabel":"any"},"maxLength":{"format":"int64","type":"string","description":"Optional. Maximum length of the Type.STRING","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.maxLength","typeLabel":"string\u003cint64>"},"minProperties":{"type":"string","format":"int64","description":"Optional. Minimum number of the properties for Type.OBJECT.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.minProperties","typeLabel":"string\u003cint64>"},"minimum":{"format":"double","type":"number","description":"Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER\nMinimum value of the Type.INTEGER and Type.NUMBER","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.minimum","typeLabel":"number\u003cdouble>"},"enum":{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.enum.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Optional. Possible values of the element of Type.STRING with enum format.\nFor example we can define an Enum Direction as :\n{type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.enum","typeLabel":"string[]"},"example":{"description":"Optional. Example of the object. Will only populated when the object is the root.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.example","typeLabel":"any"},"minItems":{"type":"string","description":"Optional. Minimum number of the elements for Type.ARRAY.","format":"int64","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.minItems","typeLabel":"string\u003cint64>"},"maxItems":{"type":"string","description":"Optional. Maximum number of the elements for Type.ARRAY.","format":"int64","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.maxItems","typeLabel":"string\u003cint64>"},"anyOf":{"items":{"$circularRef":"c958a86a-e152-4d1c-ad8d-97b0becdb609"},"description":"Optional. The value should be validated against any (one or more) of the subschemas\nin the list.","type":"array","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.anyOf","typeLabel":"array"},"format":{"description":"Optional. The format of the data. Any value is allowed, but most do not trigger any\nspecial functionality.","type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.format","typeLabel":"string"},"maximum":{"description":"Optional. Maximum value of the Type.INTEGER and Type.NUMBER","format":"double","type":"number","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.maximum","typeLabel":"number\u003cdouble>"},"properties":{"additionalProperties":{"$circularRef":"c958a86a-e152-4d1c-ad8d-97b0becdb609"},"type":"object","description":"Optional. Properties of Type.OBJECT.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.properties","typeLabel":"object"},"title":{"type":"string","description":"Optional. The title of the schema.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.title","typeLabel":"string"},"items":{"description":"Optional. Schema of the elements of Type.ARRAY.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.\\items","typeLabel":"any"},"required":{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.required.items.[INDEX]","typeLabel":"string"},"description":"Optional. Required properties of Type.OBJECT.","type":"array","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.required","typeLabel":"string[]"},"minLength":{"type":"string","format":"int64","description":"Optional. SCHEMA FIELDS FOR TYPE STRING\nMinimum length of the Type.STRING","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.minLength","typeLabel":"string\u003cint64>"},"nullable":{"description":"Optional. Indicates if the value may be null.","type":"boolean","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.nullable","typeLabel":"boolean"},"pattern":{"description":"Optional. Pattern of the Type.STRING to restrict a string to a regular expression.","type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response.pattern","typeLabel":"string"}},"uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].response","typeLabel":"object"},"parameters":{"type":"object","description":"Optional. Describes the parameters to this function. Reflects the Open API 3.03\nParameter Object string Key: the name of the parameter. Parameter names are\ncase sensitive. Schema Value: the Schema defining the type used for the\nparameter.","required":["type"],"properties":{"type":{"type":"string","description":"Required. Data type.","enum":["TYPE_UNSPECIFIED","STRING","NUMBER","INTEGER","BOOLEAN","ARRAY","OBJECT","NULL"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.type","typeLabel":"enum\u003cstring>"},"maxProperties":{"format":"int64","type":"string","description":"Optional. Maximum number of the properties for Type.OBJECT.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.maxProperties","typeLabel":"string\u003cint64>"},"description":{"description":"Optional. A brief description of the parameter. This could contain examples of use.\nParameter description may be formatted as Markdown.","type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.description","typeLabel":"string"},"propertyOrdering":{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.propertyOrdering.items.[INDEX]","typeLabel":"string"},"description":"Optional. The order of the properties.\nNot a standard field in open api spec. Used to determine the order of the\nproperties in the response.","type":"array","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.propertyOrdering","typeLabel":"string[]"},"default":{"description":"Optional. Default value of the field. Per JSON Schema, this field is intended for\ndocumentation generators and doesn't affect validation. Thus it's included\nhere and ignored so that developers who send schemas with a `default` field\ndon't get unknown-field errors.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.default","typeLabel":"any"},"maxLength":{"format":"int64","type":"string","description":"Optional. Maximum length of the Type.STRING","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.maxLength","typeLabel":"string\u003cint64>"},"minProperties":{"type":"string","format":"int64","description":"Optional. Minimum number of the properties for Type.OBJECT.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.minProperties","typeLabel":"string\u003cint64>"},"minimum":{"format":"double","type":"number","description":"Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER\nMinimum value of the Type.INTEGER and Type.NUMBER","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.minimum","typeLabel":"number\u003cdouble>"},"enum":{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.enum.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Optional. Possible values of the element of Type.STRING with enum format.\nFor example we can define an Enum Direction as :\n{type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.enum","typeLabel":"string[]"},"example":{"description":"Optional. Example of the object. Will only populated when the object is the root.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.example","typeLabel":"any"},"minItems":{"type":"string","description":"Optional. Minimum number of the elements for Type.ARRAY.","format":"int64","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.minItems","typeLabel":"string\u003cint64>"},"maxItems":{"type":"string","description":"Optional. Maximum number of the elements for Type.ARRAY.","format":"int64","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.maxItems","typeLabel":"string\u003cint64>"},"anyOf":{"items":{"$circularRef":"c958a86a-e152-4d1c-ad8d-97b0becdb609"},"description":"Optional. The value should be validated against any (one or more) of the subschemas\nin the list.","type":"array","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.anyOf","typeLabel":"array"},"format":{"description":"Optional. The format of the data. Any value is allowed, but most do not trigger any\nspecial functionality.","type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.format","typeLabel":"string"},"maximum":{"description":"Optional. Maximum value of the Type.INTEGER and Type.NUMBER","format":"double","type":"number","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.maximum","typeLabel":"number\u003cdouble>"},"properties":{"additionalProperties":{"$circularRef":"c958a86a-e152-4d1c-ad8d-97b0becdb609"},"type":"object","description":"Optional. Properties of Type.OBJECT.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.properties","typeLabel":"object"},"title":{"type":"string","description":"Optional. The title of the schema.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.title","typeLabel":"string"},"items":{"description":"Optional. Schema of the elements of Type.ARRAY.","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.\\items","typeLabel":"any"},"required":{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.required.items.[INDEX]","typeLabel":"string"},"description":"Optional. Required properties of Type.OBJECT.","type":"array","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.required","typeLabel":"string[]"},"minLength":{"type":"string","format":"int64","description":"Optional. SCHEMA FIELDS FOR TYPE STRING\nMinimum length of the Type.STRING","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.minLength","typeLabel":"string\u003cint64>"},"nullable":{"description":"Optional. Indicates if the value may be null.","type":"boolean","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.nullable","typeLabel":"boolean"},"pattern":{"description":"Optional. Pattern of the Type.STRING to restrict a string to a regular expression.","type":"string","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters.pattern","typeLabel":"string"}},"uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX].parameters","typeLabel":"object"}},"type":"object","uniqueKey":"tools.items.[INDEX].functionDeclarations.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"tools.items.[INDEX].functionDeclarations","typeLabel":"object[]"},"urlContext":{"type":"object","description":"Optional. Tool to support URL context retrieval.","uniqueKey":"tools.items.[INDEX].urlContext","typeLabel":"object"},"mcpServers":{"type":"array","description":"Optional. MCP Servers to connect to.","items":{"properties":{"streamableHttpTransport":{"type":"object","description":"A transport that can stream HTTP requests and responses.","properties":{"terminateOnClose":{"description":"Whether to close the client session when the transport closes.","type":"boolean","uniqueKey":"tools.items.[INDEX].mcpServers.items.[INDEX].streamableHttpTransport.terminateOnClose","typeLabel":"boolean"},"headers":{"additionalProperties":{"type":"string","uniqueKey":"tools.items.[INDEX].mcpServers.items.[INDEX].streamableHttpTransport.headers.additionalProperties","typeLabel":"string"},"type":"object","description":"Optional: Fields for authentication headers, timeouts, etc., if needed.","uniqueKey":"tools.items.[INDEX].mcpServers.items.[INDEX].streamableHttpTransport.headers","typeLabel":"object"},"timeout":{"type":"string","format":"google-duration","description":"HTTP timeout for regular operations.","uniqueKey":"tools.items.[INDEX].mcpServers.items.[INDEX].streamableHttpTransport.timeout","typeLabel":"string\u003cgoogle-duration>"},"url":{"description":"The full URL for the MCPServer endpoint.\nExample: \"https://api.example.com/mcp\"","type":"string","uniqueKey":"tools.items.[INDEX].mcpServers.items.[INDEX].streamableHttpTransport.url","typeLabel":"string"},"sseReadTimeout":{"type":"string","description":"Timeout for SSE read operations.","format":"google-duration","uniqueKey":"tools.items.[INDEX].mcpServers.items.[INDEX].streamableHttpTransport.sseReadTimeout","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"tools.items.[INDEX].mcpServers.items.[INDEX].streamableHttpTransport","typeLabel":"object"},"name":{"type":"string","description":"The name of the MCPServer.","uniqueKey":"tools.items.[INDEX].mcpServers.items.[INDEX].name","typeLabel":"string"}},"description":"A MCPServer is a server that can be called by the model to perform actions.\nIt is a server that implements the MCP protocol.","type":"object","uniqueKey":"tools.items.[INDEX].mcpServers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tools.items.[INDEX].mcpServers","typeLabel":"object[]"}},"type":"object","description":"Tool details that the model may use to generate response.\n\nA `Tool` is a piece of code that enables the system to interact with\nexternal systems to perform an action, or set of actions, outside of\nknowledge and scope of the model.","uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Optional. A list of `Tools` the `Model` may use to generate the next response.\n\nA `Tool` is a piece of code that enables the system to interact with\nexternal systems to perform an action, or set of actions, outside of\nknowledge and scope of the `Model`. Supported `Tool`s are `Function` and\n`code_execution`. Refer to the [Function\ncalling](https://aistudio.google.com/docs/function-calling) and the\n[Code execution](https://aistudio.google.com/docs/code-execution)\nguides to learn more.","uniqueKey":"tools","typeLabel":"object[]"},"serviceTier":{"type":"string","description":"Optional. The service tier of the request.","enum":["unspecified","standard","flex","priority"],"uniqueKey":"serviceTier","typeLabel":"enum\u003cstring>"},"toolConfig":{"type":"object","description":"Optional. Tool configuration for any `Tool` specified in the request. Refer to the\n[Function calling\nguide](https://aistudio.google.com/docs/function-calling#function_calling_modes)\nfor a usage example.","properties":{"functionCallingConfig":{"type":"object","description":"Optional. Function calling config.","properties":{"allowedFunctionNames":{"type":"array","items":{"type":"string","uniqueKey":"toolConfig.functionCallingConfig.allowedFunctionNames.items.[INDEX]","typeLabel":"string"},"description":"Optional. A set of function names that, when provided, limits the functions the model\nwill call.\n\nThis should only be set when the Mode is ANY or VALIDATED. Function names\nshould match [FunctionDeclaration.name]. When set, model will\npredict a function call from only allowed function names.","uniqueKey":"toolConfig.functionCallingConfig.allowedFunctionNames","typeLabel":"string[]"},"mode":{"description":"Optional. Specifies the mode in which function calling should execute. If\nunspecified, the default value will be set to AUTO.\n\n**Allowed values:**\n- `MODE_UNSPECIFIED`: Unspecified function calling mode. This value should not be used.\n- `AUTO`: Default model behavior, model decides to predict either a function call or a natural language response.\n- `ANY`: Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".\n- `NONE`: Model will not predict any function call. Model behavior is same as when not passing any function declarations.\n- `VALIDATED`: Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".","enum":["MODE_UNSPECIFIED","AUTO","ANY","NONE","VALIDATED"],"type":"string","uniqueKey":"toolConfig.functionCallingConfig.mode","typeLabel":"enum\u003cstring>"}},"uniqueKey":"toolConfig.functionCallingConfig","typeLabel":"object"},"retrievalConfig":{"type":"object","description":"Optional. Retrieval config.","properties":{"latLng":{"type":"object","description":"Optional. The location of the user.","properties":{"latitude":{"description":"The latitude in degrees. It must be in the range [-90.0, +90.0].","type":"number","format":"double","uniqueKey":"toolConfig.retrievalConfig.latLng.latitude","typeLabel":"number\u003cdouble>"},"longitude":{"format":"double","type":"number","description":"The longitude in degrees. It must be in the range [-180.0, +180.0].","uniqueKey":"toolConfig.retrievalConfig.latLng.longitude","typeLabel":"number\u003cdouble>"}},"uniqueKey":"toolConfig.retrievalConfig.latLng","typeLabel":"object"},"languageCode":{"description":"Optional. The language code of the user.\nLanguage code for content. Use language tags defined by\n[BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).","type":"string","uniqueKey":"toolConfig.retrievalConfig.languageCode","typeLabel":"string"}},"uniqueKey":"toolConfig.retrievalConfig","typeLabel":"object"},"includeServerSideToolInvocations":{"type":"boolean","description":"Optional. If true, the API response will include the server-side tool calls and\nresponses within the `Content` message. This allows clients to\nobserve the server's tool interactions.","uniqueKey":"toolConfig.includeServerSideToolInvocations","typeLabel":"boolean"}},"uniqueKey":"toolConfig","typeLabel":"object"},"safetySettings":{"description":"Optional. A list of unique `SafetySetting` instances for blocking unsafe content.\n\nThis will be enforced on the `GenerateContentRequest.contents` and\n`GenerateContentResponse.candidates`. There should not be more than one\nsetting for each `SafetyCategory` type. The API will block any contents and\nresponses that fail to meet the thresholds set by these settings. This list\noverrides the default settings for each `SafetyCategory` specified in the\nsafety_settings. If there is no `SafetySetting` for a given\n`SafetyCategory` provided in the list, the API will use the default safety\nsetting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH,\nHARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT,\nHARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY,\nHARM_CATEGORY_JAILBREAK are supported.\nRefer to the [guide](https://aistudio.google.com/docs/safety-settings)\nfor detailed information on available safety settings. Also refer to the\n[Safety guidance](https://aistudio.google.com/docs/safety-guidance) to\nlearn how to incorporate safety considerations in your AI applications.","type":"array","items":{"properties":{"category":{"type":"string","description":"Required. The category for this setting.","enum":["HARM_CATEGORY_UNSPECIFIED","HARM_CATEGORY_DEROGATORY","HARM_CATEGORY_TOXICITY","HARM_CATEGORY_VIOLENCE","HARM_CATEGORY_SEXUAL","HARM_CATEGORY_MEDICAL","HARM_CATEGORY_DANGEROUS","HARM_CATEGORY_HARASSMENT","HARM_CATEGORY_HATE_SPEECH","HARM_CATEGORY_SEXUALLY_EXPLICIT","HARM_CATEGORY_DANGEROUS_CONTENT","HARM_CATEGORY_CIVIC_INTEGRITY","HARM_CATEGORY_JAILBREAK"],"isRequired":true,"uniqueKey":"safetySettings.items.[INDEX].category","typeLabel":"enum\u003cstring>"},"threshold":{"type":"string","description":"Required. Controls the probability threshold at which harm is blocked.\n\n**Allowed values:**\n- `HARM_BLOCK_THRESHOLD_UNSPECIFIED`: Threshold is unspecified.\n- `BLOCK_LOW_AND_ABOVE`: Content with NEGLIGIBLE will be allowed.\n- `BLOCK_MEDIUM_AND_ABOVE`: Content with NEGLIGIBLE and LOW will be allowed.\n- `BLOCK_ONLY_HIGH`: Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.\n- `BLOCK_NONE`: All content will be allowed.\n- `OFF`: Turn off the safety filter.","enum":["HARM_BLOCK_THRESHOLD_UNSPECIFIED","BLOCK_LOW_AND_ABOVE","BLOCK_MEDIUM_AND_ABOVE","BLOCK_ONLY_HIGH","BLOCK_NONE","OFF"],"isRequired":true,"uniqueKey":"safetySettings.items.[INDEX].threshold","typeLabel":"enum\u003cstring>"}},"type":"object","required":["category","threshold"],"description":"Safety setting, affecting the safety-blocking behavior.\n\nPassing a safety setting for a category changes the allowed probability that\ncontent is blocked.","uniqueKey":"safetySettings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"safetySettings","typeLabel":"object[]"},"labels":{"description":"Optional. Labels with user-defined metadata for the request.\n\nOptional. Labels must follow standard unified Cloud label requirements:\n- Label keys must start with a letter.\n- Label keys and values can be no longer than 63 characters (Unicode\n codepoints) and can only contain lowercase letters, numeric characters,\n underscores, and dashes.\n- International characters are allowed.\n\nUsage:\n- Safety identifiers from aggregators: Use the key `safety_identifier`\n (e.g. `{\"safety_identifier\": \"user_session_123\"}`)","type":"object","additionalProperties":{"type":"string","uniqueKey":"labels.additionalProperties","typeLabel":"string"},"uniqueKey":"labels","typeLabel":"object"},"cachedContent":{"description":"Optional. The name of the content\n[cached](https://aistudio.google.com/docs/caching) to use as context\nto serve the prediction. Format: `cachedContents/{cachedContent}`","type":"string","uniqueKey":"cachedContent","typeLabel":"string"},"generationConfig":{"type":"object","description":"Optional. Configuration options for model generation and outputs.","properties":{"_responseJsonSchema":{"description":"Optional. Output schema of the generated response. This is an alternative to\n`response_schema` that accepts [JSON Schema](https://json-schema.org/).\n\nIf set, `response_schema` must be omitted, but `response_mime_type` is\nrequired.\n\nWhile the full JSON Schema may be sent, not all features are supported.\nSpecifically, only the following properties are supported:\n\n- `$id`\n- `$defs`\n- `$ref`\n- `$anchor`\n- `type`\n- `format`\n- `title`\n- `description`\n- `enum` (for strings and numbers)\n- `items`\n- `prefixItems`\n- `minItems`\n- `maxItems`\n- `minimum`\n- `maximum`\n- `anyOf`\n- `oneOf` (interpreted the same as `anyOf`)\n- `properties`\n- `additionalProperties`\n- `required`\n\nThe non-standard `propertyOrdering` property may also be set.\n\nCyclic references are unrolled to a limited degree and, as such, may only\nbe used within non-required properties. (Nullable properties are not\nsufficient.) If `$ref` is set on a sub-schema, no other properties, except\nfor than those starting as a `$`, may be set.\n\nDeprecated. Use `response_format` instead.","deprecated":true,"uniqueKey":"generationConfig._responseJsonSchema","typeLabel":"any"},"translationConfig":{"type":"object","description":"Optional. Config for translation.","required":["targetLanguageCode"],"properties":{"targetLanguageCode":{"type":"string","description":"Required. The target language for translation. Supported values are BCP-47 language\ncodes (e.g. \"en\", \"es\", \"fr\").","isRequired":true,"uniqueKey":"generationConfig.translationConfig.targetLanguageCode","typeLabel":"string"},"echoTargetLanguage":{"description":"Optional. If true, the model will generate audio when the target language is spoken,\nessentially it will parrot the input. If false, we will not produce audio\nfor the target language.","type":"boolean","uniqueKey":"generationConfig.translationConfig.echoTargetLanguage","typeLabel":"boolean"}},"uniqueKey":"generationConfig.translationConfig","typeLabel":"object"},"thinkingConfig":{"type":"object","description":"Optional. Config for thinking features.\nAn error will be returned if this field is set for models that don't\nsupport thinking.","properties":{"thinkingLevel":{"enum":["THINKING_LEVEL_UNSPECIFIED","MINIMAL","LOW","MEDIUM","HIGH","XHIGH"],"type":"string","description":"Optional. Controls the maximum depth of the model's internal reasoning process before\nit produces a response. The default value is model-dependent. Refer to the\n[Thinking levels\nguide](https://aistudio.google.com/docs/thinking#thinking-levels) for\nmore details. Recommended for Gemini 3 or later models. Use with earlier\nmodels results in an error.\n\n**Allowed values:**\n- `THINKING_LEVEL_UNSPECIFIED`: Default value.\n- `MINIMAL`: Little to no thinking.\n- `LOW`: Low thinking level.\n- `MEDIUM`: Medium thinking level.\n- `HIGH`: High thinking level.\n- `XHIGH`: XHigh thinking level.","uniqueKey":"generationConfig.thinkingConfig.thinkingLevel","typeLabel":"enum\u003cstring>"},"includeThoughts":{"type":"boolean","description":"Indicates whether to include thoughts in the response.\nIf true, thoughts are returned only when available.","uniqueKey":"generationConfig.thinkingConfig.includeThoughts","typeLabel":"boolean"},"thinkingBudget":{"type":"integer","description":"The number of thoughts tokens that the model should generate.","format":"int32","uniqueKey":"generationConfig.thinkingConfig.thinkingBudget","typeLabel":"integer\u003cint32>"}},"uniqueKey":"generationConfig.thinkingConfig","typeLabel":"object"},"imageConfig":{"type":"object","description":"Optional. Config for image generation.\nAn error will be returned if this field is set for models that don't\nsupport these config options.","properties":{"imageSize":{"type":"string","description":"Optional. Specifies the size of generated images. Supported values are `512`, `1K`,\n`2K`, `4K`. If not specified, the model will use default value `1K`.","uniqueKey":"generationConfig.imageConfig.imageSize","typeLabel":"string"},"aspectRatio":{"description":"Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`,\n`1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`,\n`9:16`, `16:9`, or `21:9`.\n\nIf not specified, the model will choose a default aspect ratio based on any\nreference images provided.","type":"string","uniqueKey":"generationConfig.imageConfig.aspectRatio","typeLabel":"string"}},"uniqueKey":"generationConfig.imageConfig","typeLabel":"object"},"candidateCount":{"description":"Optional. Number of generated responses to return. If unset, this will default\nto 1. Please note that this doesn't work for previous generation\nmodels (Gemini 1.0 family)","format":"int32","type":"integer","uniqueKey":"generationConfig.candidateCount","typeLabel":"integer\u003cint32>"},"responseSchema":{"type":"object","description":"Optional. Output schema of the generated candidate text. Schemas must be a\nsubset of the [OpenAPI schema](https://spec.openapis.org/oas/v3.0.3#schema)\nand can be objects, primitives or arrays.\n\nIf set, a compatible `response_mime_type` must also be set.\nCompatible MIME types:\n`application/json`: Schema for JSON response.\nRefer to the [JSON text generation\nguide](https://aistudio.google.com/docs/structured-output) for more\ndetails.\n\nDeprecated. Use `response_format` instead.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","description":"Required. Data type.","enum":["TYPE_UNSPECIFIED","STRING","NUMBER","INTEGER","BOOLEAN","ARRAY","OBJECT","NULL"],"isRequired":true,"uniqueKey":"generationConfig.responseSchema.type","typeLabel":"enum\u003cstring>"},"maxProperties":{"format":"int64","type":"string","description":"Optional. Maximum number of the properties for Type.OBJECT.","uniqueKey":"generationConfig.responseSchema.maxProperties","typeLabel":"string\u003cint64>"},"description":{"description":"Optional. A brief description of the parameter. This could contain examples of use.\nParameter description may be formatted as Markdown.","type":"string","uniqueKey":"generationConfig.responseSchema.description","typeLabel":"string"},"propertyOrdering":{"items":{"type":"string","uniqueKey":"generationConfig.responseSchema.propertyOrdering.items.[INDEX]","typeLabel":"string"},"description":"Optional. The order of the properties.\nNot a standard field in open api spec. Used to determine the order of the\nproperties in the response.","type":"array","uniqueKey":"generationConfig.responseSchema.propertyOrdering","typeLabel":"string[]"},"default":{"description":"Optional. Default value of the field. Per JSON Schema, this field is intended for\ndocumentation generators and doesn't affect validation. Thus it's included\nhere and ignored so that developers who send schemas with a `default` field\ndon't get unknown-field errors.","uniqueKey":"generationConfig.responseSchema.default","typeLabel":"any"},"maxLength":{"format":"int64","type":"string","description":"Optional. Maximum length of the Type.STRING","uniqueKey":"generationConfig.responseSchema.maxLength","typeLabel":"string\u003cint64>"},"minProperties":{"type":"string","format":"int64","description":"Optional. Minimum number of the properties for Type.OBJECT.","uniqueKey":"generationConfig.responseSchema.minProperties","typeLabel":"string\u003cint64>"},"minimum":{"format":"double","type":"number","description":"Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER\nMinimum value of the Type.INTEGER and Type.NUMBER","uniqueKey":"generationConfig.responseSchema.minimum","typeLabel":"number\u003cdouble>"},"enum":{"items":{"type":"string","uniqueKey":"generationConfig.responseSchema.enum.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Optional. Possible values of the element of Type.STRING with enum format.\nFor example we can define an Enum Direction as :\n{type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}","uniqueKey":"generationConfig.responseSchema.enum","typeLabel":"string[]"},"example":{"description":"Optional. Example of the object. Will only populated when the object is the root.","uniqueKey":"generationConfig.responseSchema.example","typeLabel":"any"},"minItems":{"type":"string","description":"Optional. Minimum number of the elements for Type.ARRAY.","format":"int64","uniqueKey":"generationConfig.responseSchema.minItems","typeLabel":"string\u003cint64>"},"maxItems":{"type":"string","description":"Optional. Maximum number of the elements for Type.ARRAY.","format":"int64","uniqueKey":"generationConfig.responseSchema.maxItems","typeLabel":"string\u003cint64>"},"anyOf":{"items":{"$circularRef":"c958a86a-e152-4d1c-ad8d-97b0becdb609"},"description":"Optional. The value should be validated against any (one or more) of the subschemas\nin the list.","type":"array","uniqueKey":"generationConfig.responseSchema.anyOf","typeLabel":"array"},"format":{"description":"Optional. The format of the data. Any value is allowed, but most do not trigger any\nspecial functionality.","type":"string","uniqueKey":"generationConfig.responseSchema.format","typeLabel":"string"},"maximum":{"description":"Optional. Maximum value of the Type.INTEGER and Type.NUMBER","format":"double","type":"number","uniqueKey":"generationConfig.responseSchema.maximum","typeLabel":"number\u003cdouble>"},"properties":{"additionalProperties":{"$circularRef":"c958a86a-e152-4d1c-ad8d-97b0becdb609"},"type":"object","description":"Optional. Properties of Type.OBJECT.","uniqueKey":"generationConfig.responseSchema.properties","typeLabel":"object"},"title":{"type":"string","description":"Optional. The title of the schema.","uniqueKey":"generationConfig.responseSchema.title","typeLabel":"string"},"items":{"description":"Optional. Schema of the elements of Type.ARRAY.","uniqueKey":"generationConfig.responseSchema.\\items","typeLabel":"any"},"required":{"items":{"type":"string","uniqueKey":"generationConfig.responseSchema.required.items.[INDEX]","typeLabel":"string"},"description":"Optional. Required properties of Type.OBJECT.","type":"array","uniqueKey":"generationConfig.responseSchema.required","typeLabel":"string[]"},"minLength":{"type":"string","format":"int64","description":"Optional. SCHEMA FIELDS FOR TYPE STRING\nMinimum length of the Type.STRING","uniqueKey":"generationConfig.responseSchema.minLength","typeLabel":"string\u003cint64>"},"nullable":{"description":"Optional. Indicates if the value may be null.","type":"boolean","uniqueKey":"generationConfig.responseSchema.nullable","typeLabel":"boolean"},"pattern":{"description":"Optional. Pattern of the Type.STRING to restrict a string to a regular expression.","type":"string","uniqueKey":"generationConfig.responseSchema.pattern","typeLabel":"string"}},"uniqueKey":"generationConfig.responseSchema","typeLabel":"object"},"enableEnhancedCivicAnswers":{"description":"Optional. Enables enhanced civic answers. It may not be available for all models.","type":"boolean","uniqueKey":"generationConfig.enableEnhancedCivicAnswers","typeLabel":"boolean"},"maxOutputTokens":{"format":"int32","type":"integer","description":"Optional. The maximum number of tokens to include in a response candidate.\n\nNote: The default value varies by model, see the `Model.output_token_limit`\nattribute of the `Model` returned from the `getModel` function.","uniqueKey":"generationConfig.maxOutputTokens","typeLabel":"integer\u003cint32>"},"speechConfig":{"type":"object","description":"Optional. The speech generation config.","properties":{"languageCode":{"description":"Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language\ncode that the user configured the app to use. Used for speech recognition\nand synthesis.\n\nValid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`,\n`fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`,\n`ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`,\n`ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and\n`th-TH`.","type":"string","uniqueKey":"generationConfig.speechConfig.languageCode","typeLabel":"string"},"voiceConfig":{"type":"object","description":"The configuration in case of single-voice output.","properties":{"prebuiltVoiceConfig":{"type":"object","description":"The configuration for the prebuilt voice to use.","properties":{"voiceName":{"type":"string","description":"Optional. The name of the preset voice to use.","uniqueKey":"generationConfig.speechConfig.voiceConfig.prebuiltVoiceConfig.voiceName","typeLabel":"string"}},"uniqueKey":"generationConfig.speechConfig.voiceConfig.prebuiltVoiceConfig","typeLabel":"object"},"voice":{"type":"string","description":"Optional. The speaker identifier for synthesis.\nSupported formats:\n\n* Speaker name for prebuilt voices (for example, `Orus` or `Kore`).\n* Voice ID for stored voices (for example, `voice_xxx`).\n* Voice replication key (for example, `voicekey_xxx`).","uniqueKey":"generationConfig.speechConfig.voiceConfig.voice","typeLabel":"string"}},"uniqueKey":"generationConfig.speechConfig.voiceConfig","typeLabel":"object"},"multiSpeakerVoiceConfig":{"type":"object","description":"Optional. The configuration for the multi-speaker setup.\nIt is mutually exclusive with the voice_config field.","required":["speakerVoiceConfigs"],"properties":{"speakerVoiceConfigs":{"items":{"properties":{"voiceConfig":{"type":"object","description":"Required. The configuration for the voice to use.","properties":{"prebuiltVoiceConfig":{"type":"object","description":"The configuration for the prebuilt voice to use.","properties":{"voiceName":{"type":"string","description":"Optional. The name of the preset voice to use.","uniqueKey":"generationConfig.speechConfig.multiSpeakerVoiceConfig.speakerVoiceConfigs.items.[INDEX].voiceConfig.prebuiltVoiceConfig.voiceName","typeLabel":"string"}},"uniqueKey":"generationConfig.speechConfig.multiSpeakerVoiceConfig.speakerVoiceConfigs.items.[INDEX].voiceConfig.prebuiltVoiceConfig","typeLabel":"object"},"voice":{"type":"string","description":"Optional. The speaker identifier for synthesis.\nSupported formats:\n\n* Speaker name for prebuilt voices (for example, `Orus` or `Kore`).\n* Voice ID for stored voices (for example, `voice_xxx`).\n* Voice replication key (for example, `voicekey_xxx`).","uniqueKey":"generationConfig.speechConfig.multiSpeakerVoiceConfig.speakerVoiceConfigs.items.[INDEX].voiceConfig.voice","typeLabel":"string"}},"isRequired":true,"uniqueKey":"generationConfig.speechConfig.multiSpeakerVoiceConfig.speakerVoiceConfigs.items.[INDEX].voiceConfig","typeLabel":"object"},"speaker":{"type":"string","description":"Required. The name of the speaker to use. Should be the same as in the prompt.","isRequired":true,"uniqueKey":"generationConfig.speechConfig.multiSpeakerVoiceConfig.speakerVoiceConfigs.items.[INDEX].speaker","typeLabel":"string"}},"description":"The configuration for a single speaker in a multi speaker setup.","required":["speaker","voiceConfig"],"type":"object","uniqueKey":"generationConfig.speechConfig.multiSpeakerVoiceConfig.speakerVoiceConfigs.items.[INDEX]","typeLabel":"object"},"description":"Required. All the enabled speaker voices.","type":"array","isRequired":true,"uniqueKey":"generationConfig.speechConfig.multiSpeakerVoiceConfig.speakerVoiceConfigs","typeLabel":"object[]"}},"uniqueKey":"generationConfig.speechConfig.multiSpeakerVoiceConfig","typeLabel":"object"}},"uniqueKey":"generationConfig.speechConfig","typeLabel":"object"},"temperature":{"description":"Optional. Controls the randomness of the output.\n\nNote: The default value varies by model, see the `Model.temperature`\nattribute of the `Model` returned from the `getModel` function.\n\nValues can range from [0.0, 2.0].\n\nThis field is no longer supported and is silently ignored on Gemini 3.6\nFlash and newer models.","type":"number","format":"float","uniqueKey":"generationConfig.temperature","typeLabel":"number\u003cfloat>"},"seed":{"description":"Optional. Seed used in decoding. If not set, the request uses a randomly generated\nseed.","format":"int32","type":"integer","uniqueKey":"generationConfig.seed","typeLabel":"integer\u003cint32>"},"presencePenalty":{"description":"Optional. Presence penalty applied to the next token's logprobs if the token has\nalready been seen in the response.\n\nThis penalty is binary on/off and not dependant on the number of times the\ntoken is used (after the first). Use\nfrequency_penalty\nfor a penalty that increases with each use.\n\nA positive penalty will discourage the use of tokens that have already\nbeen used in the response, increasing the vocabulary.\n\nA negative penalty will encourage the use of tokens that have already been\nused in the response, decreasing the vocabulary.","format":"float","type":"number","uniqueKey":"generationConfig.presencePenalty","typeLabel":"number\u003cfloat>"},"responseLogprobs":{"description":"Optional. If true, export the logprobs results in response.","type":"boolean","uniqueKey":"generationConfig.responseLogprobs","typeLabel":"boolean"},"topP":{"description":"Optional. The maximum cumulative probability of tokens to consider when sampling.\n\nThe model uses combined Top-k and Top-p (nucleus) sampling.\n\nTokens are sorted based on their assigned probabilities so that only the\nmost likely tokens are considered. Top-k sampling directly limits the\nmaximum number of tokens to consider, while Nucleus sampling limits the\nnumber of tokens based on the cumulative probability.\n\nNote: The default value varies by `Model` and is specified by\nthe`Model.top_p` attribute returned from the `getModel` function. An empty\n`top_k` attribute indicates that the model doesn't apply top-k sampling\nand doesn't allow setting `top_k` on requests.\n\nThis field is no longer supported and is silently ignored on Gemini 3.6\nFlash and newer models.","format":"float","type":"number","uniqueKey":"generationConfig.topP","typeLabel":"number\u003cfloat>"},"logprobs":{"description":"Optional. Only valid if response_logprobs=True.\nThis sets the number of top logprobs, including the chosen candidate, to\nreturn at each decoding step in the Candidate.logprobs_result. The\nnumber must be in the range of [0, 20].","type":"integer","format":"int32","uniqueKey":"generationConfig.logprobs","typeLabel":"integer\u003cint32>"},"topK":{"format":"int32","description":"Optional. The maximum number of tokens to consider when sampling.\n\nGemini models use Top-p (nucleus) sampling or a combination of Top-k and\nnucleus sampling. Top-k sampling considers the set of `top_k` most probable\ntokens. Models running with nucleus sampling don't allow top_k setting.\n\nNote: The default value varies by `Model` and is specified by\nthe`Model.top_p` attribute returned from the `getModel` function. An empty\n`top_k` attribute indicates that the model doesn't apply top-k sampling\nand doesn't allow setting `top_k` on requests.\n\nThis field is no longer supported and is silently ignored on Gemini 3.6\nFlash and newer models.","type":"integer","uniqueKey":"generationConfig.topK","typeLabel":"integer\u003cint32>"},"responseFormat":{"type":"object","description":"Optional. Configuration for the response output format. Allows specifying output\nconfiguration per modality (text, audio, image) in a flat structure.","properties":{"image":{"type":"object","description":"Optional. Image output format configuration.","properties":{"imageSize":{"enum":["IMAGE_SIZE_UNSPECIFIED","IMAGE_SIZE_FIVE_TWELVE","IMAGE_SIZE_ONE_K","IMAGE_SIZE_TWO_K","IMAGE_SIZE_FOUR_K"],"description":"Optional. The size of the image output.\n\n**Allowed values:**\n- `IMAGE_SIZE_UNSPECIFIED`: Default value. This value is unused.\n- `IMAGE_SIZE_FIVE_TWELVE`: 512px image size.\n- `IMAGE_SIZE_ONE_K`: 1K image size.\n- `IMAGE_SIZE_TWO_K`: 2K image size.\n- `IMAGE_SIZE_FOUR_K`: 4K image size.","type":"string","uniqueKey":"generationConfig.responseFormat.image.imageSize","typeLabel":"enum\u003cstring>"},"mimeType":{"enum":["MIME_TYPE_UNSPECIFIED","IMAGE_JPEG"],"type":"string","description":"Optional. The MIME type of the image output.\n\n**Allowed values:**\n- `MIME_TYPE_UNSPECIFIED`: Default value. This value is unused.\n- `IMAGE_JPEG`: JPEG image format.","uniqueKey":"generationConfig.responseFormat.image.mimeType","typeLabel":"enum\u003cstring>"},"aspectRatio":{"type":"string","description":"Optional. The aspect ratio for the image output.\n\n**Allowed values:**\n- `ASPECT_RATIO_UNSPECIFIED`: Default value. This value is unused.\n- `ASPECT_RATIO_ONE_BY_ONE`: 1:1 aspect ratio.\n- `ASPECT_RATIO_TWO_BY_THREE`: 2:3 aspect ratio.\n- `ASPECT_RATIO_THREE_BY_TWO`: 3:2 aspect ratio.\n- `ASPECT_RATIO_THREE_BY_FOUR`: 3:4 aspect ratio.\n- `ASPECT_RATIO_FOUR_BY_THREE`: 4:3 aspect ratio.\n- `ASPECT_RATIO_FOUR_BY_FIVE`: 4:5 aspect ratio.\n- `ASPECT_RATIO_FIVE_BY_FOUR`: 5:4 aspect ratio.\n- `ASPECT_RATIO_NINE_BY_SIXTEEN`: 9:16 aspect ratio.\n- `ASPECT_RATIO_SIXTEEN_BY_NINE`: 16:9 aspect ratio.\n- `ASPECT_RATIO_TWENTY_ONE_BY_NINE`: 21:9 aspect ratio.\n- `ASPECT_RATIO_ONE_BY_EIGHT`: 1:8 aspect ratio.\n- `ASPECT_RATIO_EIGHT_BY_ONE`: 8:1 aspect ratio.\n- `ASPECT_RATIO_ONE_BY_FOUR`: 1:4 aspect ratio.\n- `ASPECT_RATIO_FOUR_BY_ONE`: 4:1 aspect ratio.","enum":["ASPECT_RATIO_UNSPECIFIED","ASPECT_RATIO_ONE_BY_ONE","ASPECT_RATIO_TWO_BY_THREE","ASPECT_RATIO_THREE_BY_TWO","ASPECT_RATIO_THREE_BY_FOUR","ASPECT_RATIO_FOUR_BY_THREE","ASPECT_RATIO_FOUR_BY_FIVE","ASPECT_RATIO_FIVE_BY_FOUR","ASPECT_RATIO_NINE_BY_SIXTEEN","ASPECT_RATIO_SIXTEEN_BY_NINE","ASPECT_RATIO_TWENTY_ONE_BY_NINE","ASPECT_RATIO_ONE_BY_EIGHT","ASPECT_RATIO_EIGHT_BY_ONE","ASPECT_RATIO_ONE_BY_FOUR","ASPECT_RATIO_FOUR_BY_ONE"],"uniqueKey":"generationConfig.responseFormat.image.aspectRatio","typeLabel":"enum\u003cstring>"},"delivery":{"type":"string","description":"Optional. The delivery mode for the image output.\n\n**Allowed values:**\n- `DELIVERY_UNSPECIFIED`: Default value. This value is unused.\n- `INLINE`: Image data is returned inline in the response.\n- `URI`: Image data is returned as a URI.","enum":["DELIVERY_UNSPECIFIED","INLINE","URI"],"uniqueKey":"generationConfig.responseFormat.image.delivery","typeLabel":"enum\u003cstring>"}},"uniqueKey":"generationConfig.responseFormat.image","typeLabel":"object"},"audio":{"type":"object","description":"Optional. Audio output format configuration.","properties":{"delivery":{"type":"string","description":"Optional. The delivery mode for the audio output.\n\n**Allowed values:**\n- `DELIVERY_UNSPECIFIED`: Default value. This value is unused.\n- `INLINE`: Audio data is returned inline in the response.\n- `URI`: Audio data is returned as a URI.","enum":["DELIVERY_UNSPECIFIED","INLINE","URI"],"uniqueKey":"generationConfig.responseFormat.audio.delivery","typeLabel":"enum\u003cstring>"},"bitRate":{"type":"integer","description":"Optional. Bit rate in bits per second (bps). Only applicable for compressed formats\n(MP3, Opus).","format":"int32","uniqueKey":"generationConfig.responseFormat.audio.bitRate","typeLabel":"integer\u003cint32>"},"sampleRate":{"format":"int32","description":"Optional. Sample rate in Hz.","type":"integer","uniqueKey":"generationConfig.responseFormat.audio.sampleRate","typeLabel":"integer\u003cint32>"},"mimeType":{"description":"Optional. The MIME type of the audio output.\n\n**Allowed values:**\n- `MIME_TYPE_UNSPECIFIED`: Default value. This value is unused.\n- `AUDIO_MP3`: MP3 audio format.\n- `AUDIO_OGG_OPUS`: OGG Opus audio format.\n- `AUDIO_L16`: Raw PCM (L16) audio format.\n- `AUDIO_WAV`: WAV audio format.\n- `AUDIO_ALAW`: A-law audio format.\n- `AUDIO_MULAW`: Mu-law audio format.","type":"string","enum":["MIME_TYPE_UNSPECIFIED","AUDIO_MP3","AUDIO_OGG_OPUS","AUDIO_L16","AUDIO_WAV","AUDIO_ALAW","AUDIO_MULAW"],"uniqueKey":"generationConfig.responseFormat.audio.mimeType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"generationConfig.responseFormat.audio","typeLabel":"object"},"text":{"type":"object","description":"Optional. Text output format configuration.","properties":{"schema":{"description":"Optional. The JSON schema that the output should conform to. Only applicable when\nmime_type is APPLICATION_JSON.","uniqueKey":"generationConfig.responseFormat.text.schema","typeLabel":"any"},"mimeType":{"type":"string","description":"Optional. The MIME type of the text output.\n\n**Allowed values:**\n- `MIME_TYPE_UNSPECIFIED`: Default value. This value is unused.\n- `APPLICATION_JSON`: JSON output format.\n- `TEXT_PLAIN`: Plain text output format.","enum":["MIME_TYPE_UNSPECIFIED","APPLICATION_JSON","TEXT_PLAIN"],"uniqueKey":"generationConfig.responseFormat.text.mimeType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"generationConfig.responseFormat.text","typeLabel":"object"}},"uniqueKey":"generationConfig.responseFormat","typeLabel":"object"},"responseMimeType":{"type":"string","description":"Optional. MIME type of the generated candidate text.\nSupported MIME types are:\n`text/plain`: (default) Text output.\n`application/json`: JSON response in the response candidates.\n`text/x.enum`: ENUM as a string response in the response candidates.\nRefer to the\n[docs](https://aistudio.google.com/docs/file-input-methods#text-file-types)\nfor a list of all supported text MIME types.","uniqueKey":"generationConfig.responseMimeType","typeLabel":"string"},"enableAffectiveDialog":{"description":"Optional. If enabled, the model will detect emotions and adapt its responses\naccordingly.","type":"boolean","uniqueKey":"generationConfig.enableAffectiveDialog","typeLabel":"boolean"},"responseJsonSchema":{"description":"Optional. An internal detail. Use `responseJsonSchema` rather than this field.","uniqueKey":"generationConfig.responseJsonSchema","typeLabel":"any"},"stopSequences":{"items":{"type":"string","uniqueKey":"generationConfig.stopSequences.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Optional. The set of character sequences (up to 5) that will stop output generation.\nIf specified, the API will stop at the first appearance of a\n`stop_sequence`. The stop sequence will not be included as part of the\nresponse.","uniqueKey":"generationConfig.stopSequences","typeLabel":"string[]"},"responseModalities":{"description":"Optional. The requested modalities of the response. Represents the set of modalities\nthat the model can return, and should be expected in the response. This is\nan exact match to the modalities of the response.\n\nA model may have multiple combinations of supported modalities. If the\nrequested modalities do not match any of the supported combinations, an\nerror will be returned.\n\nAn empty list is equivalent to requesting only text.\n\n**Allowed values:**\n- `MODALITY_UNSPECIFIED`: Default value.\n- `TEXT`: Indicates the model should return text.\n- `IMAGE`: Indicates the model should return images.\n- `AUDIO`: Indicates the model should return audio.","items":{"type":"string","enum":["MODALITY_UNSPECIFIED","TEXT","IMAGE","AUDIO"],"uniqueKey":"generationConfig.responseModalities.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"generationConfig.responseModalities","typeLabel":"enum\u003cstring>[]"},"frequencyPenalty":{"type":"number","description":"Optional. Frequency penalty applied to the next token's logprobs, multiplied by the\nnumber of times each token has been seen in the respponse so far.\n\nA positive penalty will discourage the use of tokens that have already\nbeen used, proportional to the number of times the token has been used:\nThe more a token is used, the more difficult it is for the model to use\nthat token again increasing the vocabulary of responses.\n\nCaution: A _negative_ penalty will encourage the model to reuse tokens\nproportional to the number of times the token has been used. Small\nnegative values will reduce the vocabulary of a response. Larger negative\nvalues will cause the model to start repeating a common token until it\nhits the max_output_tokens\nlimit.","format":"float","uniqueKey":"generationConfig.frequencyPenalty","typeLabel":"number\u003cfloat>"},"mediaResolution":{"type":"string","description":"Optional. If specified, the media resolution specified will be used.\n\n**Allowed values:**\n- `MEDIA_RESOLUTION_UNSPECIFIED`: Media resolution has not been set.\n- `MEDIA_RESOLUTION_LOW`: Media resolution set to low (64 tokens).\n- `MEDIA_RESOLUTION_MEDIUM`: Media resolution set to medium (256 tokens).\n- `MEDIA_RESOLUTION_HIGH`: Media resolution set to high (zoomed reframing with 256 tokens).","enum":["MEDIA_RESOLUTION_UNSPECIFIED","MEDIA_RESOLUTION_LOW","MEDIA_RESOLUTION_MEDIUM","MEDIA_RESOLUTION_HIGH"],"uniqueKey":"generationConfig.mediaResolution","typeLabel":"enum\u003cstring>"},"audioTranscriptionConfig":{"type":"object","description":"Optional. Config for audio transcription (speech recognition).","properties":{"customVocabulary":{"type":"array","description":"Optional. A list of custom vocabulary phrases to bias the speech recognition model\ntoward recognizing specific terms (product names, proper nouns, jargon).","items":{"type":"string","uniqueKey":"generationConfig.audioTranscriptionConfig.customVocabulary.items.[INDEX]","typeLabel":"string"},"uniqueKey":"generationConfig.audioTranscriptionConfig.customVocabulary","typeLabel":"string[]"},"diarization":{"description":"Optional. Configures speaker diarization.","type":"boolean","uniqueKey":"generationConfig.audioTranscriptionConfig.diarization","typeLabel":"boolean"},"languageHints":{"type":"object","description":"Optional. Specifies one or more languages in the audio.","required":["languageCodes"],"deprecated":true,"properties":{"languageCodes":{"items":{"type":"string","uniqueKey":"generationConfig.audioTranscriptionConfig.languageHints.languageCodes.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Required. BCP-47 language codes.","deprecated":true,"isRequired":true,"uniqueKey":"generationConfig.audioTranscriptionConfig.languageHints.languageCodes","typeLabel":"string[]"}},"uniqueKey":"generationConfig.audioTranscriptionConfig.languageHints","typeLabel":"object"},"languageAuto":{"type":"object","description":"Optional. The model will detect the language automatically.","deprecated":true,"uniqueKey":"generationConfig.audioTranscriptionConfig.languageAuto","typeLabel":"object"},"sourceText":{"type":"string","description":"Optional. The source text to be edited or rewritten via voice instructions.\nWhen provided in `SMART` mode, the model evaluates the audio input against\nthis text and emits the complete replacement text in the candidate response\nrather than appending to it.","uniqueKey":"generationConfig.audioTranscriptionConfig.sourceText","typeLabel":"string"},"wordTimestamp":{"description":"Optional. Configures word-level timestamp generation.","type":"boolean","uniqueKey":"generationConfig.audioTranscriptionConfig.wordTimestamp","typeLabel":"boolean"},"languageCodes":{"items":{"type":"string","uniqueKey":"generationConfig.audioTranscriptionConfig.languageCodes.items.[INDEX]","typeLabel":"string"},"description":"Optional. BCP-47 language codes providing hints about the languages present in the\naudio. If omitted or empty, defaults to automatic language detection.","type":"array","uniqueKey":"generationConfig.audioTranscriptionConfig.languageCodes","typeLabel":"string[]"},"adaptationPhrases":{"items":{"type":"string","uniqueKey":"generationConfig.audioTranscriptionConfig.adaptationPhrases.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Optional. A list of phrases used for speech adaptation, which biases the ASR model to\nimprove recognition of these specific terms.","deprecated":true,"uniqueKey":"generationConfig.audioTranscriptionConfig.adaptationPhrases","typeLabel":"string[]"},"mode":{"type":"string","description":"Optional. Configures transcription mode. Supported values: `VERBATIM`,\n`SMART`. If unspecified, defaults to `VERBATIM` transcription.\nIn `SMART` mode, the model performs disfluency removal (eliminating\nfiller words, repetitions, and false starts), light grammatical cleanup,\nautomatic formatting (paragraphs, bullet points, numbered lists), and\nminor user edits (inline self-corrections).\nTimestamps and diarization are incompatible with mode `SMART`.\n\n**Allowed values:**\n- `MODE_UNSPECIFIED`: Unspecified transcription mode.\n- `VERBATIM`: Verbatim transcription mode.\n- `SMART`: Smart transcription mode.","enum":["MODE_UNSPECIFIED","VERBATIM","SMART"],"uniqueKey":"generationConfig.audioTranscriptionConfig.mode","typeLabel":"enum\u003cstring>"}},"uniqueKey":"generationConfig.audioTranscriptionConfig","typeLabel":"object"}},"uniqueKey":"generationConfig","typeLabel":"object"},"store":{"description":"Optional. Configures the logging behavior for a given request. If set, it takes\nprecedence over the project-level logging config.","type":"boolean","uniqueKey":"store","typeLabel":"boolean"},"systemInstruction":{"type":"object","description":"Optional. Developer set [system\ninstruction(s)](https://aistudio.google.com/docs/text-generation#system-instructions).\nCurrently, text only.","properties":{"parts":{"items":{"type":"object","properties":{"toolResponse":{"type":"object","description":"The output from a server-side `ToolCall` execution. This field is\npopulated by the client with the results of executing the\ncorresponding `ToolCall`.","required":["toolType"],"properties":{"toolType":{"type":"string","description":"Required. The type of tool that was called, matching the `tool_type` in the\ncorresponding `ToolCall`.","enum":["TOOL_TYPE_UNSPECIFIED","GOOGLE_SEARCH_WEB","GOOGLE_SEARCH_IMAGE","URL_CONTEXT","GOOGLE_MAPS","FILE_SEARCH","MEDIA_PROCESSING"],"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].toolResponse.toolType","typeLabel":"enum\u003cstring>"},"response":{"type":"object","description":"Optional. The tool response.","additionalProperties":{"description":"Properties of the object.","uniqueKey":"systemInstruction.parts.items.[INDEX].toolResponse.response.additionalProperties","typeLabel":"any"},"uniqueKey":"systemInstruction.parts.items.[INDEX].toolResponse.response","typeLabel":"object"},"id":{"type":"string","description":"Optional. The identifier of the tool call this response is for.","uniqueKey":"systemInstruction.parts.items.[INDEX].toolResponse.id","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].toolResponse","typeLabel":"object"},"executableCode":{"type":"object","description":"Code generated by the model that is meant to be executed.","required":["language","code"],"properties":{"language":{"type":"string","description":"Required. Programming language of the `code`.\n\n**Allowed values:**\n- `LANGUAGE_UNSPECIFIED`: Unspecified language. This value should not be used.\n- `PYTHON`: Python >= 3.10, with numpy and simpy available. Python is the default language.","enum":["LANGUAGE_UNSPECIFIED","PYTHON"],"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].executableCode.language","typeLabel":"enum\u003cstring>"},"code":{"description":"Required. The code to be executed.","type":"string","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].executableCode.code","typeLabel":"string"},"id":{"type":"string","description":"Optional. Unique identifier of the `ExecutableCode` part.\nThe server returns the `CodeExecutionResult` with the matching `id`.","uniqueKey":"systemInstruction.parts.items.[INDEX].executableCode.id","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].executableCode","typeLabel":"object"},"speechMetadata":{"type":"object","description":"Optional. Metadata applied to text parts to customize how they should be spoken or\nsynthesized, such as specifying speaker identity or speaking style.","properties":{"style":{"type":"string","description":"Optional. Optional style instruction for the speech synthesis.","uniqueKey":"systemInstruction.parts.items.[INDEX].speechMetadata.style","typeLabel":"string"},"speaker":{"type":"string","description":"Optional. Optional speaker name for multi-speaker synthesis.","uniqueKey":"systemInstruction.parts.items.[INDEX].speechMetadata.speaker","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].speechMetadata","typeLabel":"object"},"audioMetadata":{"type":"object","description":"Optional. Audio metadata. The metadata should only be specified while the audio\ndata is presented in inline_data or file_data.","properties":{"endOffset":{"description":"Optional. The end offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].audioMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. The start offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","uniqueKey":"systemInstruction.parts.items.[INDEX].audioMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].audioMetadata","typeLabel":"object"},"audioTranscription":{"type":"object","description":"Optional. Audio (input or output) transcription.\nThis is only set when this Part contains audio data.","required":["text"],"properties":{"text":{"type":"string","description":"Required. The transcription text of this audio segment.","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].audioTranscription.text","typeLabel":"string"},"words":{"type":"array","items":{"description":"Information about a single recognized word.","properties":{"word":{"description":"Required. Transcript of the word.","type":"string","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].audioTranscription.words.items.[INDEX].word","typeLabel":"string"},"endOffset":{"type":"string","format":"google-duration","description":"Optional. End offset in time of the word relative to the start of the audio.","uniqueKey":"systemInstruction.parts.items.[INDEX].audioTranscription.words.items.[INDEX].endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. Start offset in time of the word relative to the start of the audio.","format":"google-duration","uniqueKey":"systemInstruction.parts.items.[INDEX].audioTranscription.words.items.[INDEX].startOffset","typeLabel":"string\u003cgoogle-duration>"}},"required":["word"],"type":"object","uniqueKey":"systemInstruction.parts.items.[INDEX].audioTranscription.words.items.[INDEX]","typeLabel":"object"},"description":"Optional. Detailed word-level transcriptions and timing details.\nPresent when word_timestamp is set.","uniqueKey":"systemInstruction.parts.items.[INDEX].audioTranscription.words","typeLabel":"object[]"},"speakerLabel":{"type":"string","description":"Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\",\n\"spk_2\"). Present when diarization is set.","uniqueKey":"systemInstruction.parts.items.[INDEX].audioTranscription.speakerLabel","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].audioTranscription","typeLabel":"object"},"inlineData":{"type":"object","description":"Inline media bytes.","properties":{"data":{"description":"Raw bytes for media formats.","type":"string","format":"byte","uniqueKey":"systemInstruction.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"},"mimeType":{"type":"string","description":"The IANA standard MIME type of the source data.\nExamples of supported types:\n- Images: image/png, image/jpeg, image/jpg, image/webp, image/heic,\nimage/heif, image/gif, image/avif\n- Audio: audio/*, video/audio/s16le, video/audio/wav\n- Video: video/*\n- Text: text/plain, text/html, text/css, text/javascript,\ntext/x-typescript, text/csv, text/markdown, text/x-python, text/xml,\ntext/rtf, video/text/timestamp\n- Applications: application/x-javascript, application/x-typescript,\napplication/x-python-code, application/json, application/x-ipynb+json,\napplication/rtf, application/pdf For additional context,\nsee [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","uniqueKey":"systemInstruction.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"},"displayName":{"description":"Optional. Specifies the name used to refer to this blob to the model (e.g.\n\"my_blob.png\"). Used as the blob reference identifier when\n`verbalization_mode` is set to `REFERENCE_ONLY`.","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].inlineData.displayName","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].inlineData","typeLabel":"object"},"spreadsheetMetadata":{"type":"object","description":"Optional. Spreadsheet metadata. The metadata should only be specified while the\nspreadsheet data is presented in inline_data or file_data.","properties":{"contentLayers":{"type":"array","items":{"type":"string","enum":["CONTENT_LAYER_UNSPECIFIED","DATA","FORMULAS","VISUAL"],"uniqueKey":"systemInstruction.parts.items.[INDEX].spreadsheetMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `DATA`: Cell values, merges, and formats.\n- `FORMULAS`: Formula expressions and their computed results.\n- `VISUAL`: A rendered image of the sheet.","uniqueKey":"systemInstruction.parts.items.[INDEX].spreadsheetMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"visibleCells":{"description":"Optional. The range of cells to extract, in A1 notation (e.g. \"A1:D10\").\nIf not set, the full occupied area of the sheet is used.","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].spreadsheetMetadata.visibleCells","typeLabel":"string"},"sheetIndex":{"description":"Optional. The 1-indexed index of the sheet to extract, in workbook order.\nIf not set, all sheets are extracted.","format":"int32","type":"integer","uniqueKey":"systemInstruction.parts.items.[INDEX].spreadsheetMetadata.sheetIndex","typeLabel":"integer\u003cint32>"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].spreadsheetMetadata","typeLabel":"object"},"partMetadata":{"type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"systemInstruction.parts.items.[INDEX].partMetadata.additionalProperties","typeLabel":"any"},"description":"Custom metadata associated with the Part.\nAgents using genai.Part as content representation may need to keep track\nof the additional information. For example it can be name of a file/source\nfrom which the Part originates or a way to multiplex multiple Part streams.","uniqueKey":"systemInstruction.parts.items.[INDEX].partMetadata","typeLabel":"object"},"text":{"type":"string","description":"Inline text.","uniqueKey":"systemInstruction.parts.items.[INDEX].text","typeLabel":"string"},"thoughtSignature":{"format":"byte","description":"Optional. An opaque signature for the thought so it can be reused in subsequent\nrequests.","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].thoughtSignature","typeLabel":"string\u003cbyte>"},"codeExecutionResult":{"type":"object","description":"Result of executing the `ExecutableCode`.","required":["outcome"],"properties":{"outcome":{"description":"Required. Outcome of the code execution.\n\n**Allowed values:**\n- `OUTCOME_UNSPECIFIED`: Unspecified status. This value should not be used.\n- `OUTCOME_OK`: Code execution completed successfully. `output` contains the stdout, if any.\n- `OUTCOME_FAILED`: Code execution failed. `output` contains the stderr and stdout, if any.\n- `OUTCOME_DEADLINE_EXCEEDED`: Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present.","enum":["OUTCOME_UNSPECIFIED","OUTCOME_OK","OUTCOME_FAILED","OUTCOME_DEADLINE_EXCEEDED"],"type":"string","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].codeExecutionResult.outcome","typeLabel":"enum\u003cstring>"},"id":{"description":"Optional. The identifier of the `ExecutableCode` part this result is for.\nOnly populated if the corresponding `ExecutableCode` has an id.","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].codeExecutionResult.id","typeLabel":"string"},"output":{"type":"string","description":"Optional. Contains stdout when code execution is successful, stderr or other\ndescription otherwise.","uniqueKey":"systemInstruction.parts.items.[INDEX].codeExecutionResult.output","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].codeExecutionResult","typeLabel":"object"},"thought":{"description":"Optional. Indicates if the part is thought from the model.","type":"boolean","uniqueKey":"systemInstruction.parts.items.[INDEX].thought","typeLabel":"boolean"},"functionCall":{"type":"object","description":"A predicted `FunctionCall` returned from the model that contains\na string representing the `FunctionDeclaration.name` with the\narguments and their values.","required":["name"],"properties":{"name":{"description":"Required. The name of the function to call.\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum\nlength of 128.","type":"string","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].functionCall.name","typeLabel":"string"},"args":{"type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"systemInstruction.parts.items.[INDEX].functionCall.args.additionalProperties","typeLabel":"any"},"description":"Optional. The function parameters and values in JSON object format.","uniqueKey":"systemInstruction.parts.items.[INDEX].functionCall.args","typeLabel":"object"},"id":{"description":"Optional. Unique identifier of the function call. If populated, the client to\nexecute the `function_call` and return the response with the matching `id`.","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].functionCall.id","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionCall","typeLabel":"object"},"mediaProcessing":{"type":"string","description":"Optional. How the model processes this part's media for understanding.\nOnly meaningful for video parts (`inline_data` or `file_data` with video\nmime). Non-video parts ignore this field.\n\n**Allowed values:**\n- `MEDIA_PROCESSING_UNSPECIFIED`: Defaults to model-specific processing.\n- `STATIC`: Fixed-rate frame extraction. All frames placed in context.\n- `AGENTIC`: Model-driven dynamic navigation. Recommended for most use cases.","enum":["MEDIA_PROCESSING_UNSPECIFIED","STATIC","AGENTIC"],"uniqueKey":"systemInstruction.parts.items.[INDEX].mediaProcessing","typeLabel":"enum\u003cstring>"},"videoMetadata":{"type":"object","description":"Optional. Video metadata. The metadata should only be specified while the video\ndata is presented in inline_data or file_data.","properties":{"fps":{"description":"Optional. The frame rate of the video sent to the model. If not specified, the\ndefault value will be 1.0.\nThe fps range is (0.0, 24.0].","format":"double","type":"number","uniqueKey":"systemInstruction.parts.items.[INDEX].videoMetadata.fps","typeLabel":"number\u003cdouble>"},"startOffset":{"description":"Optional. The start offset of the video.","format":"google-duration","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].videoMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"},"contentLayers":{"items":{"enum":["CONTENT_LAYER_UNSPECIFIED","FRAMES","AUDIO","TRANSCRIPT"],"type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].videoMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [FRAMES, AUDIO].\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `FRAMES`: Extract video frames.\n- `AUDIO`: Extract audio track.\n- `TRANSCRIPT`: Extract audio transcript.","type":"array","uniqueKey":"systemInstruction.parts.items.[INDEX].videoMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"endOffset":{"type":"string","description":"Optional. The end offset of the video.","format":"google-duration","uniqueKey":"systemInstruction.parts.items.[INDEX].videoMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].videoMetadata","typeLabel":"object"},"fileData":{"type":"object","description":"URI based data.","required":["fileUri"],"properties":{"fileUri":{"description":"Required. URI.","type":"string","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].fileData.fileUri","typeLabel":"string"},"displayName":{"description":"Optional. Specifies the name used to refer to this file to the model (e.g.\n\"my_file.pdf\"). Used as the file reference identifier when\n`verbalization_mode` is set to `REFERENCE_ONLY`.","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].fileData.displayName","typeLabel":"string"},"mimeType":{"type":"string","description":"Optional. The IANA standard MIME type of the source data.","uniqueKey":"systemInstruction.parts.items.[INDEX].fileData.mimeType","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].fileData","typeLabel":"object"},"mediaResolution":{"type":"object","description":"Optional. Media resolution for the input media.","properties":{"level":{"enum":["MEDIA_RESOLUTION_UNSPECIFIED","MEDIA_RESOLUTION_LOW","MEDIA_RESOLUTION_MEDIUM","MEDIA_RESOLUTION_HIGH","MEDIA_RESOLUTION_ULTRA_HIGH"],"type":"string","description":"The tokenization quality used for given media.\n for Gemini API support .\n\n**Allowed values:**\n- `MEDIA_RESOLUTION_UNSPECIFIED`: Media resolution has not been set.\n- `MEDIA_RESOLUTION_LOW`: Media resolution set to low.\n- `MEDIA_RESOLUTION_MEDIUM`: Media resolution set to medium.\n- `MEDIA_RESOLUTION_HIGH`: Media resolution set to high.\n- `MEDIA_RESOLUTION_ULTRA_HIGH`: Media resolution set to ultra high.","uniqueKey":"systemInstruction.parts.items.[INDEX].mediaResolution.level","typeLabel":"enum\u003cstring>"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].mediaResolution","typeLabel":"object"},"documentMetadata":{"type":"object","description":"Optional. Document metadata. The metadata should only be specified while the\ndocument data is presented in inline_data or file_data.","properties":{"startPage":{"type":"integer","format":"int32","description":"Optional. 1-indexed inclusive start page.","uniqueKey":"systemInstruction.parts.items.[INDEX].documentMetadata.startPage","typeLabel":"integer\u003cint32>"},"endPage":{"type":"integer","description":"Optional. 1-indexed inclusive end page.","format":"int32","uniqueKey":"systemInstruction.parts.items.[INDEX].documentMetadata.endPage","typeLabel":"integer\u003cint32>"},"contentLayers":{"type":"array","description":"Optional. Content layers to return.\nIf empty, defaults to [PAGE_IMAGE] when DocumentMetadata is set. When\nDocumentMetadata is not set, default document processing is used (for\nexample, page images for PDFs).\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `PAGE_IMAGE`: Rendered page images.\n- `PAGE_TEXT`: Extracted page text.","items":{"enum":["CONTENT_LAYER_UNSPECIFIED","PAGE_IMAGE","PAGE_TEXT"],"type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].documentMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"systemInstruction.parts.items.[INDEX].documentMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].documentMetadata","typeLabel":"object"},"functionResponse":{"type":"object","description":"The result output of a `FunctionCall` that contains a string\nrepresenting the `FunctionDeclaration.name` and a structured JSON\nobject containing any output from the function is used as context to\nthe model.","required":["name","response"],"properties":{"response":{"description":"Required. The function response in JSON object format.\nCallers can use any keys of their choice that fit the function's syntax\nto return the function output, e.g. \"output\", \"result\", etc.\nIn particular, if the function call failed to execute, the response can\nhave an \"error\" key to return error details to the model.\n\nMultimedia can be included by using a subobject containing a single \"$ref\"\nkey whose value is the `inline_data.display_name` or\n`file_data.display_name` of a `FunctionResponsePart` holding the\nmultimedia. See [Multimodal function\nresponses](https://aistudio.google.com/docs/function-calling#multimodal).","type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.response.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.response","typeLabel":"object"},"name":{"description":"Required. The name of the function to call.\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum\nlength of 128.","type":"string","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.name","typeLabel":"string"},"willContinue":{"description":"Optional. Signals that function call continues, and more responses will be\nreturned, turning the function call into a generator.\nIs only applicable to NON_BLOCKING function calls, is ignored otherwise.\nIf set to false, future responses will not be considered.\nIt is allowed to return empty `response` with `will_continue=False` to\nsignal that the function call is finished. This may still trigger the model\ngeneration. To avoid triggering the generation and finish the function\ncall, additionally set `scheduling` to `SILENT`.","type":"boolean","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.willContinue","typeLabel":"boolean"},"parts":{"type":"array","items":{"type":"object","description":"A datatype containing media that is part of a `FunctionResponse` message.\n\nA `FunctionResponsePart` consists of data which has an associated datatype. A\n`FunctionResponsePart` can only contain one of the accepted types in\n`FunctionResponsePart.data`.\n\nMedia can be passed as raw bytes (`inline_data`) or by URI (`file_data`) with\nan IANA MIME type identifying the type and subtype of the media.","properties":{"documentMetadata":{"type":"object","description":"Optional. Document metadata. The metadata should only be specified while the\ndocument data is presented in inline_data or file_data.","properties":{"startPage":{"type":"integer","format":"int32","description":"Optional. 1-indexed inclusive start page.","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.startPage","typeLabel":"integer\u003cint32>"},"endPage":{"type":"integer","description":"Optional. 1-indexed inclusive end page.","format":"int32","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.endPage","typeLabel":"integer\u003cint32>"},"contentLayers":{"type":"array","description":"Optional. Content layers to return.\nIf empty, defaults to [PAGE_IMAGE] when DocumentMetadata is set. When\nDocumentMetadata is not set, default document processing is used (for\nexample, page images for PDFs).\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `PAGE_IMAGE`: Rendered page images.\n- `PAGE_TEXT`: Extracted page text.","items":{"enum":["CONTENT_LAYER_UNSPECIFIED","PAGE_IMAGE","PAGE_TEXT"],"type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata","typeLabel":"object"},"mediaProcessing":{"type":"string","description":"Optional. How the model processes this part's media for understanding.\nOnly meaningful for video parts (`inline_data` or `file_data` with video\nmime). Non-video parts ignore this field.\n\n**Allowed values:**\n- `MEDIA_PROCESSING_UNSPECIFIED`: Defaults to model-specific processing.\n- `STATIC`: Fixed-rate frame extraction. All frames placed in context.\n- `AGENTIC`: Model-driven dynamic navigation. Recommended for most use cases.","enum":["MEDIA_PROCESSING_UNSPECIFIED","STATIC","AGENTIC"],"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaProcessing","typeLabel":"enum\u003cstring>"},"mediaResolution":{"type":"object","description":"Optional. Media resolution for the input media.","properties":{"level":{"enum":["MEDIA_RESOLUTION_UNSPECIFIED","MEDIA_RESOLUTION_LOW","MEDIA_RESOLUTION_MEDIUM","MEDIA_RESOLUTION_HIGH","MEDIA_RESOLUTION_ULTRA_HIGH"],"type":"string","description":"The tokenization quality used for given media.\n for Gemini API support .\n\n**Allowed values:**\n- `MEDIA_RESOLUTION_UNSPECIFIED`: Media resolution has not been set.\n- `MEDIA_RESOLUTION_LOW`: Media resolution set to low.\n- `MEDIA_RESOLUTION_MEDIUM`: Media resolution set to medium.\n- `MEDIA_RESOLUTION_HIGH`: Media resolution set to high.\n- `MEDIA_RESOLUTION_ULTRA_HIGH`: Media resolution set to ultra high.","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaResolution.level","typeLabel":"enum\u003cstring>"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaResolution","typeLabel":"object"},"spreadsheetMetadata":{"type":"object","description":"Optional. Spreadsheet metadata. The metadata should only be specified while the\nspreadsheet data is presented in inline_data or file_data.","properties":{"contentLayers":{"type":"array","items":{"type":"string","enum":["CONTENT_LAYER_UNSPECIFIED","DATA","FORMULAS","VISUAL"],"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `DATA`: Cell values, merges, and formats.\n- `FORMULAS`: Formula expressions and their computed results.\n- `VISUAL`: A rendered image of the sheet.","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"visibleCells":{"description":"Optional. The range of cells to extract, in A1 notation (e.g. \"A1:D10\").\nIf not set, the full occupied area of the sheet is used.","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.visibleCells","typeLabel":"string"},"sheetIndex":{"description":"Optional. The 1-indexed index of the sheet to extract, in workbook order.\nIf not set, all sheets are extracted.","format":"int32","type":"integer","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.sheetIndex","typeLabel":"integer\u003cint32>"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata","typeLabel":"object"},"videoMetadata":{"type":"object","description":"Optional. Video metadata. The metadata should only be specified while the video\ndata is presented in inline_data or file_data.","properties":{"fps":{"description":"Optional. The frame rate of the video sent to the model. If not specified, the\ndefault value will be 1.0.\nThe fps range is (0.0, 24.0].","format":"double","type":"number","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.fps","typeLabel":"number\u003cdouble>"},"startOffset":{"description":"Optional. The start offset of the video.","format":"google-duration","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"},"contentLayers":{"items":{"enum":["CONTENT_LAYER_UNSPECIFIED","FRAMES","AUDIO","TRANSCRIPT"],"type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [FRAMES, AUDIO].\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `FRAMES`: Extract video frames.\n- `AUDIO`: Extract audio track.\n- `TRANSCRIPT`: Extract audio transcript.","type":"array","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"endOffset":{"type":"string","description":"Optional. The end offset of the video.","format":"google-duration","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata","typeLabel":"object"},"fileData":{"type":"object","description":"URI based data.","required":["fileUri"],"properties":{"fileUri":{"description":"Required. URI.","type":"string","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.fileUri","typeLabel":"string"},"displayName":{"description":"Optional. Display name of the file.\nUsed to provide a label or filename to distinguish file data, and to\nreference the file from `FunctionResponse.response` (for example, via\n`{\"$ref\": \"DISPLAY_NAME\"}`).","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.displayName","typeLabel":"string"},"mimeType":{"description":"The IANA standard MIME type of the source data.\nIf an unsupported MIME type is provided, an error will be returned. For a\ncomplete list of supported types, see [Multimodal function\nresponses](https://aistudio.google.com/docs/function-calling#multimodal)\nand [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.mimeType","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData","typeLabel":"object"},"audioMetadata":{"type":"object","description":"Optional. Audio metadata. The metadata should only be specified while the audio\ndata is presented in inline_data or file_data.","properties":{"endOffset":{"description":"Optional. The end offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. The start offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata","typeLabel":"object"},"inlineData":{"type":"object","description":"Inline media bytes.","properties":{"data":{"description":"Raw bytes for media formats.","type":"string","format":"byte","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"},"displayName":{"description":"Optional. Display name of the blob.\nUsed to provide a label or filename to distinguish blobs, and to reference\nthe blob from `FunctionResponse.response` (for example, via\n`{\"$ref\": \"DISPLAY_NAME\"}`).","type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.displayName","typeLabel":"string"},"mimeType":{"type":"string","description":"The IANA standard MIME type of the source data.\nExamples:\n - image/png\n - image/jpeg\nIf an unsupported MIME type is provided, an error will be returned. For a\ncomplete list of supported types, see [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData","typeLabel":"object"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts.items.[INDEX]","typeLabel":"object"},"description":"Optional. Ordered `Parts` that constitute a function response. Parts may have\ndifferent IANA MIME types.","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.parts","typeLabel":"object[]"},"id":{"type":"string","description":"Optional. The identifier of the function call this response is for. Populated by the\nclient to match the corresponding function call `id`.","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.id","typeLabel":"string"},"scheduling":{"description":"Optional. Specifies how the response should be scheduled in the conversation.\nOnly applicable to NON_BLOCKING function calls, is ignored otherwise.\nDefaults to WHEN_IDLE.\n\n**Allowed values:**\n- `SCHEDULING_UNSPECIFIED`: This value is unused.\n- `SILENT`: Only add the result to the conversation context, do not interrupt or trigger generation.\n- `WHEN_IDLE`: Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.\n- `INTERRUPT`: Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.","enum":["SCHEDULING_UNSPECIFIED","SILENT","WHEN_IDLE","INTERRUPT"],"type":"string","uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse.scheduling","typeLabel":"enum\u003cstring>"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].functionResponse","typeLabel":"object"},"toolCall":{"type":"object","description":"Server-side tool call. This field is populated when the model\npredicts a tool invocation that should be executed on the server.\nThe client is expected to echo this message back to the API.","required":["toolType"],"properties":{"toolType":{"type":"string","description":"Required. The type of tool that was called.","enum":["TOOL_TYPE_UNSPECIFIED","GOOGLE_SEARCH_WEB","GOOGLE_SEARCH_IMAGE","URL_CONTEXT","GOOGLE_MAPS","FILE_SEARCH","MEDIA_PROCESSING"],"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].toolCall.toolType","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Optional. Unique identifier of the tool call.\nThe server returns the tool response with the matching `id`.","uniqueKey":"systemInstruction.parts.items.[INDEX].toolCall.id","typeLabel":"string"},"args":{"additionalProperties":{"description":"Properties of the object.","uniqueKey":"systemInstruction.parts.items.[INDEX].toolCall.args.additionalProperties","typeLabel":"any"},"description":"Optional. The tool call arguments.\nExample: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}","type":"object","uniqueKey":"systemInstruction.parts.items.[INDEX].toolCall.args","typeLabel":"object"},"toolName":{"type":"string","description":"Optional. The name of the tool that was called.","uniqueKey":"systemInstruction.parts.items.[INDEX].toolCall.toolName","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].toolCall","typeLabel":"object"}},"description":"A datatype containing media that is part of a multi-part `Content` message.\n\nA `Part` consists of data which has an associated datatype. A `Part` can only\ncontain one of the accepted types in `Part.data`.\n\nA `Part` must have a fixed IANA MIME type identifying the type and subtype\nof the media if the `inline_data` field is filled with raw bytes.","uniqueKey":"systemInstruction.parts.items.[INDEX]","typeLabel":"object"},"description":"Ordered `Parts` that constitute a single message. Parts may have different\nMIME types.","type":"array","uniqueKey":"systemInstruction.parts","typeLabel":"object[]"},"role":{"description":"Optional. The producer of the content. Must be either 'user' or 'model'.\n\nUseful to set for multi-turn conversations, otherwise can be left blank\nor unset.","type":"string","uniqueKey":"systemInstruction.role","typeLabel":"string"}},"uniqueKey":"systemInstruction","typeLabel":"object"}},"type":"object","required":["contents"],"uniqueKey":"","typeLabel":"object"},"examples":{"Basic request":{"title":"Basic request","summary":"Basic request","description":"The model ID is in the path; the body only needs `contents`.","value":{"contents":[{"role":"user","parts":[{"text":"Explain quantum computing in three sentences."}]}]}},"System instruction and multi-turn conversation":{"title":"System instruction and multi-turn conversation","summary":"System instruction and multi-turn conversation","description":"The system instruction goes in `systemInstruction`; earlier model turns use `role: model`.","value":{"systemInstruction":{"parts":[{"text":"You are a concise, professional assistant."}]},"contents":[{"role":"user","parts":[{"text":"Suggest a name for a coffee shop."}]},{"role":"model","parts":[{"text":"How about \"Morning Light Coffee\"?"}]},{"role":"user","parts":[{"text":"Now add a tagline for that name."}]}]}},"Generation settings and thinking":{"title":"Generation settings and thinking","summary":"Generation settings and thinking","description":"`generationConfig` controls the output length and the thinking depth (`thinkingConfig.thinkingLevel`).","value":{"contents":[{"role":"user","parts":[{"text":"Prove that among any five integers there are three whose sum is divisible by 3."}]}],"generationConfig":{"maxOutputTokens":8192,"thinkingConfig":{"thinkingLevel":"HIGH"}}}},"Image input":{"title":"Image input","summary":"Image input","description":"Pass a Base64-encoded image in `inlineData` together with its `mimeType`.","value":{"contents":[{"role":"user","parts":[{"inlineData":{"mimeType":"image/jpeg","data":"\u003cBase64-encoded image>"}},{"text":"What is in this image?"}]}]}},"Function calling":{"title":"Function calling","summary":"Function calling","description":"The model returns a `functionCall` part when it needs outside data; send the result back in a `functionResponse` part.","value":{"contents":[{"role":"user","parts":[{"text":"What's the weather like in Hangzhou today?"}]}],"tools":[{"functionDeclarations":[{"name":"get_weather","description":"Get the current weather for a city","parametersJsonSchema":{"type":"object","properties":{"city":{"type":"string","description":"City name, e.g. Hangzhou"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["city"]}}]}]}},"Structured output":{"title":"Structured output","summary":"Structured output","description":"Set `responseMimeType` to `application/json` and describe the structure in `responseJsonSchema`.","value":{"contents":[{"role":"user","parts":[{"text":"Extract the contact from this sentence: I'm Li Lei from Galaxy Tech, lilei@example.com."}]}],"generationConfig":{"responseMimeType":"application/json","responseJsonSchema":{"type":"object","properties":{"name":{"type":"string"},"company":{"type":"string"},"email":{"type":"string"}},"required":["name","company","email"]}}}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"ed500e25-a883-45b2-bf0a-e4b3edba72dd":{"description":"The model's reply, with the candidates and usage.","content":{"application/json":{"schema":{"description":"Response from the model supporting multiple candidate responses.\n\nSafety ratings and content filtering are reported for both\nprompt in `GenerateContentResponse.prompt_feedback` and for each candidate\nin `finish_reason` and in `safety_ratings`. The API:\n - Returns either all requested candidates or none of them\n - Returns no candidates at all only if there was something wrong with the\n prompt (check `prompt_feedback`)\n - Reports feedback on each candidate in `finish_reason` and\n `safety_ratings`.","type":"object","properties":{"modelVersion":{"description":"Output only. The model version used to generate the response.","readOnly":true,"type":"string","uniqueKey":"modelVersion","typeLabel":"string"},"candidates":{"items":{"type":"object","description":"A response candidate generated from the model.","properties":{"safetyRatings":{"items":{"required":["category","probability"],"description":"Safety rating for a piece of content.\n\nThe safety rating contains the category of harm and the\nharm probability level in that category for a piece of content.\nContent is classified for safety across a number of\nharm categories and the probability of the harm classification is included\nhere.","type":"object","properties":{"category":{"type":"string","description":"Required. The category for this rating.","enum":["HARM_CATEGORY_UNSPECIFIED","HARM_CATEGORY_DEROGATORY","HARM_CATEGORY_TOXICITY","HARM_CATEGORY_VIOLENCE","HARM_CATEGORY_SEXUAL","HARM_CATEGORY_MEDICAL","HARM_CATEGORY_DANGEROUS","HARM_CATEGORY_HARASSMENT","HARM_CATEGORY_HATE_SPEECH","HARM_CATEGORY_SEXUALLY_EXPLICIT","HARM_CATEGORY_DANGEROUS_CONTENT","HARM_CATEGORY_CIVIC_INTEGRITY","HARM_CATEGORY_JAILBREAK"],"isRequired":true,"uniqueKey":"candidates.items.[INDEX].safetyRatings.items.[INDEX].category","typeLabel":"enum\u003cstring>"},"probability":{"type":"string","description":"Required. The probability of harm for this content.\n\n**Allowed values:**\n- `HARM_PROBABILITY_UNSPECIFIED`: Probability is unspecified.\n- `NEGLIGIBLE`: Content has a negligible chance of being unsafe.\n- `LOW`: Content has a low chance of being unsafe.\n- `MEDIUM`: Content has a medium chance of being unsafe.\n- `HIGH`: Content has a high chance of being unsafe.","enum":["HARM_PROBABILITY_UNSPECIFIED","NEGLIGIBLE","LOW","MEDIUM","HIGH"],"isRequired":true,"uniqueKey":"candidates.items.[INDEX].safetyRatings.items.[INDEX].probability","typeLabel":"enum\u003cstring>"},"blocked":{"type":"boolean","description":"Was this content blocked because of this rating?","uniqueKey":"candidates.items.[INDEX].safetyRatings.items.[INDEX].blocked","typeLabel":"boolean"}},"uniqueKey":"candidates.items.[INDEX].safetyRatings.items.[INDEX]","typeLabel":"object"},"type":"array","description":"List of ratings for the safety of a response candidate.\n\nThere is at most one rating per category.","uniqueKey":"candidates.items.[INDEX].safetyRatings","typeLabel":"object[]"},"content":{"type":"object","description":"Output only. Generated content returned from the model.","properties":{"parts":{"items":{"type":"object","properties":{"toolResponse":{"type":"object","description":"The output from a server-side `ToolCall` execution. This field is\npopulated by the client with the results of executing the\ncorresponding `ToolCall`.","required":["toolType"],"properties":{"toolType":{"type":"string","description":"Required. The type of tool that was called, matching the `tool_type` in the\ncorresponding `ToolCall`.","enum":["TOOL_TYPE_UNSPECIFIED","GOOGLE_SEARCH_WEB","GOOGLE_SEARCH_IMAGE","URL_CONTEXT","GOOGLE_MAPS","FILE_SEARCH","MEDIA_PROCESSING"],"isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolResponse.toolType","typeLabel":"enum\u003cstring>"},"response":{"type":"object","description":"Optional. The tool response.","additionalProperties":{"description":"Properties of the object.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolResponse.response.additionalProperties","typeLabel":"any"},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolResponse.response","typeLabel":"object"},"id":{"type":"string","description":"Optional. The identifier of the tool call this response is for.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolResponse.id","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolResponse","typeLabel":"object"},"executableCode":{"type":"object","description":"Code generated by the model that is meant to be executed.","required":["language","code"],"properties":{"language":{"type":"string","description":"Required. Programming language of the `code`.\n\n**Allowed values:**\n- `LANGUAGE_UNSPECIFIED`: Unspecified language. This value should not be used.\n- `PYTHON`: Python >= 3.10, with numpy and simpy available. Python is the default language.","enum":["LANGUAGE_UNSPECIFIED","PYTHON"],"isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].executableCode.language","typeLabel":"enum\u003cstring>"},"code":{"description":"Required. The code to be executed.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].executableCode.code","typeLabel":"string"},"id":{"type":"string","description":"Optional. Unique identifier of the `ExecutableCode` part.\nThe server returns the `CodeExecutionResult` with the matching `id`.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].executableCode.id","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].executableCode","typeLabel":"object"},"speechMetadata":{"type":"object","description":"Optional. Metadata applied to text parts to customize how they should be spoken or\nsynthesized, such as specifying speaker identity or speaking style.","properties":{"style":{"type":"string","description":"Optional. Optional style instruction for the speech synthesis.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].speechMetadata.style","typeLabel":"string"},"speaker":{"type":"string","description":"Optional. Optional speaker name for multi-speaker synthesis.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].speechMetadata.speaker","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].speechMetadata","typeLabel":"object"},"audioMetadata":{"type":"object","description":"Optional. Audio metadata. The metadata should only be specified while the audio\ndata is presented in inline_data or file_data.","properties":{"endOffset":{"description":"Optional. The end offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. The start offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioMetadata","typeLabel":"object"},"audioTranscription":{"type":"object","description":"Optional. Audio (input or output) transcription.\nThis is only set when this Part contains audio data.","required":["text"],"properties":{"text":{"type":"string","description":"Required. The transcription text of this audio segment.","isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioTranscription.text","typeLabel":"string"},"words":{"type":"array","items":{"description":"Information about a single recognized word.","properties":{"word":{"description":"Required. Transcript of the word.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioTranscription.words.items.[INDEX].word","typeLabel":"string"},"endOffset":{"type":"string","format":"google-duration","description":"Optional. End offset in time of the word relative to the start of the audio.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioTranscription.words.items.[INDEX].endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. Start offset in time of the word relative to the start of the audio.","format":"google-duration","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioTranscription.words.items.[INDEX].startOffset","typeLabel":"string\u003cgoogle-duration>"}},"required":["word"],"type":"object","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioTranscription.words.items.[INDEX]","typeLabel":"object"},"description":"Optional. Detailed word-level transcriptions and timing details.\nPresent when word_timestamp is set.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioTranscription.words","typeLabel":"object[]"},"speakerLabel":{"type":"string","description":"Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\",\n\"spk_2\"). Present when diarization is set.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioTranscription.speakerLabel","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].audioTranscription","typeLabel":"object"},"inlineData":{"type":"object","description":"Inline media bytes.","properties":{"data":{"description":"Raw bytes for media formats.","type":"string","format":"byte","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"},"mimeType":{"type":"string","description":"The IANA standard MIME type of the source data.\nExamples of supported types:\n- Images: image/png, image/jpeg, image/jpg, image/webp, image/heic,\nimage/heif, image/gif, image/avif\n- Audio: audio/*, video/audio/s16le, video/audio/wav\n- Video: video/*\n- Text: text/plain, text/html, text/css, text/javascript,\ntext/x-typescript, text/csv, text/markdown, text/x-python, text/xml,\ntext/rtf, video/text/timestamp\n- Applications: application/x-javascript, application/x-typescript,\napplication/x-python-code, application/json, application/x-ipynb+json,\napplication/rtf, application/pdf For additional context,\nsee [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"},"displayName":{"description":"Optional. Specifies the name used to refer to this blob to the model (e.g.\n\"my_blob.png\"). Used as the blob reference identifier when\n`verbalization_mode` is set to `REFERENCE_ONLY`.","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].inlineData.displayName","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].inlineData","typeLabel":"object"},"spreadsheetMetadata":{"type":"object","description":"Optional. Spreadsheet metadata. The metadata should only be specified while the\nspreadsheet data is presented in inline_data or file_data.","properties":{"contentLayers":{"type":"array","items":{"type":"string","enum":["CONTENT_LAYER_UNSPECIFIED","DATA","FORMULAS","VISUAL"],"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].spreadsheetMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `DATA`: Cell values, merges, and formats.\n- `FORMULAS`: Formula expressions and their computed results.\n- `VISUAL`: A rendered image of the sheet.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].spreadsheetMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"visibleCells":{"description":"Optional. The range of cells to extract, in A1 notation (e.g. \"A1:D10\").\nIf not set, the full occupied area of the sheet is used.","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].spreadsheetMetadata.visibleCells","typeLabel":"string"},"sheetIndex":{"description":"Optional. The 1-indexed index of the sheet to extract, in workbook order.\nIf not set, all sheets are extracted.","format":"int32","type":"integer","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].spreadsheetMetadata.sheetIndex","typeLabel":"integer\u003cint32>"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].spreadsheetMetadata","typeLabel":"object"},"partMetadata":{"type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].partMetadata.additionalProperties","typeLabel":"any"},"description":"Custom metadata associated with the Part.\nAgents using genai.Part as content representation may need to keep track\nof the additional information. For example it can be name of a file/source\nfrom which the Part originates or a way to multiplex multiple Part streams.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].partMetadata","typeLabel":"object"},"text":{"type":"string","description":"Inline text.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].text","typeLabel":"string"},"thoughtSignature":{"format":"byte","description":"Optional. An opaque signature for the thought so it can be reused in subsequent\nrequests.","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].thoughtSignature","typeLabel":"string\u003cbyte>"},"codeExecutionResult":{"type":"object","description":"Result of executing the `ExecutableCode`.","required":["outcome"],"properties":{"outcome":{"description":"Required. Outcome of the code execution.\n\n**Allowed values:**\n- `OUTCOME_UNSPECIFIED`: Unspecified status. This value should not be used.\n- `OUTCOME_OK`: Code execution completed successfully. `output` contains the stdout, if any.\n- `OUTCOME_FAILED`: Code execution failed. `output` contains the stderr and stdout, if any.\n- `OUTCOME_DEADLINE_EXCEEDED`: Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present.","enum":["OUTCOME_UNSPECIFIED","OUTCOME_OK","OUTCOME_FAILED","OUTCOME_DEADLINE_EXCEEDED"],"type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].codeExecutionResult.outcome","typeLabel":"enum\u003cstring>"},"id":{"description":"Optional. The identifier of the `ExecutableCode` part this result is for.\nOnly populated if the corresponding `ExecutableCode` has an id.","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].codeExecutionResult.id","typeLabel":"string"},"output":{"type":"string","description":"Optional. Contains stdout when code execution is successful, stderr or other\ndescription otherwise.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].codeExecutionResult.output","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].codeExecutionResult","typeLabel":"object"},"thought":{"description":"Optional. Indicates if the part is thought from the model.","type":"boolean","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].thought","typeLabel":"boolean"},"functionCall":{"type":"object","description":"A predicted `FunctionCall` returned from the model that contains\na string representing the `FunctionDeclaration.name` with the\narguments and their values.","required":["name"],"properties":{"name":{"description":"Required. The name of the function to call.\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum\nlength of 128.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionCall.name","typeLabel":"string"},"args":{"type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionCall.args.additionalProperties","typeLabel":"any"},"description":"Optional. The function parameters and values in JSON object format.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionCall.args","typeLabel":"object"},"id":{"description":"Optional. Unique identifier of the function call. If populated, the client to\nexecute the `function_call` and return the response with the matching `id`.","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionCall.id","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionCall","typeLabel":"object"},"mediaProcessing":{"type":"string","description":"Optional. How the model processes this part's media for understanding.\nOnly meaningful for video parts (`inline_data` or `file_data` with video\nmime). Non-video parts ignore this field.\n\n**Allowed values:**\n- `MEDIA_PROCESSING_UNSPECIFIED`: Defaults to model-specific processing.\n- `STATIC`: Fixed-rate frame extraction. All frames placed in context.\n- `AGENTIC`: Model-driven dynamic navigation. Recommended for most use cases.","enum":["MEDIA_PROCESSING_UNSPECIFIED","STATIC","AGENTIC"],"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].mediaProcessing","typeLabel":"enum\u003cstring>"},"videoMetadata":{"type":"object","description":"Optional. Video metadata. The metadata should only be specified while the video\ndata is presented in inline_data or file_data.","properties":{"fps":{"description":"Optional. The frame rate of the video sent to the model. If not specified, the\ndefault value will be 1.0.\nThe fps range is (0.0, 24.0].","format":"double","type":"number","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].videoMetadata.fps","typeLabel":"number\u003cdouble>"},"startOffset":{"description":"Optional. The start offset of the video.","format":"google-duration","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].videoMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"},"contentLayers":{"items":{"enum":["CONTENT_LAYER_UNSPECIFIED","FRAMES","AUDIO","TRANSCRIPT"],"type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].videoMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [FRAMES, AUDIO].\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `FRAMES`: Extract video frames.\n- `AUDIO`: Extract audio track.\n- `TRANSCRIPT`: Extract audio transcript.","type":"array","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].videoMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"endOffset":{"type":"string","description":"Optional. The end offset of the video.","format":"google-duration","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].videoMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].videoMetadata","typeLabel":"object"},"fileData":{"type":"object","description":"URI based data.","required":["fileUri"],"properties":{"fileUri":{"description":"Required. URI.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].fileData.fileUri","typeLabel":"string"},"displayName":{"description":"Optional. Specifies the name used to refer to this file to the model (e.g.\n\"my_file.pdf\"). Used as the file reference identifier when\n`verbalization_mode` is set to `REFERENCE_ONLY`.","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].fileData.displayName","typeLabel":"string"},"mimeType":{"type":"string","description":"Optional. The IANA standard MIME type of the source data.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].fileData.mimeType","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].fileData","typeLabel":"object"},"mediaResolution":{"type":"object","description":"Optional. Media resolution for the input media.","properties":{"level":{"enum":["MEDIA_RESOLUTION_UNSPECIFIED","MEDIA_RESOLUTION_LOW","MEDIA_RESOLUTION_MEDIUM","MEDIA_RESOLUTION_HIGH","MEDIA_RESOLUTION_ULTRA_HIGH"],"type":"string","description":"The tokenization quality used for given media.\n for Gemini API support .\n\n**Allowed values:**\n- `MEDIA_RESOLUTION_UNSPECIFIED`: Media resolution has not been set.\n- `MEDIA_RESOLUTION_LOW`: Media resolution set to low.\n- `MEDIA_RESOLUTION_MEDIUM`: Media resolution set to medium.\n- `MEDIA_RESOLUTION_HIGH`: Media resolution set to high.\n- `MEDIA_RESOLUTION_ULTRA_HIGH`: Media resolution set to ultra high.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].mediaResolution.level","typeLabel":"enum\u003cstring>"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].mediaResolution","typeLabel":"object"},"documentMetadata":{"type":"object","description":"Optional. Document metadata. The metadata should only be specified while the\ndocument data is presented in inline_data or file_data.","properties":{"startPage":{"type":"integer","format":"int32","description":"Optional. 1-indexed inclusive start page.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].documentMetadata.startPage","typeLabel":"integer\u003cint32>"},"endPage":{"type":"integer","description":"Optional. 1-indexed inclusive end page.","format":"int32","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].documentMetadata.endPage","typeLabel":"integer\u003cint32>"},"contentLayers":{"type":"array","description":"Optional. Content layers to return.\nIf empty, defaults to [PAGE_IMAGE] when DocumentMetadata is set. When\nDocumentMetadata is not set, default document processing is used (for\nexample, page images for PDFs).\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `PAGE_IMAGE`: Rendered page images.\n- `PAGE_TEXT`: Extracted page text.","items":{"enum":["CONTENT_LAYER_UNSPECIFIED","PAGE_IMAGE","PAGE_TEXT"],"type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].documentMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].documentMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].documentMetadata","typeLabel":"object"},"functionResponse":{"type":"object","description":"The result output of a `FunctionCall` that contains a string\nrepresenting the `FunctionDeclaration.name` and a structured JSON\nobject containing any output from the function is used as context to\nthe model.","required":["name","response"],"properties":{"response":{"description":"Required. The function response in JSON object format.\nCallers can use any keys of their choice that fit the function's syntax\nto return the function output, e.g. \"output\", \"result\", etc.\nIn particular, if the function call failed to execute, the response can\nhave an \"error\" key to return error details to the model.\n\nMultimedia can be included by using a subobject containing a single \"$ref\"\nkey whose value is the `inline_data.display_name` or\n`file_data.display_name` of a `FunctionResponsePart` holding the\nmultimedia. See [Multimodal function\nresponses](https://aistudio.google.com/docs/function-calling#multimodal).","type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.response.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.response","typeLabel":"object"},"name":{"description":"Required. The name of the function to call.\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum\nlength of 128.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.name","typeLabel":"string"},"willContinue":{"description":"Optional. Signals that function call continues, and more responses will be\nreturned, turning the function call into a generator.\nIs only applicable to NON_BLOCKING function calls, is ignored otherwise.\nIf set to false, future responses will not be considered.\nIt is allowed to return empty `response` with `will_continue=False` to\nsignal that the function call is finished. This may still trigger the model\ngeneration. To avoid triggering the generation and finish the function\ncall, additionally set `scheduling` to `SILENT`.","type":"boolean","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.willContinue","typeLabel":"boolean"},"parts":{"type":"array","items":{"type":"object","description":"A datatype containing media that is part of a `FunctionResponse` message.\n\nA `FunctionResponsePart` consists of data which has an associated datatype. A\n`FunctionResponsePart` can only contain one of the accepted types in\n`FunctionResponsePart.data`.\n\nMedia can be passed as raw bytes (`inline_data`) or by URI (`file_data`) with\nan IANA MIME type identifying the type and subtype of the media.","properties":{"documentMetadata":{"type":"object","description":"Optional. Document metadata. The metadata should only be specified while the\ndocument data is presented in inline_data or file_data.","properties":{"startPage":{"type":"integer","format":"int32","description":"Optional. 1-indexed inclusive start page.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.startPage","typeLabel":"integer\u003cint32>"},"endPage":{"type":"integer","description":"Optional. 1-indexed inclusive end page.","format":"int32","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.endPage","typeLabel":"integer\u003cint32>"},"contentLayers":{"type":"array","description":"Optional. Content layers to return.\nIf empty, defaults to [PAGE_IMAGE] when DocumentMetadata is set. When\nDocumentMetadata is not set, default document processing is used (for\nexample, page images for PDFs).\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `PAGE_IMAGE`: Rendered page images.\n- `PAGE_TEXT`: Extracted page text.","items":{"enum":["CONTENT_LAYER_UNSPECIFIED","PAGE_IMAGE","PAGE_TEXT"],"type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata","typeLabel":"object"},"mediaProcessing":{"type":"string","description":"Optional. How the model processes this part's media for understanding.\nOnly meaningful for video parts (`inline_data` or `file_data` with video\nmime). Non-video parts ignore this field.\n\n**Allowed values:**\n- `MEDIA_PROCESSING_UNSPECIFIED`: Defaults to model-specific processing.\n- `STATIC`: Fixed-rate frame extraction. All frames placed in context.\n- `AGENTIC`: Model-driven dynamic navigation. Recommended for most use cases.","enum":["MEDIA_PROCESSING_UNSPECIFIED","STATIC","AGENTIC"],"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaProcessing","typeLabel":"enum\u003cstring>"},"mediaResolution":{"type":"object","description":"Optional. Media resolution for the input media.","properties":{"level":{"enum":["MEDIA_RESOLUTION_UNSPECIFIED","MEDIA_RESOLUTION_LOW","MEDIA_RESOLUTION_MEDIUM","MEDIA_RESOLUTION_HIGH","MEDIA_RESOLUTION_ULTRA_HIGH"],"type":"string","description":"The tokenization quality used for given media.\n for Gemini API support .\n\n**Allowed values:**\n- `MEDIA_RESOLUTION_UNSPECIFIED`: Media resolution has not been set.\n- `MEDIA_RESOLUTION_LOW`: Media resolution set to low.\n- `MEDIA_RESOLUTION_MEDIUM`: Media resolution set to medium.\n- `MEDIA_RESOLUTION_HIGH`: Media resolution set to high.\n- `MEDIA_RESOLUTION_ULTRA_HIGH`: Media resolution set to ultra high.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaResolution.level","typeLabel":"enum\u003cstring>"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaResolution","typeLabel":"object"},"spreadsheetMetadata":{"type":"object","description":"Optional. Spreadsheet metadata. The metadata should only be specified while the\nspreadsheet data is presented in inline_data or file_data.","properties":{"contentLayers":{"type":"array","items":{"type":"string","enum":["CONTENT_LAYER_UNSPECIFIED","DATA","FORMULAS","VISUAL"],"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `DATA`: Cell values, merges, and formats.\n- `FORMULAS`: Formula expressions and their computed results.\n- `VISUAL`: A rendered image of the sheet.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"visibleCells":{"description":"Optional. The range of cells to extract, in A1 notation (e.g. \"A1:D10\").\nIf not set, the full occupied area of the sheet is used.","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.visibleCells","typeLabel":"string"},"sheetIndex":{"description":"Optional. The 1-indexed index of the sheet to extract, in workbook order.\nIf not set, all sheets are extracted.","format":"int32","type":"integer","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.sheetIndex","typeLabel":"integer\u003cint32>"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata","typeLabel":"object"},"videoMetadata":{"type":"object","description":"Optional. Video metadata. The metadata should only be specified while the video\ndata is presented in inline_data or file_data.","properties":{"fps":{"description":"Optional. The frame rate of the video sent to the model. If not specified, the\ndefault value will be 1.0.\nThe fps range is (0.0, 24.0].","format":"double","type":"number","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.fps","typeLabel":"number\u003cdouble>"},"startOffset":{"description":"Optional. The start offset of the video.","format":"google-duration","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"},"contentLayers":{"items":{"enum":["CONTENT_LAYER_UNSPECIFIED","FRAMES","AUDIO","TRANSCRIPT"],"type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [FRAMES, AUDIO].\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `FRAMES`: Extract video frames.\n- `AUDIO`: Extract audio track.\n- `TRANSCRIPT`: Extract audio transcript.","type":"array","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"endOffset":{"type":"string","description":"Optional. The end offset of the video.","format":"google-duration","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata","typeLabel":"object"},"fileData":{"type":"object","description":"URI based data.","required":["fileUri"],"properties":{"fileUri":{"description":"Required. URI.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.fileUri","typeLabel":"string"},"displayName":{"description":"Optional. Display name of the file.\nUsed to provide a label or filename to distinguish file data, and to\nreference the file from `FunctionResponse.response` (for example, via\n`{\"$ref\": \"DISPLAY_NAME\"}`).","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.displayName","typeLabel":"string"},"mimeType":{"description":"The IANA standard MIME type of the source data.\nIf an unsupported MIME type is provided, an error will be returned. For a\ncomplete list of supported types, see [Multimodal function\nresponses](https://aistudio.google.com/docs/function-calling#multimodal)\nand [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.mimeType","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData","typeLabel":"object"},"audioMetadata":{"type":"object","description":"Optional. Audio metadata. The metadata should only be specified while the audio\ndata is presented in inline_data or file_data.","properties":{"endOffset":{"description":"Optional. The end offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. The start offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata","typeLabel":"object"},"inlineData":{"type":"object","description":"Inline media bytes.","properties":{"data":{"description":"Raw bytes for media formats.","type":"string","format":"byte","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"},"displayName":{"description":"Optional. Display name of the blob.\nUsed to provide a label or filename to distinguish blobs, and to reference\nthe blob from `FunctionResponse.response` (for example, via\n`{\"$ref\": \"DISPLAY_NAME\"}`).","type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.displayName","typeLabel":"string"},"mimeType":{"type":"string","description":"The IANA standard MIME type of the source data.\nExamples:\n - image/png\n - image/jpeg\nIf an unsupported MIME type is provided, an error will be returned. For a\ncomplete list of supported types, see [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData","typeLabel":"object"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX]","typeLabel":"object"},"description":"Optional. Ordered `Parts` that constitute a function response. Parts may have\ndifferent IANA MIME types.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts","typeLabel":"object[]"},"id":{"type":"string","description":"Optional. The identifier of the function call this response is for. Populated by the\nclient to match the corresponding function call `id`.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.id","typeLabel":"string"},"scheduling":{"description":"Optional. Specifies how the response should be scheduled in the conversation.\nOnly applicable to NON_BLOCKING function calls, is ignored otherwise.\nDefaults to WHEN_IDLE.\n\n**Allowed values:**\n- `SCHEDULING_UNSPECIFIED`: This value is unused.\n- `SILENT`: Only add the result to the conversation context, do not interrupt or trigger generation.\n- `WHEN_IDLE`: Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.\n- `INTERRUPT`: Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.","enum":["SCHEDULING_UNSPECIFIED","SILENT","WHEN_IDLE","INTERRUPT"],"type":"string","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse.scheduling","typeLabel":"enum\u003cstring>"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].functionResponse","typeLabel":"object"},"toolCall":{"type":"object","description":"Server-side tool call. This field is populated when the model\npredicts a tool invocation that should be executed on the server.\nThe client is expected to echo this message back to the API.","required":["toolType"],"properties":{"toolType":{"type":"string","description":"Required. The type of tool that was called.","enum":["TOOL_TYPE_UNSPECIFIED","GOOGLE_SEARCH_WEB","GOOGLE_SEARCH_IMAGE","URL_CONTEXT","GOOGLE_MAPS","FILE_SEARCH","MEDIA_PROCESSING"],"isRequired":true,"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolCall.toolType","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Optional. Unique identifier of the tool call.\nThe server returns the tool response with the matching `id`.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolCall.id","typeLabel":"string"},"args":{"additionalProperties":{"description":"Properties of the object.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolCall.args.additionalProperties","typeLabel":"any"},"description":"Optional. The tool call arguments.\nExample: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}","type":"object","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolCall.args","typeLabel":"object"},"toolName":{"type":"string","description":"Optional. The name of the tool that was called.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolCall.toolName","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX].toolCall","typeLabel":"object"}},"description":"A datatype containing media that is part of a multi-part `Content` message.\n\nA `Part` consists of data which has an associated datatype. A `Part` can only\ncontain one of the accepted types in `Part.data`.\n\nA `Part` must have a fixed IANA MIME type identifying the type and subtype\nof the media if the `inline_data` field is filled with raw bytes.","uniqueKey":"candidates.items.[INDEX].content.parts.items.[INDEX]","typeLabel":"object"},"description":"Ordered `Parts` that constitute a single message. Parts may have different\nMIME types.","type":"array","uniqueKey":"candidates.items.[INDEX].content.parts","typeLabel":"object[]"},"role":{"description":"Optional. The producer of the content. Must be either 'user' or 'model'.\n\nUseful to set for multi-turn conversations, otherwise can be left blank\nor unset.","type":"string","uniqueKey":"candidates.items.[INDEX].content.role","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].content","typeLabel":"object"},"finishMessage":{"readOnly":true,"type":"string","description":"Optional. Output only. Details the reason why the model stopped generating tokens.\nThis is populated only when `finish_reason` is set.","uniqueKey":"candidates.items.[INDEX].finishMessage","typeLabel":"string"},"avgLogprobs":{"type":"number","description":"Output only. Average log probability score of the candidate.","format":"double","readOnly":true,"uniqueKey":"candidates.items.[INDEX].avgLogprobs","typeLabel":"number\u003cdouble>"},"groundingMetadata":{"type":"object","description":"Output only. Grounding metadata for the candidate.\n\nThis field is populated for `GenerateContent` calls.","properties":{"googleMapsWidgetContextToken":{"description":"Optional. Resource name of the Google Maps widget context token that can be used\nwith the PlacesContextElement widget in order to render contextual data.\nOnly populated in the case that grounding with Google Maps is enabled.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.googleMapsWidgetContextToken","typeLabel":"string"},"searchEntryPoint":{"type":"object","description":"Optional. Google search entry for the following-up web searches.","properties":{"sdkBlob":{"type":"string","format":"byte","description":"Optional. Base64 encoded JSON representing array of tuple.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.searchEntryPoint.sdkBlob","typeLabel":"string\u003cbyte>"},"renderedContent":{"description":"Optional. Web content snippet that can be embedded in a web page or an app webview.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.searchEntryPoint.renderedContent","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.searchEntryPoint","typeLabel":"object"},"groundingChunks":{"items":{"description":"A `GroundingChunk` represents a segment of supporting evidence that grounds\nthe model's response. It can be a chunk from the web, a retrieved context\nfrom a file, or information from Google Maps.","type":"object","properties":{"image":{"type":"object","description":"Optional. Grounding chunk from image search.","properties":{"sourceUri":{"type":"string","description":"The web page URI for attribution.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].image.sourceUri","typeLabel":"string"},"imageUri":{"type":"string","description":"The image asset URL.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].image.imageUri","typeLabel":"string"},"title":{"description":"The title of the web page that the image is from.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].image.title","typeLabel":"string"},"domain":{"description":"The root domain of the web page that the image is from, e.g.\n\"example.com\".","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].image.domain","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].image","typeLabel":"object"},"maps":{"type":"object","description":"Optional. Grounding chunk from Google Maps.","properties":{"placeAnswerSources":{"type":"object","description":"Sources that provide answers about the features of a given place in\nGoogle Maps.","properties":{"reviewSnippets":{"items":{"properties":{"title":{"description":"Title of the review.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps.placeAnswerSources.reviewSnippets.items.[INDEX].title","typeLabel":"string"},"googleMapsUri":{"description":"A link that corresponds to the user review on Google Maps.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps.placeAnswerSources.reviewSnippets.items.[INDEX].googleMapsUri","typeLabel":"string"},"reviewId":{"description":"The ID of the review snippet.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps.placeAnswerSources.reviewSnippets.items.[INDEX].reviewId","typeLabel":"string"}},"type":"object","description":"Encapsulates a snippet of a user review that answers a question about\nthe features of a specific place in Google Maps.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps.placeAnswerSources.reviewSnippets.items.[INDEX]","typeLabel":"object"},"description":"Snippets of reviews that are used to generate answers about the\nfeatures of a given place in Google Maps.","type":"array","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps.placeAnswerSources.reviewSnippets","typeLabel":"object[]"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps.placeAnswerSources","typeLabel":"object"},"placeId":{"type":"string","description":"The ID of the place, in `places/{place_id}` format. A user can use this\nID to look up that place.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps.placeId","typeLabel":"string"},"text":{"description":"Text description of the place answer.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps.text","typeLabel":"string"},"uri":{"type":"string","description":"URI reference of the place.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps.uri","typeLabel":"string"},"title":{"type":"string","description":"Title of the place.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps.title","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].maps","typeLabel":"object"},"retrievedContext":{"type":"object","description":"Optional. Grounding chunk from context retrieved by the file search tool.","properties":{"title":{"type":"string","description":"Optional. Title of the document.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.title","typeLabel":"string"},"fileSearchStore":{"type":"string","description":"Optional. Name of the `FileSearchStore` containing the document.\nExample: `fileSearchStores/123`","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.fileSearchStore","typeLabel":"string"},"mediaId":{"description":"Optional. The media blob resource name for multimodal file search results.\nFormat: fileSearchStores/{file_search_store_id}/media/{blob_id}","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.mediaId","typeLabel":"string"},"text":{"description":"Optional. Text of the chunk.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.text","typeLabel":"string"},"pageNumber":{"format":"int32","type":"integer","description":"Optional. Page number of the retrieved context, if applicable.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.pageNumber","typeLabel":"integer\u003cint32>"},"uri":{"type":"string","description":"Optional. URI reference of the semantic retrieval document.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.uri","typeLabel":"string"},"customMetadata":{"items":{"type":"object","description":"User provided metadata about the GroundingFact.","properties":{"numericValue":{"format":"float","type":"number","description":"Optional. The numeric value of the metadata.\nThe expected range for this value depends on the specific `key` used.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.customMetadata.items.[INDEX].numericValue","typeLabel":"number\u003cfloat>"},"key":{"type":"string","description":"The key of the metadata.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.customMetadata.items.[INDEX].key","typeLabel":"string"},"stringListValue":{"type":"object","description":"Optional. A list of string values for the metadata.","properties":{"values":{"type":"array","items":{"type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.customMetadata.items.[INDEX].stringListValue.values.items.[INDEX]","typeLabel":"string"},"description":"The string values of the list.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.customMetadata.items.[INDEX].stringListValue.values","typeLabel":"string[]"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.customMetadata.items.[INDEX].stringListValue","typeLabel":"object"},"stringValue":{"description":"Optional. The string value of the metadata.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.customMetadata.items.[INDEX].stringValue","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.customMetadata.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Optional. User-provided metadata about the retrieved context.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext.customMetadata","typeLabel":"object[]"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].retrievedContext","typeLabel":"object"},"web":{"type":"object","description":"Grounding chunk from the web.","properties":{"uri":{"readOnly":true,"type":"string","description":"Output only. URI reference of the chunk.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].web.uri","typeLabel":"string"},"title":{"readOnly":true,"description":"Output only. Title of the chunk.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].web.title","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX].web","typeLabel":"object"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks.items.[INDEX]","typeLabel":"object"},"description":"List of supporting references retrieved from specified grounding source.\nWhen streaming, this only contains the grounding chunks that have not been\nincluded in the grounding metadata of previous responses.","type":"array","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingChunks","typeLabel":"object[]"},"webSearchQueries":{"description":"Web search queries for the following-up web search.","items":{"type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.webSearchQueries.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"candidates.items.[INDEX].groundingMetadata.webSearchQueries","typeLabel":"string[]"},"imageSearchQueries":{"type":"array","description":"Image search queries used for grounding.","items":{"type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.imageSearchQueries.items.[INDEX]","typeLabel":"string"},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.imageSearchQueries","typeLabel":"string[]"},"groundingSupports":{"description":"List of grounding support.","items":{"properties":{"confidenceScores":{"description":"Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the\nmost confident. This list must have the same size as the\ngrounding_chunk_indices.","type":"array","items":{"type":"number","format":"float","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].confidenceScores.items.[INDEX]","typeLabel":"number\u003cfloat>"},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].confidenceScores","typeLabel":"number\u003cfloat>[]"},"segment":{"type":"object","description":"Segment of the content this support belongs to.","properties":{"endIndex":{"type":"integer","description":"End index in the given Part, measured in bytes. Offset from the start of\nthe Part, exclusive, starting at zero.","format":"int32","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].segment.endIndex","typeLabel":"integer\u003cint32>"},"partIndex":{"type":"integer","description":"The index of a Part object within its parent Content object.","format":"int32","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].segment.partIndex","typeLabel":"integer\u003cint32>"},"startIndex":{"type":"integer","format":"int32","description":"Start index in the given Part, measured in bytes. Offset from the start of\nthe Part, inclusive, starting at zero.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].segment.startIndex","typeLabel":"integer\u003cint32>"},"text":{"description":"The text corresponding to the segment from the response.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].segment.text","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].segment","typeLabel":"object"},"renderedParts":{"type":"array","items":{"type":"integer","format":"int32","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].renderedParts.items.[INDEX]","typeLabel":"integer\u003cint32>"},"description":"Output only. Indices into the `parts` field of the candidate's content. These indices\nspecify which rendered parts are associated with this support source.","readOnly":true,"uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].renderedParts","typeLabel":"integer\u003cint32>[]"},"groundingChunkIndices":{"items":{"type":"integer","format":"int32","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].groundingChunkIndices.items.[INDEX]","typeLabel":"integer\u003cint32>"},"type":"array","description":"Optional. A list of indices (into 'grounding_chunk' in\n`response.candidate.grounding_metadata`) specifying the citations\nassociated with the claim. For instance [1,3,4] means that\ngrounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the\nretrieved content attributed to the claim. If the response is streaming,\nthe grounding_chunk_indices refer to the indices across all responses.\nIt is the client's responsibility to accumulate the grounding chunks from\nall responses (while maintaining the same order).","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX].groundingChunkIndices","typeLabel":"integer\u003cint32>[]"}},"type":"object","description":"Grounding support.","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"candidates.items.[INDEX].groundingMetadata.groundingSupports","typeLabel":"object[]"},"retrievalMetadata":{"type":"object","description":"Metadata related to retrieval in the grounding flow.","properties":{"googleSearchDynamicRetrievalScore":{"type":"number","description":"Optional. Score indicating how likely information from google search could help\nanswer the prompt. The score is in the range [0, 1], where 0 is the least\nlikely and 1 is the most likely. This score is only populated when\ngoogle search grounding and dynamic retrieval is enabled. It will be\ncompared to the threshold to determine whether to trigger google search.","format":"float","uniqueKey":"candidates.items.[INDEX].groundingMetadata.retrievalMetadata.googleSearchDynamicRetrievalScore","typeLabel":"number\u003cfloat>"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata.retrievalMetadata","typeLabel":"object"}},"uniqueKey":"candidates.items.[INDEX].groundingMetadata","typeLabel":"object"},"logprobsResult":{"type":"object","description":"Output only. Log-likelihood scores for the response tokens and top tokens","properties":{"topCandidates":{"type":"array","description":"Length = total number of decoding steps.","items":{"type":"object","description":"Candidates with top log probabilities at each decoding step.","properties":{"candidates":{"description":"Sorted by log probability in descending order.","type":"array","items":{"properties":{"logProbability":{"type":"number","format":"float","description":"The candidate's log probability.","uniqueKey":"candidates.items.[INDEX].logprobsResult.topCandidates.items.[INDEX].candidates.items.[INDEX].logProbability","typeLabel":"number\u003cfloat>"},"tokenId":{"format":"int32","description":"The candidate’s token id value.","type":"integer","uniqueKey":"candidates.items.[INDEX].logprobsResult.topCandidates.items.[INDEX].candidates.items.[INDEX].tokenId","typeLabel":"integer\u003cint32>"},"token":{"description":"The candidate’s token string value.","type":"string","uniqueKey":"candidates.items.[INDEX].logprobsResult.topCandidates.items.[INDEX].candidates.items.[INDEX].token","typeLabel":"string"}},"description":"Candidate for the logprobs token and score.","type":"object","uniqueKey":"candidates.items.[INDEX].logprobsResult.topCandidates.items.[INDEX].candidates.items.[INDEX]","typeLabel":"object"},"uniqueKey":"candidates.items.[INDEX].logprobsResult.topCandidates.items.[INDEX].candidates","typeLabel":"object[]"}},"uniqueKey":"candidates.items.[INDEX].logprobsResult.topCandidates.items.[INDEX]","typeLabel":"object"},"uniqueKey":"candidates.items.[INDEX].logprobsResult.topCandidates","typeLabel":"object[]"},"chosenCandidates":{"type":"array","items":{"properties":{"logProbability":{"type":"number","format":"float","description":"The candidate's log probability.","uniqueKey":"candidates.items.[INDEX].logprobsResult.chosenCandidates.items.[INDEX].logProbability","typeLabel":"number\u003cfloat>"},"tokenId":{"format":"int32","description":"The candidate’s token id value.","type":"integer","uniqueKey":"candidates.items.[INDEX].logprobsResult.chosenCandidates.items.[INDEX].tokenId","typeLabel":"integer\u003cint32>"},"token":{"description":"The candidate’s token string value.","type":"string","uniqueKey":"candidates.items.[INDEX].logprobsResult.chosenCandidates.items.[INDEX].token","typeLabel":"string"}},"description":"Candidate for the logprobs token and score.","type":"object","uniqueKey":"candidates.items.[INDEX].logprobsResult.chosenCandidates.items.[INDEX]","typeLabel":"object"},"description":"Length = total number of decoding steps.\nThe chosen candidates may or may not be in top_candidates.","uniqueKey":"candidates.items.[INDEX].logprobsResult.chosenCandidates","typeLabel":"object[]"},"logProbabilitySum":{"description":"Sum of log probabilities for all tokens.","format":"float","type":"number","uniqueKey":"candidates.items.[INDEX].logprobsResult.logProbabilitySum","typeLabel":"number\u003cfloat>"}},"uniqueKey":"candidates.items.[INDEX].logprobsResult","typeLabel":"object"},"finishReason":{"enum":["FINISH_REASON_UNSPECIFIED","STOP","MAX_TOKENS","SAFETY","RECITATION","LANGUAGE","OTHER","BLOCKLIST","PROHIBITED_CONTENT","SPII","MALFORMED_FUNCTION_CALL","IMAGE_SAFETY","IMAGE_PROHIBITED_CONTENT","IMAGE_OTHER","NO_IMAGE","IMAGE_RECITATION","UNEXPECTED_TOOL_CALL","TOO_MANY_TOOL_CALLS","MISSING_THOUGHT_SIGNATURE","MALFORMED_RESPONSE","ESCALATION","PUP_LIMITED_DISABLED","CONTINUATION"],"description":"Optional. Output only. The reason why the model stopped generating tokens.\n\nIf empty, the model has not stopped generating tokens.\n\n**Allowed values:**\n- `FINISH_REASON_UNSPECIFIED`: Default value. This value is unused.\n- `STOP`: Natural stop point of the model or provided stop sequence.\n- `MAX_TOKENS`: The maximum number of tokens as specified in the request was reached.\n- `SAFETY`: The response candidate content was flagged for safety reasons.\n- `RECITATION`: The response candidate content was flagged for recitation reasons.\n- `LANGUAGE`: The response candidate content was flagged for using an unsupported language.\n- `OTHER`: Unknown reason.\n- `BLOCKLIST`: Token generation stopped because the content contains forbidden terms.\n- `PROHIBITED_CONTENT`: Token generation stopped for potentially containing prohibited content.\n- `SPII`: Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).\n- `MALFORMED_FUNCTION_CALL`: The function call generated by the model is invalid.\n- `IMAGE_SAFETY`: Token generation stopped because generated images contain safety violations.\n- `IMAGE_PROHIBITED_CONTENT`: Image generation stopped because generated images has other prohibited content.\n- `IMAGE_OTHER`: Image generation stopped because of other miscellaneous issue.\n- `NO_IMAGE`: The model was expected to generate an image, but none was generated.\n- `IMAGE_RECITATION`: Image generation stopped due to recitation.\n- `UNEXPECTED_TOOL_CALL`: Model generated a tool call but no tools were enabled in the request.\n- `TOO_MANY_TOOL_CALLS`: Model called too many tools consecutively, thus the system exited execution.\n- `MISSING_THOUGHT_SIGNATURE`: Request has at least one thought signature missing.\n- `MALFORMED_RESPONSE`: Finished due to malformed response.\n- `ESCALATION`: Request was filtered by an escalation rule.\n- `PUP_LIMITED_DISABLED`: Indicates that token generation stopped because the user account is limited or disabled due to Prohibited Use Policy (PUP) violations.\n- `CONTINUATION`: Token generation was stopped because the response reached the per-request token limit, but generation is not yet complete. The model response can be continued via a subsequent request using the returned `continuation_token`. Note, the `max_output_tokens` is cumulative across continuation hops and must be monotonically increased or omitted.","readOnly":true,"type":"string","uniqueKey":"candidates.items.[INDEX].finishReason","typeLabel":"enum\u003cstring>"},"tokenCount":{"format":"int32","readOnly":true,"description":"Output only. Token count for this candidate.","type":"integer","uniqueKey":"candidates.items.[INDEX].tokenCount","typeLabel":"integer\u003cint32>"},"urlContextMetadata":{"type":"object","description":"Output only. Metadata related to url context retrieval tool.","properties":{"urlMetadata":{"type":"array","items":{"properties":{"urlRetrievalStatus":{"description":"Status of the url retrieval.\n\n**Allowed values:**\n- `URL_RETRIEVAL_STATUS_UNSPECIFIED`: Default value. This value is unused.\n- `URL_RETRIEVAL_STATUS_SUCCESS`: Url retrieval is successful.\n- `URL_RETRIEVAL_STATUS_ERROR`: Url retrieval is failed due to error.\n- `URL_RETRIEVAL_STATUS_PAYWALL`: Url retrieval is failed because the content is behind paywall.\n- `URL_RETRIEVAL_STATUS_UNSAFE`: Url retrieval is failed because the content is unsafe.","type":"string","enum":["URL_RETRIEVAL_STATUS_UNSPECIFIED","URL_RETRIEVAL_STATUS_SUCCESS","URL_RETRIEVAL_STATUS_ERROR","URL_RETRIEVAL_STATUS_PAYWALL","URL_RETRIEVAL_STATUS_UNSAFE"],"uniqueKey":"candidates.items.[INDEX].urlContextMetadata.urlMetadata.items.[INDEX].urlRetrievalStatus","typeLabel":"enum\u003cstring>"},"retrievedUrl":{"type":"string","description":"Retrieved url by the tool.","uniqueKey":"candidates.items.[INDEX].urlContextMetadata.urlMetadata.items.[INDEX].retrievedUrl","typeLabel":"string"}},"description":"Context of the a single url retrieval.","type":"object","uniqueKey":"candidates.items.[INDEX].urlContextMetadata.urlMetadata.items.[INDEX]","typeLabel":"object"},"description":"List of url context.","uniqueKey":"candidates.items.[INDEX].urlContextMetadata.urlMetadata","typeLabel":"object[]"}},"uniqueKey":"candidates.items.[INDEX].urlContextMetadata","typeLabel":"object"},"groundingAttributions":{"description":"Output only. Attribution information for sources that contributed to a grounded answer.\n\nThis field is populated for `GenerateAnswer` calls.","type":"array","readOnly":true,"items":{"description":"Attribution for a source that contributed to an answer.","type":"object","properties":{"sourceId":{"type":"object","description":"Output only. Identifier for the source contributing to this attribution.","properties":{"semanticRetrieverChunk":{"type":"object","description":"Identifier for a `Chunk` fetched via Semantic Retriever.","properties":{"source":{"description":"Output only. Name of the source matching the request's\n`SemanticRetrieverConfig.source`. Example: `corpora/123` or\n`corpora/123/documents/abc`","type":"string","readOnly":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].sourceId.semanticRetrieverChunk.source","typeLabel":"string"},"chunk":{"readOnly":true,"type":"string","description":"Output only. Name of the `Chunk` containing the attributed text.\nExample: `corpora/123/documents/abc/chunks/xyz`","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].sourceId.semanticRetrieverChunk.chunk","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].sourceId.semanticRetrieverChunk","typeLabel":"object"},"groundingPassage":{"type":"object","description":"Identifier for an inline passage.","properties":{"passageId":{"description":"Output only. ID of the passage matching the `GenerateAnswerRequest`'s\n`GroundingPassage.id`.","type":"string","readOnly":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].sourceId.groundingPassage.passageId","typeLabel":"string"},"partIndex":{"type":"integer","readOnly":true,"description":"Output only. Index of the part within the `GenerateAnswerRequest`'s\n`GroundingPassage.content`.","format":"int32","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].sourceId.groundingPassage.partIndex","typeLabel":"integer\u003cint32>"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].sourceId.groundingPassage","typeLabel":"object"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].sourceId","typeLabel":"object"},"content":{"type":"object","description":"Grounding source content that makes up this attribution.","properties":{"parts":{"items":{"type":"object","properties":{"toolResponse":{"type":"object","description":"The output from a server-side `ToolCall` execution. This field is\npopulated by the client with the results of executing the\ncorresponding `ToolCall`.","required":["toolType"],"properties":{"toolType":{"type":"string","description":"Required. The type of tool that was called, matching the `tool_type` in the\ncorresponding `ToolCall`.","enum":["TOOL_TYPE_UNSPECIFIED","GOOGLE_SEARCH_WEB","GOOGLE_SEARCH_IMAGE","URL_CONTEXT","GOOGLE_MAPS","FILE_SEARCH","MEDIA_PROCESSING"],"isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolResponse.toolType","typeLabel":"enum\u003cstring>"},"response":{"type":"object","description":"Optional. The tool response.","additionalProperties":{"description":"Properties of the object.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolResponse.response.additionalProperties","typeLabel":"any"},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolResponse.response","typeLabel":"object"},"id":{"type":"string","description":"Optional. The identifier of the tool call this response is for.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolResponse.id","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolResponse","typeLabel":"object"},"executableCode":{"type":"object","description":"Code generated by the model that is meant to be executed.","required":["language","code"],"properties":{"language":{"type":"string","description":"Required. Programming language of the `code`.\n\n**Allowed values:**\n- `LANGUAGE_UNSPECIFIED`: Unspecified language. This value should not be used.\n- `PYTHON`: Python >= 3.10, with numpy and simpy available. Python is the default language.","enum":["LANGUAGE_UNSPECIFIED","PYTHON"],"isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].executableCode.language","typeLabel":"enum\u003cstring>"},"code":{"description":"Required. The code to be executed.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].executableCode.code","typeLabel":"string"},"id":{"type":"string","description":"Optional. Unique identifier of the `ExecutableCode` part.\nThe server returns the `CodeExecutionResult` with the matching `id`.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].executableCode.id","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].executableCode","typeLabel":"object"},"speechMetadata":{"type":"object","description":"Optional. Metadata applied to text parts to customize how they should be spoken or\nsynthesized, such as specifying speaker identity or speaking style.","properties":{"style":{"type":"string","description":"Optional. Optional style instruction for the speech synthesis.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].speechMetadata.style","typeLabel":"string"},"speaker":{"type":"string","description":"Optional. Optional speaker name for multi-speaker synthesis.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].speechMetadata.speaker","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].speechMetadata","typeLabel":"object"},"audioMetadata":{"type":"object","description":"Optional. Audio metadata. The metadata should only be specified while the audio\ndata is presented in inline_data or file_data.","properties":{"endOffset":{"description":"Optional. The end offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. The start offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioMetadata","typeLabel":"object"},"audioTranscription":{"type":"object","description":"Optional. Audio (input or output) transcription.\nThis is only set when this Part contains audio data.","required":["text"],"properties":{"text":{"type":"string","description":"Required. The transcription text of this audio segment.","isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioTranscription.text","typeLabel":"string"},"words":{"type":"array","items":{"description":"Information about a single recognized word.","properties":{"word":{"description":"Required. Transcript of the word.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioTranscription.words.items.[INDEX].word","typeLabel":"string"},"endOffset":{"type":"string","format":"google-duration","description":"Optional. End offset in time of the word relative to the start of the audio.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioTranscription.words.items.[INDEX].endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. Start offset in time of the word relative to the start of the audio.","format":"google-duration","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioTranscription.words.items.[INDEX].startOffset","typeLabel":"string\u003cgoogle-duration>"}},"required":["word"],"type":"object","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioTranscription.words.items.[INDEX]","typeLabel":"object"},"description":"Optional. Detailed word-level transcriptions and timing details.\nPresent when word_timestamp is set.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioTranscription.words","typeLabel":"object[]"},"speakerLabel":{"type":"string","description":"Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\",\n\"spk_2\"). Present when diarization is set.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioTranscription.speakerLabel","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].audioTranscription","typeLabel":"object"},"inlineData":{"type":"object","description":"Inline media bytes.","properties":{"data":{"description":"Raw bytes for media formats.","type":"string","format":"byte","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"},"mimeType":{"type":"string","description":"The IANA standard MIME type of the source data.\nExamples of supported types:\n- Images: image/png, image/jpeg, image/jpg, image/webp, image/heic,\nimage/heif, image/gif, image/avif\n- Audio: audio/*, video/audio/s16le, video/audio/wav\n- Video: video/*\n- Text: text/plain, text/html, text/css, text/javascript,\ntext/x-typescript, text/csv, text/markdown, text/x-python, text/xml,\ntext/rtf, video/text/timestamp\n- Applications: application/x-javascript, application/x-typescript,\napplication/x-python-code, application/json, application/x-ipynb+json,\napplication/rtf, application/pdf For additional context,\nsee [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"},"displayName":{"description":"Optional. Specifies the name used to refer to this blob to the model (e.g.\n\"my_blob.png\"). Used as the blob reference identifier when\n`verbalization_mode` is set to `REFERENCE_ONLY`.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].inlineData.displayName","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].inlineData","typeLabel":"object"},"spreadsheetMetadata":{"type":"object","description":"Optional. Spreadsheet metadata. The metadata should only be specified while the\nspreadsheet data is presented in inline_data or file_data.","properties":{"contentLayers":{"type":"array","items":{"type":"string","enum":["CONTENT_LAYER_UNSPECIFIED","DATA","FORMULAS","VISUAL"],"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].spreadsheetMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `DATA`: Cell values, merges, and formats.\n- `FORMULAS`: Formula expressions and their computed results.\n- `VISUAL`: A rendered image of the sheet.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].spreadsheetMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"visibleCells":{"description":"Optional. The range of cells to extract, in A1 notation (e.g. \"A1:D10\").\nIf not set, the full occupied area of the sheet is used.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].spreadsheetMetadata.visibleCells","typeLabel":"string"},"sheetIndex":{"description":"Optional. The 1-indexed index of the sheet to extract, in workbook order.\nIf not set, all sheets are extracted.","format":"int32","type":"integer","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].spreadsheetMetadata.sheetIndex","typeLabel":"integer\u003cint32>"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].spreadsheetMetadata","typeLabel":"object"},"partMetadata":{"type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].partMetadata.additionalProperties","typeLabel":"any"},"description":"Custom metadata associated with the Part.\nAgents using genai.Part as content representation may need to keep track\nof the additional information. For example it can be name of a file/source\nfrom which the Part originates or a way to multiplex multiple Part streams.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].partMetadata","typeLabel":"object"},"text":{"type":"string","description":"Inline text.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].text","typeLabel":"string"},"thoughtSignature":{"format":"byte","description":"Optional. An opaque signature for the thought so it can be reused in subsequent\nrequests.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].thoughtSignature","typeLabel":"string\u003cbyte>"},"codeExecutionResult":{"type":"object","description":"Result of executing the `ExecutableCode`.","required":["outcome"],"properties":{"outcome":{"description":"Required. Outcome of the code execution.\n\n**Allowed values:**\n- `OUTCOME_UNSPECIFIED`: Unspecified status. This value should not be used.\n- `OUTCOME_OK`: Code execution completed successfully. `output` contains the stdout, if any.\n- `OUTCOME_FAILED`: Code execution failed. `output` contains the stderr and stdout, if any.\n- `OUTCOME_DEADLINE_EXCEEDED`: Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present.","enum":["OUTCOME_UNSPECIFIED","OUTCOME_OK","OUTCOME_FAILED","OUTCOME_DEADLINE_EXCEEDED"],"type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].codeExecutionResult.outcome","typeLabel":"enum\u003cstring>"},"id":{"description":"Optional. The identifier of the `ExecutableCode` part this result is for.\nOnly populated if the corresponding `ExecutableCode` has an id.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].codeExecutionResult.id","typeLabel":"string"},"output":{"type":"string","description":"Optional. Contains stdout when code execution is successful, stderr or other\ndescription otherwise.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].codeExecutionResult.output","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].codeExecutionResult","typeLabel":"object"},"thought":{"description":"Optional. Indicates if the part is thought from the model.","type":"boolean","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].thought","typeLabel":"boolean"},"functionCall":{"type":"object","description":"A predicted `FunctionCall` returned from the model that contains\na string representing the `FunctionDeclaration.name` with the\narguments and their values.","required":["name"],"properties":{"name":{"description":"Required. The name of the function to call.\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum\nlength of 128.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionCall.name","typeLabel":"string"},"args":{"type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionCall.args.additionalProperties","typeLabel":"any"},"description":"Optional. The function parameters and values in JSON object format.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionCall.args","typeLabel":"object"},"id":{"description":"Optional. Unique identifier of the function call. If populated, the client to\nexecute the `function_call` and return the response with the matching `id`.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionCall.id","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionCall","typeLabel":"object"},"mediaProcessing":{"type":"string","description":"Optional. How the model processes this part's media for understanding.\nOnly meaningful for video parts (`inline_data` or `file_data` with video\nmime). Non-video parts ignore this field.\n\n**Allowed values:**\n- `MEDIA_PROCESSING_UNSPECIFIED`: Defaults to model-specific processing.\n- `STATIC`: Fixed-rate frame extraction. All frames placed in context.\n- `AGENTIC`: Model-driven dynamic navigation. Recommended for most use cases.","enum":["MEDIA_PROCESSING_UNSPECIFIED","STATIC","AGENTIC"],"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].mediaProcessing","typeLabel":"enum\u003cstring>"},"videoMetadata":{"type":"object","description":"Optional. Video metadata. The metadata should only be specified while the video\ndata is presented in inline_data or file_data.","properties":{"fps":{"description":"Optional. The frame rate of the video sent to the model. If not specified, the\ndefault value will be 1.0.\nThe fps range is (0.0, 24.0].","format":"double","type":"number","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].videoMetadata.fps","typeLabel":"number\u003cdouble>"},"startOffset":{"description":"Optional. The start offset of the video.","format":"google-duration","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].videoMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"},"contentLayers":{"items":{"enum":["CONTENT_LAYER_UNSPECIFIED","FRAMES","AUDIO","TRANSCRIPT"],"type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].videoMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [FRAMES, AUDIO].\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `FRAMES`: Extract video frames.\n- `AUDIO`: Extract audio track.\n- `TRANSCRIPT`: Extract audio transcript.","type":"array","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].videoMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"endOffset":{"type":"string","description":"Optional. The end offset of the video.","format":"google-duration","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].videoMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].videoMetadata","typeLabel":"object"},"fileData":{"type":"object","description":"URI based data.","required":["fileUri"],"properties":{"fileUri":{"description":"Required. URI.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].fileData.fileUri","typeLabel":"string"},"displayName":{"description":"Optional. Specifies the name used to refer to this file to the model (e.g.\n\"my_file.pdf\"). Used as the file reference identifier when\n`verbalization_mode` is set to `REFERENCE_ONLY`.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].fileData.displayName","typeLabel":"string"},"mimeType":{"type":"string","description":"Optional. The IANA standard MIME type of the source data.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].fileData.mimeType","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].fileData","typeLabel":"object"},"mediaResolution":{"type":"object","description":"Optional. Media resolution for the input media.","properties":{"level":{"enum":["MEDIA_RESOLUTION_UNSPECIFIED","MEDIA_RESOLUTION_LOW","MEDIA_RESOLUTION_MEDIUM","MEDIA_RESOLUTION_HIGH","MEDIA_RESOLUTION_ULTRA_HIGH"],"type":"string","description":"The tokenization quality used for given media.\n for Gemini API support .\n\n**Allowed values:**\n- `MEDIA_RESOLUTION_UNSPECIFIED`: Media resolution has not been set.\n- `MEDIA_RESOLUTION_LOW`: Media resolution set to low.\n- `MEDIA_RESOLUTION_MEDIUM`: Media resolution set to medium.\n- `MEDIA_RESOLUTION_HIGH`: Media resolution set to high.\n- `MEDIA_RESOLUTION_ULTRA_HIGH`: Media resolution set to ultra high.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].mediaResolution.level","typeLabel":"enum\u003cstring>"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].mediaResolution","typeLabel":"object"},"documentMetadata":{"type":"object","description":"Optional. Document metadata. The metadata should only be specified while the\ndocument data is presented in inline_data or file_data.","properties":{"startPage":{"type":"integer","format":"int32","description":"Optional. 1-indexed inclusive start page.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].documentMetadata.startPage","typeLabel":"integer\u003cint32>"},"endPage":{"type":"integer","description":"Optional. 1-indexed inclusive end page.","format":"int32","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].documentMetadata.endPage","typeLabel":"integer\u003cint32>"},"contentLayers":{"type":"array","description":"Optional. Content layers to return.\nIf empty, defaults to [PAGE_IMAGE] when DocumentMetadata is set. When\nDocumentMetadata is not set, default document processing is used (for\nexample, page images for PDFs).\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `PAGE_IMAGE`: Rendered page images.\n- `PAGE_TEXT`: Extracted page text.","items":{"enum":["CONTENT_LAYER_UNSPECIFIED","PAGE_IMAGE","PAGE_TEXT"],"type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].documentMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].documentMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].documentMetadata","typeLabel":"object"},"functionResponse":{"type":"object","description":"The result output of a `FunctionCall` that contains a string\nrepresenting the `FunctionDeclaration.name` and a structured JSON\nobject containing any output from the function is used as context to\nthe model.","required":["name","response"],"properties":{"response":{"description":"Required. The function response in JSON object format.\nCallers can use any keys of their choice that fit the function's syntax\nto return the function output, e.g. \"output\", \"result\", etc.\nIn particular, if the function call failed to execute, the response can\nhave an \"error\" key to return error details to the model.\n\nMultimedia can be included by using a subobject containing a single \"$ref\"\nkey whose value is the `inline_data.display_name` or\n`file_data.display_name` of a `FunctionResponsePart` holding the\nmultimedia. See [Multimodal function\nresponses](https://aistudio.google.com/docs/function-calling#multimodal).","type":"object","additionalProperties":{"description":"Properties of the object.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.response.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.response","typeLabel":"object"},"name":{"description":"Required. The name of the function to call.\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum\nlength of 128.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.name","typeLabel":"string"},"willContinue":{"description":"Optional. Signals that function call continues, and more responses will be\nreturned, turning the function call into a generator.\nIs only applicable to NON_BLOCKING function calls, is ignored otherwise.\nIf set to false, future responses will not be considered.\nIt is allowed to return empty `response` with `will_continue=False` to\nsignal that the function call is finished. This may still trigger the model\ngeneration. To avoid triggering the generation and finish the function\ncall, additionally set `scheduling` to `SILENT`.","type":"boolean","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.willContinue","typeLabel":"boolean"},"parts":{"type":"array","items":{"type":"object","description":"A datatype containing media that is part of a `FunctionResponse` message.\n\nA `FunctionResponsePart` consists of data which has an associated datatype. A\n`FunctionResponsePart` can only contain one of the accepted types in\n`FunctionResponsePart.data`.\n\nMedia can be passed as raw bytes (`inline_data`) or by URI (`file_data`) with\nan IANA MIME type identifying the type and subtype of the media.","properties":{"documentMetadata":{"type":"object","description":"Optional. Document metadata. The metadata should only be specified while the\ndocument data is presented in inline_data or file_data.","properties":{"startPage":{"type":"integer","format":"int32","description":"Optional. 1-indexed inclusive start page.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.startPage","typeLabel":"integer\u003cint32>"},"endPage":{"type":"integer","description":"Optional. 1-indexed inclusive end page.","format":"int32","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.endPage","typeLabel":"integer\u003cint32>"},"contentLayers":{"type":"array","description":"Optional. Content layers to return.\nIf empty, defaults to [PAGE_IMAGE] when DocumentMetadata is set. When\nDocumentMetadata is not set, default document processing is used (for\nexample, page images for PDFs).\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `PAGE_IMAGE`: Rendered page images.\n- `PAGE_TEXT`: Extracted page text.","items":{"enum":["CONTENT_LAYER_UNSPECIFIED","PAGE_IMAGE","PAGE_TEXT"],"type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].documentMetadata","typeLabel":"object"},"mediaProcessing":{"type":"string","description":"Optional. How the model processes this part's media for understanding.\nOnly meaningful for video parts (`inline_data` or `file_data` with video\nmime). Non-video parts ignore this field.\n\n**Allowed values:**\n- `MEDIA_PROCESSING_UNSPECIFIED`: Defaults to model-specific processing.\n- `STATIC`: Fixed-rate frame extraction. All frames placed in context.\n- `AGENTIC`: Model-driven dynamic navigation. Recommended for most use cases.","enum":["MEDIA_PROCESSING_UNSPECIFIED","STATIC","AGENTIC"],"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaProcessing","typeLabel":"enum\u003cstring>"},"mediaResolution":{"type":"object","description":"Optional. Media resolution for the input media.","properties":{"level":{"enum":["MEDIA_RESOLUTION_UNSPECIFIED","MEDIA_RESOLUTION_LOW","MEDIA_RESOLUTION_MEDIUM","MEDIA_RESOLUTION_HIGH","MEDIA_RESOLUTION_ULTRA_HIGH"],"type":"string","description":"The tokenization quality used for given media.\n for Gemini API support .\n\n**Allowed values:**\n- `MEDIA_RESOLUTION_UNSPECIFIED`: Media resolution has not been set.\n- `MEDIA_RESOLUTION_LOW`: Media resolution set to low.\n- `MEDIA_RESOLUTION_MEDIUM`: Media resolution set to medium.\n- `MEDIA_RESOLUTION_HIGH`: Media resolution set to high.\n- `MEDIA_RESOLUTION_ULTRA_HIGH`: Media resolution set to ultra high.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaResolution.level","typeLabel":"enum\u003cstring>"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].mediaResolution","typeLabel":"object"},"spreadsheetMetadata":{"type":"object","description":"Optional. Spreadsheet metadata. The metadata should only be specified while the\nspreadsheet data is presented in inline_data or file_data.","properties":{"contentLayers":{"type":"array","items":{"type":"string","enum":["CONTENT_LAYER_UNSPECIFIED","DATA","FORMULAS","VISUAL"],"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `DATA`: Cell values, merges, and formats.\n- `FORMULAS`: Formula expressions and their computed results.\n- `VISUAL`: A rendered image of the sheet.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"visibleCells":{"description":"Optional. The range of cells to extract, in A1 notation (e.g. \"A1:D10\").\nIf not set, the full occupied area of the sheet is used.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.visibleCells","typeLabel":"string"},"sheetIndex":{"description":"Optional. The 1-indexed index of the sheet to extract, in workbook order.\nIf not set, all sheets are extracted.","format":"int32","type":"integer","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata.sheetIndex","typeLabel":"integer\u003cint32>"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].spreadsheetMetadata","typeLabel":"object"},"videoMetadata":{"type":"object","description":"Optional. Video metadata. The metadata should only be specified while the video\ndata is presented in inline_data or file_data.","properties":{"fps":{"description":"Optional. The frame rate of the video sent to the model. If not specified, the\ndefault value will be 1.0.\nThe fps range is (0.0, 24.0].","format":"double","type":"number","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.fps","typeLabel":"number\u003cdouble>"},"startOffset":{"description":"Optional. The start offset of the video.","format":"google-duration","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"},"contentLayers":{"items":{"enum":["CONTENT_LAYER_UNSPECIFIED","FRAMES","AUDIO","TRANSCRIPT"],"type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.contentLayers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Optional. Content layers to return.\nIf empty, defaults to [FRAMES, AUDIO].\n\n**Allowed values:**\n- `CONTENT_LAYER_UNSPECIFIED`: Default value.\n- `FRAMES`: Extract video frames.\n- `AUDIO`: Extract audio track.\n- `TRANSCRIPT`: Extract audio transcript.","type":"array","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.contentLayers","typeLabel":"enum\u003cstring>[]"},"endOffset":{"type":"string","description":"Optional. The end offset of the video.","format":"google-duration","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].videoMetadata","typeLabel":"object"},"fileData":{"type":"object","description":"URI based data.","required":["fileUri"],"properties":{"fileUri":{"description":"Required. URI.","type":"string","isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.fileUri","typeLabel":"string"},"displayName":{"description":"Optional. Display name of the file.\nUsed to provide a label or filename to distinguish file data, and to\nreference the file from `FunctionResponse.response` (for example, via\n`{\"$ref\": \"DISPLAY_NAME\"}`).","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.displayName","typeLabel":"string"},"mimeType":{"description":"The IANA standard MIME type of the source data.\nIf an unsupported MIME type is provided, an error will be returned. For a\ncomplete list of supported types, see [Multimodal function\nresponses](https://aistudio.google.com/docs/function-calling#multimodal)\nand [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData.mimeType","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].fileData","typeLabel":"object"},"audioMetadata":{"type":"object","description":"Optional. Audio metadata. The metadata should only be specified while the audio\ndata is presented in inline_data or file_data.","properties":{"endOffset":{"description":"Optional. The end offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata.endOffset","typeLabel":"string\u003cgoogle-duration>"},"startOffset":{"type":"string","description":"Optional. The start offset of the audio, relative to the start of the\naudio stream.","format":"google-duration","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata.startOffset","typeLabel":"string\u003cgoogle-duration>"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].audioMetadata","typeLabel":"object"},"inlineData":{"type":"object","description":"Inline media bytes.","properties":{"data":{"description":"Raw bytes for media formats.","type":"string","format":"byte","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"},"displayName":{"description":"Optional. Display name of the blob.\nUsed to provide a label or filename to distinguish blobs, and to reference\nthe blob from `FunctionResponse.response` (for example, via\n`{\"$ref\": \"DISPLAY_NAME\"}`).","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.displayName","typeLabel":"string"},"mimeType":{"type":"string","description":"The IANA standard MIME type of the source data.\nExamples:\n - image/png\n - image/jpeg\nIf an unsupported MIME type is provided, an error will be returned. For a\ncomplete list of supported types, see [Supported file\nformats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX].inlineData","typeLabel":"object"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts.items.[INDEX]","typeLabel":"object"},"description":"Optional. Ordered `Parts` that constitute a function response. Parts may have\ndifferent IANA MIME types.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.parts","typeLabel":"object[]"},"id":{"type":"string","description":"Optional. The identifier of the function call this response is for. Populated by the\nclient to match the corresponding function call `id`.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.id","typeLabel":"string"},"scheduling":{"description":"Optional. Specifies how the response should be scheduled in the conversation.\nOnly applicable to NON_BLOCKING function calls, is ignored otherwise.\nDefaults to WHEN_IDLE.\n\n**Allowed values:**\n- `SCHEDULING_UNSPECIFIED`: This value is unused.\n- `SILENT`: Only add the result to the conversation context, do not interrupt or trigger generation.\n- `WHEN_IDLE`: Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.\n- `INTERRUPT`: Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.","enum":["SCHEDULING_UNSPECIFIED","SILENT","WHEN_IDLE","INTERRUPT"],"type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse.scheduling","typeLabel":"enum\u003cstring>"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].functionResponse","typeLabel":"object"},"toolCall":{"type":"object","description":"Server-side tool call. This field is populated when the model\npredicts a tool invocation that should be executed on the server.\nThe client is expected to echo this message back to the API.","required":["toolType"],"properties":{"toolType":{"type":"string","description":"Required. The type of tool that was called.","enum":["TOOL_TYPE_UNSPECIFIED","GOOGLE_SEARCH_WEB","GOOGLE_SEARCH_IMAGE","URL_CONTEXT","GOOGLE_MAPS","FILE_SEARCH","MEDIA_PROCESSING"],"isRequired":true,"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolCall.toolType","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Optional. Unique identifier of the tool call.\nThe server returns the tool response with the matching `id`.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolCall.id","typeLabel":"string"},"args":{"additionalProperties":{"description":"Properties of the object.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolCall.args.additionalProperties","typeLabel":"any"},"description":"Optional. The tool call arguments.\nExample: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}","type":"object","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolCall.args","typeLabel":"object"},"toolName":{"type":"string","description":"Optional. The name of the tool that was called.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolCall.toolName","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX].toolCall","typeLabel":"object"}},"description":"A datatype containing media that is part of a multi-part `Content` message.\n\nA `Part` consists of data which has an associated datatype. A `Part` can only\ncontain one of the accepted types in `Part.data`.\n\nA `Part` must have a fixed IANA MIME type identifying the type and subtype\nof the media if the `inline_data` field is filled with raw bytes.","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts.items.[INDEX]","typeLabel":"object"},"description":"Ordered `Parts` that constitute a single message. Parts may have different\nMIME types.","type":"array","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.parts","typeLabel":"object[]"},"role":{"description":"Optional. The producer of the content. Must be either 'user' or 'model'.\n\nUseful to set for multi-turn conversations, otherwise can be left blank\nor unset.","type":"string","uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content.role","typeLabel":"string"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX].content","typeLabel":"object"}},"uniqueKey":"candidates.items.[INDEX].groundingAttributions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"candidates.items.[INDEX].groundingAttributions","typeLabel":"object[]"},"index":{"readOnly":true,"description":"Output only. Index of the candidate in the list of response candidates.","format":"int32","type":"integer","uniqueKey":"candidates.items.[INDEX].index","typeLabel":"integer\u003cint32>"},"continuationToken":{"description":"An optional opaque continuation token returned when `finish_reason` is\n`CONTINUATION`.\nClients can pass this token in a subsequent `GenerateContentRequest` to\ncontinue generation.","format":"byte","type":"string","uniqueKey":"candidates.items.[INDEX].continuationToken","typeLabel":"string\u003cbyte>"},"citationMetadata":{"type":"object","description":"Output only. Citation information for model-generated candidate.\n\nThis field may be populated with recitation information for any text\nincluded in the `content`. These are passages that are \"recited\" from\ncopyrighted material in the foundational LLM's training data.","properties":{"citationSources":{"items":{"properties":{"license":{"type":"string","description":"Optional. License for the GitHub project that is attributed as a source for segment.\n\nLicense info is required for code citations.","uniqueKey":"candidates.items.[INDEX].citationMetadata.citationSources.items.[INDEX].license","typeLabel":"string"},"uri":{"description":"Optional. URI that is attributed as a source for a portion of the text.","type":"string","uniqueKey":"candidates.items.[INDEX].citationMetadata.citationSources.items.[INDEX].uri","typeLabel":"string"},"startIndex":{"type":"integer","format":"int32","description":"Optional. Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.","uniqueKey":"candidates.items.[INDEX].citationMetadata.citationSources.items.[INDEX].startIndex","typeLabel":"integer\u003cint32>"},"endIndex":{"type":"integer","format":"int32","description":"Optional. End of the attributed segment, exclusive.","uniqueKey":"candidates.items.[INDEX].citationMetadata.citationSources.items.[INDEX].endIndex","typeLabel":"integer\u003cint32>"}},"type":"object","description":"A citation to a source for a portion of a specific response.","uniqueKey":"candidates.items.[INDEX].citationMetadata.citationSources.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Citations to sources for a specific response.","uniqueKey":"candidates.items.[INDEX].citationMetadata.citationSources","typeLabel":"object[]"}},"uniqueKey":"candidates.items.[INDEX].citationMetadata","typeLabel":"object"}},"uniqueKey":"candidates.items.[INDEX]","typeLabel":"object"},"description":"Candidate responses from the model.","type":"array","uniqueKey":"candidates","typeLabel":"object[]"},"promptFeedback":{"type":"object","description":"Returns the prompt's feedback related to the content filters.","properties":{"safetyRatings":{"type":"array","description":"Ratings for safety of the prompt.\nThere is at most one rating per category.","items":{"required":["category","probability"],"description":"Safety rating for a piece of content.\n\nThe safety rating contains the category of harm and the\nharm probability level in that category for a piece of content.\nContent is classified for safety across a number of\nharm categories and the probability of the harm classification is included\nhere.","type":"object","properties":{"category":{"type":"string","description":"Required. The category for this rating.","enum":["HARM_CATEGORY_UNSPECIFIED","HARM_CATEGORY_DEROGATORY","HARM_CATEGORY_TOXICITY","HARM_CATEGORY_VIOLENCE","HARM_CATEGORY_SEXUAL","HARM_CATEGORY_MEDICAL","HARM_CATEGORY_DANGEROUS","HARM_CATEGORY_HARASSMENT","HARM_CATEGORY_HATE_SPEECH","HARM_CATEGORY_SEXUALLY_EXPLICIT","HARM_CATEGORY_DANGEROUS_CONTENT","HARM_CATEGORY_CIVIC_INTEGRITY","HARM_CATEGORY_JAILBREAK"],"isRequired":true,"uniqueKey":"promptFeedback.safetyRatings.items.[INDEX].category","typeLabel":"enum\u003cstring>"},"probability":{"type":"string","description":"Required. The probability of harm for this content.\n\n**Allowed values:**\n- `HARM_PROBABILITY_UNSPECIFIED`: Probability is unspecified.\n- `NEGLIGIBLE`: Content has a negligible chance of being unsafe.\n- `LOW`: Content has a low chance of being unsafe.\n- `MEDIUM`: Content has a medium chance of being unsafe.\n- `HIGH`: Content has a high chance of being unsafe.","enum":["HARM_PROBABILITY_UNSPECIFIED","NEGLIGIBLE","LOW","MEDIUM","HIGH"],"isRequired":true,"uniqueKey":"promptFeedback.safetyRatings.items.[INDEX].probability","typeLabel":"enum\u003cstring>"},"blocked":{"type":"boolean","description":"Was this content blocked because of this rating?","uniqueKey":"promptFeedback.safetyRatings.items.[INDEX].blocked","typeLabel":"boolean"}},"uniqueKey":"promptFeedback.safetyRatings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"promptFeedback.safetyRatings","typeLabel":"object[]"},"blockReason":{"enum":["BLOCK_REASON_UNSPECIFIED","SAFETY","OTHER","BLOCKLIST","PROHIBITED_CONTENT","IMAGE_SAFETY"],"description":"Optional. If set, the prompt was blocked and no candidates are returned.\nRephrase the prompt.\n\n**Allowed values:**\n- `BLOCK_REASON_UNSPECIFIED`: Default value. This value is unused.\n- `SAFETY`: Prompt was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.\n- `OTHER`: Prompt was blocked due to unknown reasons.\n- `BLOCKLIST`: Prompt was blocked due to the terms which are included from the terminology blocklist.\n- `PROHIBITED_CONTENT`: Prompt was blocked due to prohibited content.\n- `IMAGE_SAFETY`: Candidates blocked due to unsafe image generation content.","type":"string","uniqueKey":"promptFeedback.blockReason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"promptFeedback","typeLabel":"object"},"responseId":{"type":"string","description":"Output only. response_id is used to identify each response.","readOnly":true,"uniqueKey":"responseId","typeLabel":"string"},"usageMetadata":{"type":"object","description":"Output only. Metadata on the generation requests' token usage.","properties":{"toolUsePromptTokenCount":{"format":"int32","readOnly":true,"description":"Output only. Number of tokens present in tool-use prompt(s).","type":"integer","uniqueKey":"usageMetadata.toolUsePromptTokenCount","typeLabel":"integer\u003cint32>"},"candidatesTokensDetails":{"items":{"type":"object","properties":{"modality":{"type":"string","description":"The modality associated with this token count.","enum":["MODALITY_UNSPECIFIED","TEXT","IMAGE","VIDEO","AUDIO","DOCUMENT"],"uniqueKey":"usageMetadata.candidatesTokensDetails.items.[INDEX].modality","typeLabel":"enum\u003cstring>"},"tokenCount":{"description":"Number of tokens.","format":"int32","type":"integer","uniqueKey":"usageMetadata.candidatesTokensDetails.items.[INDEX].tokenCount","typeLabel":"integer\u003cint32>"}},"description":"Represents token counting info for a single modality.","uniqueKey":"usageMetadata.candidatesTokensDetails.items.[INDEX]","typeLabel":"object"},"type":"array","readOnly":true,"description":"Output only. List of modalities that were returned in the response.","uniqueKey":"usageMetadata.candidatesTokensDetails","typeLabel":"object[]"},"serviceTier":{"type":"string","description":"Output only. Service tier of the request.","enum":["unspecified","standard","flex","priority"],"uniqueKey":"usageMetadata.serviceTier","typeLabel":"enum\u003cstring>"},"cachedContentTokenCount":{"type":"integer","description":"Number of tokens in the cached part of the prompt (the cached content)","format":"int32","uniqueKey":"usageMetadata.cachedContentTokenCount","typeLabel":"integer\u003cint32>"},"promptTokenCount":{"format":"int32","type":"integer","description":"Number of tokens in the prompt. When `cached_content` is set, this is\nstill the total effective prompt size meaning this includes the number of\ntokens in the cached content.","uniqueKey":"usageMetadata.promptTokenCount","typeLabel":"integer\u003cint32>"},"promptTokensDetails":{"items":{"type":"object","properties":{"modality":{"type":"string","description":"The modality associated with this token count.","enum":["MODALITY_UNSPECIFIED","TEXT","IMAGE","VIDEO","AUDIO","DOCUMENT"],"uniqueKey":"usageMetadata.promptTokensDetails.items.[INDEX].modality","typeLabel":"enum\u003cstring>"},"tokenCount":{"description":"Number of tokens.","format":"int32","type":"integer","uniqueKey":"usageMetadata.promptTokensDetails.items.[INDEX].tokenCount","typeLabel":"integer\u003cint32>"}},"description":"Represents token counting info for a single modality.","uniqueKey":"usageMetadata.promptTokensDetails.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Output only. List of modalities that were processed in the request input.","type":"array","uniqueKey":"usageMetadata.promptTokensDetails","typeLabel":"object[]"},"thoughtsTokenCount":{"readOnly":true,"format":"int32","type":"integer","description":"Output only. Number of tokens of thoughts for thinking models.","uniqueKey":"usageMetadata.thoughtsTokenCount","typeLabel":"integer\u003cint32>"},"totalTokenCount":{"type":"integer","description":"Total token count for the generation request (prompt + tool-use prompt +\nthoughts + response candidates).","format":"int32","uniqueKey":"usageMetadata.totalTokenCount","typeLabel":"integer\u003cint32>"},"toolUsePromptTokensDetails":{"type":"array","readOnly":true,"description":"Output only. List of modalities that were processed for tool-use request inputs.","items":{"type":"object","properties":{"modality":{"type":"string","description":"The modality associated with this token count.","enum":["MODALITY_UNSPECIFIED","TEXT","IMAGE","VIDEO","AUDIO","DOCUMENT"],"uniqueKey":"usageMetadata.toolUsePromptTokensDetails.items.[INDEX].modality","typeLabel":"enum\u003cstring>"},"tokenCount":{"description":"Number of tokens.","format":"int32","type":"integer","uniqueKey":"usageMetadata.toolUsePromptTokensDetails.items.[INDEX].tokenCount","typeLabel":"integer\u003cint32>"}},"description":"Represents token counting info for a single modality.","uniqueKey":"usageMetadata.toolUsePromptTokensDetails.items.[INDEX]","typeLabel":"object"},"uniqueKey":"usageMetadata.toolUsePromptTokensDetails","typeLabel":"object[]"},"candidatesTokenCount":{"format":"int32","description":"Total number of tokens across all the generated response candidates.","type":"integer","uniqueKey":"usageMetadata.candidatesTokenCount","typeLabel":"integer\u003cint32>"},"cacheTokensDetails":{"type":"array","description":"Output only. List of modalities of the cached content in the request input.","items":{"type":"object","properties":{"modality":{"type":"string","description":"The modality associated with this token count.","enum":["MODALITY_UNSPECIFIED","TEXT","IMAGE","VIDEO","AUDIO","DOCUMENT"],"uniqueKey":"usageMetadata.cacheTokensDetails.items.[INDEX].modality","typeLabel":"enum\u003cstring>"},"tokenCount":{"description":"Number of tokens.","format":"int32","type":"integer","uniqueKey":"usageMetadata.cacheTokensDetails.items.[INDEX].tokenCount","typeLabel":"integer\u003cint32>"}},"description":"Represents token counting info for a single modality.","uniqueKey":"usageMetadata.cacheTokensDetails.items.[INDEX]","typeLabel":"object"},"readOnly":true,"uniqueKey":"usageMetadata.cacheTokensDetails","typeLabel":"object[]"}},"uniqueKey":"usageMetadata","typeLabel":"object"},"modelStatus":{"type":"object","description":"Output only. The current model status of this model.","properties":{"message":{"type":"string","description":"A message explaining the model status.","uniqueKey":"modelStatus.message","typeLabel":"string"},"modelStage":{"type":"string","description":"The stage of the underlying model.","enum":["MODEL_STAGE_UNSPECIFIED","UNSTABLE_EXPERIMENTAL","EXPERIMENTAL","PREVIEW","STABLE","LEGACY","DEPRECATED","RETIRED"],"uniqueKey":"modelStatus.modelStage","typeLabel":"enum\u003cstring>"},"retirementTime":{"description":"The time at which the model will be retired.","type":"string","format":"date-time","uniqueKey":"modelStatus.retirementTime","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"modelStatus","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"modelVersion":"\u003cstring>","candidates":[{"safetyRatings":[{"category":"HARM_CATEGORY_UNSPECIFIED","probability":"HARM_PROBABILITY_UNSPECIFIED","blocked":true}],"content":{"parts":[{"toolResponse":{"toolType":"TOOL_TYPE_UNSPECIFIED","response":{},"id":"\u003cstring>"},"executableCode":{"language":"LANGUAGE_UNSPECIFIED","code":"\u003cstring>","id":"\u003cstring>"},"speechMetadata":{"style":"\u003cstring>","speaker":"\u003cstring>"},"audioMetadata":{"endOffset":"\u003cstring>","startOffset":"\u003cstring>"},"audioTranscription":{"text":"\u003cstring>","words":[{"word":"\u003cstring>","endOffset":"\u003cstring>","startOffset":"\u003cstring>"}],"speakerLabel":"\u003cstring>"},"inlineData":{"data":"aSDinaTvuI8gbWludGxpZnk=","mimeType":"\u003cstring>","displayName":"\u003cstring>"},"spreadsheetMetadata":{"contentLayers":["CONTENT_LAYER_UNSPECIFIED"],"visibleCells":"\u003cstring>","sheetIndex":123},"partMetadata":{},"text":"\u003cstring>","thoughtSignature":"aSDinaTvuI8gbWludGxpZnk=","codeExecutionResult":{"outcome":"OUTCOME_UNSPECIFIED","id":"\u003cstring>","output":"\u003cstring>"},"thought":true,"functionCall":{"name":"\u003cstring>","args":{},"id":"\u003cstring>"},"mediaProcessing":"MEDIA_PROCESSING_UNSPECIFIED","videoMetadata":{"fps":123,"startOffset":"\u003cstring>","contentLayers":["CONTENT_LAYER_UNSPECIFIED"],"endOffset":"\u003cstring>"},"fileData":{"fileUri":"\u003cstring>","displayName":"\u003cstring>","mimeType":"\u003cstring>"},"mediaResolution":{"level":"MEDIA_RESOLUTION_UNSPECIFIED"},"documentMetadata":{"startPage":123,"endPage":123,"contentLayers":["CONTENT_LAYER_UNSPECIFIED"]},"functionResponse":{"response":{},"name":"\u003cstring>","willContinue":true,"parts":[{"documentMetadata":{"startPage":123,"endPage":123,"contentLayers":["CONTENT_LAYER_UNSPECIFIED"]},"mediaProcessing":"MEDIA_PROCESSING_UNSPECIFIED","mediaResolution":{"level":"MEDIA_RESOLUTION_UNSPECIFIED"},"spreadsheetMetadata":{"contentLayers":["CONTENT_LAYER_UNSPECIFIED"],"visibleCells":"\u003cstring>","sheetIndex":123},"videoMetadata":{"fps":123,"startOffset":"\u003cstring>","contentLayers":["CONTENT_LAYER_UNSPECIFIED"],"endOffset":"\u003cstring>"},"fileData":{"fileUri":"\u003cstring>","displayName":"\u003cstring>","mimeType":"\u003cstring>"},"audioMetadata":{"endOffset":"\u003cstring>","startOffset":"\u003cstring>"},"inlineData":{"data":"aSDinaTvuI8gbWludGxpZnk=","displayName":"\u003cstring>","mimeType":"\u003cstring>"}}],"id":"\u003cstring>","scheduling":"SCHEDULING_UNSPECIFIED"},"toolCall":{"toolType":"TOOL_TYPE_UNSPECIFIED","id":"\u003cstring>","args":{},"toolName":"\u003cstring>"}}],"role":"\u003cstring>"},"finishMessage":"\u003cstring>","avgLogprobs":123,"groundingMetadata":{"googleMapsWidgetContextToken":"\u003cstring>","searchEntryPoint":{"sdkBlob":"aSDinaTvuI8gbWludGxpZnk=","renderedContent":"\u003cstring>"},"groundingChunks":[{"image":{"sourceUri":"\u003cstring>","imageUri":"\u003cstring>","title":"\u003cstring>","domain":"\u003cstring>"},"maps":{"placeAnswerSources":{"reviewSnippets":[{"title":"\u003cstring>","googleMapsUri":"\u003cstring>","reviewId":"\u003cstring>"}]},"placeId":"\u003cstring>","text":"\u003cstring>","uri":"\u003cstring>","title":"\u003cstring>"},"retrievedContext":{"title":"\u003cstring>","fileSearchStore":"\u003cstring>","mediaId":"\u003cstring>","text":"\u003cstring>","pageNumber":123,"uri":"\u003cstring>","customMetadata":[{"numericValue":123,"key":"\u003cstring>","stringListValue":{"values":["\u003cstring>"]},"stringValue":"\u003cstring>"}]},"web":{"uri":"\u003cstring>","title":"\u003cstring>"}}],"webSearchQueries":["\u003cstring>"],"imageSearchQueries":["\u003cstring>"],"groundingSupports":[{"confidenceScores":[123],"segment":{"endIndex":123,"partIndex":123,"startIndex":123,"text":"\u003cstring>"},"renderedParts":[123],"groundingChunkIndices":[123]}],"retrievalMetadata":{"googleSearchDynamicRetrievalScore":123}},"logprobsResult":{"topCandidates":[{"candidates":[{"logProbability":123,"tokenId":123,"token":"\u003cstring>"}]}],"chosenCandidates":[{"logProbability":123,"tokenId":123,"token":"\u003cstring>"}],"logProbabilitySum":123},"finishReason":"FINISH_REASON_UNSPECIFIED","tokenCount":123,"urlContextMetadata":{"urlMetadata":[{"urlRetrievalStatus":"URL_RETRIEVAL_STATUS_UNSPECIFIED","retrievedUrl":"\u003cstring>"}]},"groundingAttributions":[{"sourceId":{"semanticRetrieverChunk":{"source":"\u003cstring>","chunk":"\u003cstring>"},"groundingPassage":{"passageId":"\u003cstring>","partIndex":123}},"content":{"parts":[{"toolResponse":{"toolType":"TOOL_TYPE_UNSPECIFIED","response":{},"id":"\u003cstring>"},"executableCode":{"language":"LANGUAGE_UNSPECIFIED","code":"\u003cstring>","id":"\u003cstring>"},"speechMetadata":{"style":"\u003cstring>","speaker":"\u003cstring>"},"audioMetadata":{"endOffset":"\u003cstring>","startOffset":"\u003cstring>"},"audioTranscription":{"text":"\u003cstring>","words":[{"word":"\u003cstring>","endOffset":"\u003cstring>","startOffset":"\u003cstring>"}],"speakerLabel":"\u003cstring>"},"inlineData":{"data":"aSDinaTvuI8gbWludGxpZnk=","mimeType":"\u003cstring>","displayName":"\u003cstring>"},"spreadsheetMetadata":{"contentLayers":["CONTENT_LAYER_UNSPECIFIED"],"visibleCells":"\u003cstring>","sheetIndex":123},"partMetadata":{},"text":"\u003cstring>","thoughtSignature":"aSDinaTvuI8gbWludGxpZnk=","codeExecutionResult":{"outcome":"OUTCOME_UNSPECIFIED","id":"\u003cstring>","output":"\u003cstring>"},"thought":true,"functionCall":{"name":"\u003cstring>","args":{},"id":"\u003cstring>"},"mediaProcessing":"MEDIA_PROCESSING_UNSPECIFIED","videoMetadata":{"fps":123,"startOffset":"\u003cstring>","contentLayers":["CONTENT_LAYER_UNSPECIFIED"],"endOffset":"\u003cstring>"},"fileData":{"fileUri":"\u003cstring>","displayName":"\u003cstring>","mimeType":"\u003cstring>"},"mediaResolution":{"level":"MEDIA_RESOLUTION_UNSPECIFIED"},"documentMetadata":{"startPage":123,"endPage":123,"contentLayers":["CONTENT_LAYER_UNSPECIFIED"]},"functionResponse":{"response":{},"name":"\u003cstring>","willContinue":true,"parts":[{"documentMetadata":{"startPage":123,"endPage":123,"contentLayers":["CONTENT_LAYER_UNSPECIFIED"]},"mediaProcessing":"MEDIA_PROCESSING_UNSPECIFIED","mediaResolution":{"level":"MEDIA_RESOLUTION_UNSPECIFIED"},"spreadsheetMetadata":{"contentLayers":["CONTENT_LAYER_UNSPECIFIED"],"visibleCells":"\u003cstring>","sheetIndex":123},"videoMetadata":{"fps":123,"startOffset":"\u003cstring>","contentLayers":["CONTENT_LAYER_UNSPECIFIED"],"endOffset":"\u003cstring>"},"fileData":{"fileUri":"\u003cstring>","displayName":"\u003cstring>","mimeType":"\u003cstring>"},"audioMetadata":{"endOffset":"\u003cstring>","startOffset":"\u003cstring>"},"inlineData":{"data":"aSDinaTvuI8gbWludGxpZnk=","displayName":"\u003cstring>","mimeType":"\u003cstring>"}}],"id":"\u003cstring>","scheduling":"SCHEDULING_UNSPECIFIED"},"toolCall":{"toolType":"TOOL_TYPE_UNSPECIFIED","id":"\u003cstring>","args":{},"toolName":"\u003cstring>"}}],"role":"\u003cstring>"}}],"index":123,"continuationToken":"aSDinaTvuI8gbWludGxpZnk=","citationMetadata":{"citationSources":[{"license":"\u003cstring>","uri":"\u003cstring>","startIndex":123,"endIndex":123}]}}],"promptFeedback":{"safetyRatings":[{"category":"HARM_CATEGORY_UNSPECIFIED","probability":"HARM_PROBABILITY_UNSPECIFIED","blocked":true}],"blockReason":"BLOCK_REASON_UNSPECIFIED"},"responseId":"\u003cstring>","usageMetadata":{"toolUsePromptTokenCount":123,"candidatesTokensDetails":[{"modality":"MODALITY_UNSPECIFIED","tokenCount":123}],"serviceTier":"unspecified","cachedContentTokenCount":123,"promptTokenCount":123,"promptTokensDetails":[{"modality":"MODALITY_UNSPECIFIED","tokenCount":123}],"thoughtsTokenCount":123,"totalTokenCount":123,"toolUsePromptTokensDetails":[{"modality":"MODALITY_UNSPECIFIED","tokenCount":123}],"candidatesTokenCount":123,"cacheTokensDetails":[{"modality":"MODALITY_UNSPECIFIED","tokenCount":123}]},"modelStatus":{"message":"\u003cstring>","modelStage":"MODEL_STAGE_UNSPECIFIED","retirementTime":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"03f5537b-e17c-4bf2-91ae-6a53ef3161ef":{"description":"Invalid request: malformed JSON, a missing required field, or a parameter the chosen model does not support. Fix it as `message` says and retry.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"invalid_request","http_status":400,"message":"Invalid request.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"invalid_request_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"50068fca-c38f-4ab0-99eb-1285a945c633":{"description":"The API Key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"unauthorized","http_status":401,"message":"Unauthorized.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"authentication_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"56b937d1-7706-4e2c-a55c-70cc362c914b":{"description":"Insufficient balance; top up and retry.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"insufficient_balance","http_status":402,"message":"Insufficient balance.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"insufficient_balance_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"e70b4a5f-647e-4613-baaa-75f84ae850e0":{"description":"This API Key is not allowed to use the model.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"forbidden","http_status":403,"message":"Access denied.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"permission_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"462915e8-798a-4614-a6dc-f930ff444c3f":{"description":"The model does not exist or is not available.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"not_found","http_status":404,"message":"The requested model was not found.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"invalid_request_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"64a11487-8d1d-4e40-b2a4-cbc1e318ae4e":{"description":"Rate limit exceeded; back off and retry.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"rate_limit_exceeded","http_status":429,"message":"Rate limit exceeded. Please try again later.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"rate_limit_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d4192644-cb48-4190-b94f-be8280997f56":{"description":"Internal error; retry later.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"api_error","http_status":500,"message":"Internal server error.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"api_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"685dfdd4-dce5-4786-8356-91fcb434c28d":{"description":"Service temporarily unavailable or timed out; retry later.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"service_unavailable","http_status":503,"message":"Service temporarily unavailable. Please try again later.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"api_error"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"97c1d3a8-d746-406b-bccd-ce2b80cfa46e":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-goog-api-key","description":"Send your DreamTo API Key in the `x-goog-api-key` header, the way the Google SDKs do by default; the `?key=\u003cAPI Key>` query parameter works too.","scopes":[],"schemeName":"apiKeyAuth"}},"e01b730a-4d38-4afc-a93e-62092ebe3956":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Send your DreamTo API Key in the `Authorization` header: `Authorization: Bearer \u003cAPI Key>`.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"6d5bd19d-d845-4a17-a503-29004ed290c1":{"url":"https://api.dreamto.ai"}},"schemas":{"c958a86a-e152-4d1c-ad8d-97b0becdb609":{"description":"The `Schema` object allows the definition of input and output data types.\nThese types can be objects, but also primitives and arrays.\nRepresents a select subset of an [OpenAPI 3.0 schema\nobject](https://spec.openapis.org/oas/v3.0.3#schema).","required":["type"],"properties":{"type":{"type":"string","description":"Required. Data type.","enum":["TYPE_UNSPECIFIED","STRING","NUMBER","INTEGER","BOOLEAN","ARRAY","OBJECT","NULL"],"isRequired":true},"maxProperties":{"format":"int64","type":"string","description":"Optional. Maximum number of the properties for Type.OBJECT."},"description":{"description":"Optional. A brief description of the parameter. This could contain examples of use.\nParameter description may be formatted as Markdown.","type":"string"},"propertyOrdering":{"items":{"type":"string"},"description":"Optional. The order of the properties.\nNot a standard field in open api spec. Used to determine the order of the\nproperties in the response.","type":"array"},"default":{"description":"Optional. Default value of the field. Per JSON Schema, this field is intended for\ndocumentation generators and doesn't affect validation. Thus it's included\nhere and ignored so that developers who send schemas with a `default` field\ndon't get unknown-field errors."},"maxLength":{"format":"int64","type":"string","description":"Optional. Maximum length of the Type.STRING"},"minProperties":{"type":"string","format":"int64","description":"Optional. Minimum number of the properties for Type.OBJECT."},"minimum":{"format":"double","type":"number","description":"Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER\nMinimum value of the Type.INTEGER and Type.NUMBER"},"enum":{"items":{"type":"string"},"type":"array","description":"Optional. Possible values of the element of Type.STRING with enum format.\nFor example we can define an Enum Direction as :\n{type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}"},"example":{"description":"Optional. Example of the object. Will only populated when the object is the root."},"minItems":{"type":"string","description":"Optional. Minimum number of the elements for Type.ARRAY.","format":"int64"},"maxItems":{"type":"string","description":"Optional. Maximum number of the elements for Type.ARRAY.","format":"int64"},"anyOf":{"items":{"$circularRef":"c958a86a-e152-4d1c-ad8d-97b0becdb609"},"description":"Optional. The value should be validated against any (one or more) of the subschemas\nin the list.","type":"array"},"format":{"description":"Optional. The format of the data. Any value is allowed, but most do not trigger any\nspecial functionality.","type":"string"},"maximum":{"description":"Optional. Maximum value of the Type.INTEGER and Type.NUMBER","format":"double","type":"number"},"properties":{"additionalProperties":{"$circularRef":"c958a86a-e152-4d1c-ad8d-97b0becdb609"},"type":"object","description":"Optional. Properties of Type.OBJECT."},"title":{"type":"string","description":"Optional. The title of the schema."},"items":{"description":"Optional. Schema of the elements of Type.ARRAY."},"required":{"items":{"type":"string"},"description":"Optional. Required properties of Type.OBJECT.","type":"array"},"minLength":{"type":"string","format":"int64","description":"Optional. SCHEMA FIELDS FOR TYPE STRING\nMinimum length of the Type.STRING"},"nullable":{"description":"Optional. Indicates if the value may be null.","type":"boolean"},"pattern":{"description":"Optional. Pattern of the Type.STRING to restrict a string to a regular expression.","type":"string"}},"type":"object"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-goog-api-key","description":"Send your DreamTo API Key in the `x-goog-api-key` header, the way the Google SDKs do by default; the `?key=\u003cAPI Key>` query parameter works too.","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-goog-api-key","type":"string","description":"Send your DreamTo API Key in the `x-goog-api-key` header, the way the Google SDKs do by default; the `?key=\u003cAPI Key>` query parameter works too.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-goog-api-key"}],"title":"apiKeyAuth"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Send your DreamTo API Key in the `Authorization` header: `Authorization: Bearer \u003cAPI Key>`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your DreamTo API Key in the `Authorization` header: `Authorization: Bearer \u003cAPI Key>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi/en/gemini-generate-content.json"},"subdomain":"dreamto","siteName":"DreamTo API","title":"Generate content - DreamTo API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"zh":{"href":"/api-reference/gemini-generate-content/generate-content","matchLevel":1},"en":{"href":"/en/api-reference/gemini-generate-content/generate-content","matchLevel":0}}},"lastModified":"2026-11-29T16:12:29.623Z","originalFileLocation":"en/api-reference/gemini-generate-content/generate-content.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generates a model response given an input GenerateContentRequest. Refer to the text generation guide for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the model guide and tuning guide for details.\">\u003cmeta data-mint-head name=\"application-name\" content=\"DreamTo API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Generate content - DreamTo API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generates a model response given an input GenerateContentRequest. Refer to the text generation guide for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the model guide and tuning guide for details.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DreamTo API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dreamto.mintlify.site/_mintlify/api/og/v2?division=Gemini+generateContent\u0026amp;title=Generate+content\u0026amp;description=Generates+a+model+response+given+an+input+%60GenerateContentRequest%60.%0ARefer+to+the+%5Btext+generation%0Aguide%5D%28https%3A%2F%2Faistudio.google.com%2Fdocs%2Ftext-generation%29+for+d\u0026amp;theme=966bd5cf73c175936a3e4273\u0026amp;signature=20aa651f50bae1d025a5a6577e5171926162fa486a060768574c73604d1dfbe5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Generate content - DreamTo API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generates a model response given an input GenerateContentRequest. Refer to the text generation guide for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the model guide and tuning guide for details.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dreamto.mintlify.site/_mintlify/api/og/v2?division=Gemini+generateContent\u0026amp;title=Generate+content\u0026amp;description=Generates+a+model+response+given+an+input+%60GenerateContentRequest%60.%0ARefer+to+the+%5Btext+generation%0Aguide%5D%28https%3A%2F%2Faistudio.google.com%2Fdocs%2Ftext-generation%29+for+d\u0026amp;theme=966bd5cf73c175936a3e4273\u0026amp;signature=20aa651f50bae1d025a5a6577e5171926162fa486a060768574c73604d1dfbe5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DreamTo API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3E3E3F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/gemini-generate-content/generate-content.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.dreamto.ai/api-reference/gemini-generate-content/generate-content\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.dreamto.ai/api-reference/gemini-generate-content/generate-content\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dreamto.ai/#organization\",\"name\":\"DreamTo API\",\"url\":\"https://docs.dreamto.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dreamto/qdi4xMMMFQC2W0qR/logo/light.png?fit=max\u0026auto=format\u0026n=qdi4xMMMFQC2W0qR\u0026q=85\u0026s=34f5db7a934e6d8d4723f28e3524c21a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dreamto.ai#website\",\"name\":\"DreamTo API\",\"url\":\"https://docs.dreamto.ai\",\"publisher\":{\"@id\":\"https://docs.dreamto.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content#webpage\",\"url\":\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content\",\"name\":\"Generate content\",\"description\":\"Generates a model response given an input GenerateContentRequest. Refer to the text generation guide for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the model guide and tuning guide for details.\",\"dateModified\":\"2026-11-29T16:12:29.623Z\",\"isPartOf\":{\"@id\":\"https://docs.dreamto.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Language models (LLM)\",\"item\":\"https://docs.dreamto.ai/en/llm/openai-chat-completions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gemini generateContent\",\"item\":\"https://docs.dreamto.ai/en/llm/gemini-generate-content\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Generate content\",\"item\":\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content#apireference\",\"headline\":\"Generate content\",\"name\":\"Generate content\",\"description\":\"Generates a model response given an input GenerateContentRequest. Refer to the text generation guide for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the model guide and tuning guide for details.\",\"url\":\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dreamto.ai/en/api-reference/gemini-generate-content/generate-content#webpage\"},\"dateModified\":\"2026-11-29T16:12:29.623Z\",\"publisher\":{\"@id\":\"https://docs.dreamto.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dreamto.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DreamTo API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"DreamTo API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/gemini-generate-content/generate-content.md","siteName":"DreamTo API","nav":{"global":null,"languages":[{"language":"zh","default":true,"pages":[{"title":"zh","href":"/api-reference/gemini-generate-content/generate-content"}]},{"language":"en","groups":[{"group":"Get started","pages":[{"title":"DreamTo API Docs","sidebarTitle":"Introduction","href":"/en"},{"title":"Authentication","href":"/en/authentication"},{"title":"Errors","href":"/en/errors"}]},{"group":"Language models (LLM)","pages":[{"group":"OpenAI Chat Completions","icon":"/icons/openai.svg","pages":[{"title":"OpenAI Chat Completions","sidebarTitle":"Models","href":"/en/llm/openai-chat-completions"},{"title":"Create chat completion","deprecated":null,"version":null,"sidebarTitle":"Create chat completion","openapi":"/openapi/en/openai-chat-completions.json post /v1/chat/completions","href":"/en/api-reference/openai-chat-completions/create-chat-completion"}]},{"group":"OpenAI Responses","icon":"/icons/openai.svg","pages":[{"title":"OpenAI Responses","sidebarTitle":"Models","href":"/en/llm/openai-responses"},{"title":"Create a model response","deprecated":null,"version":null,"sidebarTitle":"Create a model response","openapi":"/openapi/en/openai-responses.json post /v1/responses","href":"/en/api-reference/openai-responses/create-response"}]},{"group":"Gemini generateContent","icon":"/icons/gemini.svg","pages":[{"title":"Gemini generateContent","sidebarTitle":"Models","description":"Call Gemini models with the Gemini generateContent protocol (v1beta): multimodal input, thinking, streaming, function calling and structured output.","href":"/en/llm/gemini-generate-content"},{"title":"Generate content","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-generate-content.json post /v1beta/models/{model}:generateContent","href":"/en/api-reference/gemini-generate-content/generate-content"},{"title":"Stream generate content","description":"Generates a [streamed\nresponse](https://aistudio.google.com/docs/text-generation#streaming-responses)\nfrom the model given an input `GenerateContentRequest`.","deprecated":null,"version":null,"sidebarTitle":"Stream generate content","openapi":"/openapi/en/gemini-generate-content.json post /v1beta/models/{model}:streamGenerateContent","href":"/en/api-reference/gemini-generate-content/stream-generate-content"}]},{"group":"Anthropic Messages","icon":"/icons/claude.svg","pages":[{"title":"Anthropic Messages","sidebarTitle":"Models","href":"/en/llm/anthropic-messages"},{"title":"Create a message","deprecated":null,"version":null,"sidebarTitle":"Create a message","openapi":"/openapi/en/anthropic-messages.json post /v1/messages","href":"/en/api-reference/anthropic-messages/create-message"}]}]},{"group":"Integrations","pages":[{"title":"Integrations overview","sidebarTitle":"Overview","icon":"plug","href":"/en/integrations/overview"},{"title":"Claude Code","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/claudecode.svg","href":"/en/integrations/claude-code"},{"title":"Codex CLI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/codex.svg","href":"/en/integrations/codex"},{"title":"Gemini CLI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/geminicli.svg","href":"/en/integrations/gemini-cli"},{"title":"Cursor","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/cursor.svg","href":"/en/integrations/cursor"},{"title":"CC Switch","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/cc-switch.png","href":"/en/integrations/cc-switch"},{"title":"OpenCode","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/opencode.svg","href":"/en/integrations/opencode"},{"title":"OpenClaw","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/openclaw.svg","href":"/en/integrations/openclaw"},{"title":"Hermes Agent","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/hermesagent.svg","href":"/en/integrations/hermes"},{"title":"Cline / Roo Code","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/cline.svg","href":"/en/integrations/cline"},{"title":"Continue","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/continue.png","href":"/en/integrations/continue"},{"title":"TRAE","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/trae.svg","href":"/en/integrations/trae"},{"title":"WorkBuddy","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/workbuddy.svg","href":"/en/integrations/workbuddy"},{"title":"Cherry Studio","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/cherrystudio.svg","href":"/en/integrations/cherry-studio"},{"title":"LobeChat / NextChat","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/lobehub.svg","href":"/en/integrations/lobechat-nextchat"},{"title":"SDK quickstart","icon":"cube","href":"/en/integrations/sdks"}]},{"group":"Image generation","pages":[{"group":"Gemini Nano Banana 2.1","icon":"/icons/gemini.svg","pages":[{"title":"Gemini Nano Banana 2.1","sidebarTitle":"Introduction","href":"/en/image/models/gemini-nano-banana-2-1"},{"title":"Generate content","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-nano-banana-2-1.json post /v1beta/models/gemini-nano-banana-2.1:generateContent","href":"/en/api-reference/gemini-nano-banana-2-1/generate-content"}]},{"group":"Gemini 3.1 Flash Lite Image","icon":"/icons/gemini.svg","pages":[{"title":"Gemini 3.1 Flash Lite Image","sidebarTitle":"Introduction","href":"/en/image/models/gemini-3-1-flash-lite-image"},{"title":"Generate content","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-3-1-flash-lite-image.json post /v1beta/models/gemini-3.1-flash-lite-image:generateContent","href":"/en/api-reference/gemini-3-1-flash-lite-image/generate-content"}]},{"group":"Gemini 3.1 Flash Image","icon":"/icons/gemini.svg","pages":[{"title":"Gemini 3.1 Flash Image","sidebarTitle":"Introduction","href":"/en/image/models/gemini-3-1-flash-image"},{"title":"Generate content","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-3-1-flash-image.json post /v1beta/models/gemini-3.1-flash-image:generateContent","href":"/en/api-reference/gemini-3-1-flash-image/generate-content"}]},{"group":"Gemini 3 Pro Image","icon":"/icons/gemini.svg","pages":[{"title":"Gemini 3 Pro Image","sidebarTitle":"Introduction","href":"/en/image/models/gemini-3-pro-image"},{"title":"Generate content","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-3-pro-image.json post /v1beta/models/gemini-3-pro-image:generateContent","href":"/en/api-reference/gemini-3-pro-image/generate-content"}]},{"group":"GPT Image 2.6","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2.6","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2-6"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2-6.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2-6/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2-6.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2-6/edit-image"}]},{"group":"GPT Image 2.5","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2.5","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2-5"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2-5.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2-5/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2-5.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2-5/edit-image"}]},{"group":"GPT Image 2","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2/edit-image"}]},{"group":"GPT Image 2.6 Economy","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2.6 Economy","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2-6-economy"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2-6-economy.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2-6-economy/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2-6-economy.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2-6-economy/edit-image"}]},{"group":"GPT Image 2.5 Economy","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2.5 Economy","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2-5-economy"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2-5-economy.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2-5-economy/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2-5-economy.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2-5-economy/edit-image"}]},{"group":"GPT Image 2 Economy","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2 Economy","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2-economy"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2-economy.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2-economy/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2-economy.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2-economy/edit-image"}]},{"group":"Seedream 5.5","icon":"/icons/doubao.svg","pages":[{"title":"Seedream 5.5","sidebarTitle":"Introduction","href":"/en/image/models/seedream-5-5"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/seedream-5-5.json post /api/v3/images/generations","href":"/en/api-reference/seedream-5-5/create-image"},{"group":"Guides","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Multi-turn editing consistency","href":"/en/image/models/seedream-5-5/multi-turn-editing"},{"title":"Native RGBA images (transparent background)","href":"/en/image/models/seedream-5-5/native-rgba"},{"title":"Fine-grained layer decomposition","href":"/en/image/models/seedream-5-5/layer-decomposition"},{"title":"Rich-text OCR (text-layer content and styles)","href":"/en/image/models/seedream-5-5/rich-text-ocr"},{"title":"Image output options and limits","href":"/en/image/models/seedream-5-5/image-output"},{"title":"OCR supported fonts","href":"/en/image/models/seedream-5-5/ocr-supported-fonts"}]}]},{"group":"Qwen-Image 3.0 Pro","icon":"/icons/qwen.svg","pages":[{"title":"Qwen-Image 3.0 Pro","sidebarTitle":"Introduction","href":"/en/image/models/qwen-image-3-0-pro"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/qwen-image-3-0-pro.json post /api/v1/services/aigc/multimodal-generation/generation","href":"/en/api-reference/qwen-image-3-0-pro/create-image"},{"group":"Guides","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to image","href":"/en/image/models/qwen-image-3-0-pro/text-to-image"},{"title":"Image editing and multi-image fusion","href":"/en/image/models/qwen-image-3-0-pro/image-editing"},{"title":"Prompt rewriting","href":"/en/image/models/qwen-image-3-0-pro/prompt-rewriting"},{"title":"Sizes and billing tiers","href":"/en/image/models/qwen-image-3-0-pro/size-and-billing"}]}]},{"group":"Qwen-Image 3.0","icon":"/icons/qwen.svg","pages":[{"title":"Qwen-Image 3.0","sidebarTitle":"Introduction","href":"/en/image/models/qwen-image-3-0"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/qwen-image-3-0.json post /api/v1/services/aigc/multimodal-generation/generation","href":"/en/api-reference/qwen-image-3-0/create-image"},{"group":"Guides","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to image","href":"/en/image/models/qwen-image-3-0/text-to-image"},{"title":"Image editing and multi-image fusion","href":"/en/image/models/qwen-image-3-0/image-editing"},{"title":"Prompt rewriting","href":"/en/image/models/qwen-image-3-0/prompt-rewriting"},{"title":"Sizes and billing tiers","href":"/en/image/models/qwen-image-3-0/size-and-billing"}]}]},{"group":"Qwen-Image 2.1 Pro","icon":"/icons/qwen.svg","pages":[{"title":"Qwen-Image 2.1 Pro","sidebarTitle":"Introduction","href":"/en/image/models/qwen-image-2-1-pro"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/qwen-image-2-1-pro.json post /v1/images/generations","href":"/en/api-reference/qwen-image-2-1-pro/create-image"}]},{"group":"Qwen-Image 2.1 Turbo","icon":"/icons/qwen.svg","pages":[{"title":"Qwen-Image 2.1 Turbo","sidebarTitle":"Introduction","href":"/en/image/models/qwen-image-2-1-turbo"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/qwen-image-2-1-turbo.json post /v1/images/generations","href":"/en/api-reference/qwen-image-2-1-turbo/create-image"}]}]},{"group":"Seedance video","pages":[{"title":"Seedance video generation: shared guide","sidebarTitle":"Shared guide","href":"/en/video/seedance-2-0"},{"sidebarTitle":"Callbacks and signatures","title":"Task callback","href":"/en/webhooks/task-callback"},{"group":"Seedance 2.5","icon":"/icons/doubao.svg","pages":[{"title":"Seedance 2.5 video generation","sidebarTitle":"Introduction","href":"/en/video/models/seedance-2-5"},{"title":"Create video task","deprecated":null,"version":null,"sidebarTitle":"Create video task","openapi":"/openapi/en/seedance-2-5.json post /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-5/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/seedance-2-5.json get /api/v3/contents/generations/tasks/{id}","href":"/en/api-reference/seedance-2-5/get-task"},{"title":"List tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/en/seedance-2-5.json get /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-5/list-tasks"},{"title":"Task completed callback","version":null,"deprecated":null,"sidebarTitle":"Task completed callback","openapi":"/openapi/en/seedance-2-5.json webhook seedanceTaskCompleted","href":"/en/api-reference/seedance-2-5/task-callback"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/seedance-2-5/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/seedance-2-5/scenarios/image-to-video"},{"title":"First and last frame","href":"/en/video/models/seedance-2-5/scenarios/first-last-frame"},{"title":"Multi-image reference","href":"/en/video/models/seedance-2-5/scenarios/multi-image-reference"},{"title":"Video editing","href":"/en/video/models/seedance-2-5/scenarios/video-edit"},{"title":"Video extension","href":"/en/video/models/seedance-2-5/scenarios/video-extend"},{"title":"Reference audio","href":"/en/video/models/seedance-2-5/scenarios/reference-audio"},{"title":"Web search","href":"/en/video/models/seedance-2-5/scenarios/web-search"},{"title":"Asset library reference","href":"/en/video/models/seedance-2-5/scenarios/asset-reference"},{"title":"Smart duration + callback","href":"/en/video/models/seedance-2-5/scenarios/smart-duration-callback"},{"title":"Seedance 2.5 long video","href":"/en/video/models/seedance-2-5/scenarios/seedance-2-5-long-video"}]}]},{"group":"Seedance 2.5 Flash","icon":"/icons/doubao.svg","pages":[{"title":"Seedance 2.5 Flash video generation","sidebarTitle":"Introduction","href":"/en/video/models/seedance-2-5-flash"},{"title":"Create video task","deprecated":null,"version":null,"sidebarTitle":"Create video task","openapi":"/openapi/en/seedance-2-5-flash.json post /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-5-flash/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/seedance-2-5-flash.json get /api/v3/contents/generations/tasks/{id}","href":"/en/api-reference/seedance-2-5-flash/get-task"},{"title":"List tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/en/seedance-2-5-flash.json get /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-5-flash/list-tasks"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/seedance-2-5-flash/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/seedance-2-5-flash/scenarios/image-to-video"},{"title":"First and last frame","href":"/en/video/models/seedance-2-5-flash/scenarios/first-last-frame"},{"title":"Multi-image reference","href":"/en/video/models/seedance-2-5-flash/scenarios/multi-image-reference"},{"title":"Video editing","href":"/en/video/models/seedance-2-5-flash/scenarios/video-edit"},{"title":"Video extension","href":"/en/video/models/seedance-2-5-flash/scenarios/video-extend"},{"title":"Reference audio","href":"/en/video/models/seedance-2-5-flash/scenarios/reference-audio"},{"title":"Web search","href":"/en/video/models/seedance-2-5-flash/scenarios/web-search"}]}]},{"group":"Seedance 2.0","icon":"/icons/doubao.svg","pages":[{"title":"Seedance 2.0 video generation","sidebarTitle":"Introduction","href":"/en/video/models/seedance-2-0"},{"title":"Create video task","deprecated":null,"version":null,"sidebarTitle":"Create video task","openapi":"/openapi/en/seedance-2-0.json post /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/seedance-2-0.json get /api/v3/contents/generations/tasks/{id}","href":"/en/api-reference/seedance-2-0/get-task"},{"title":"List tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/en/seedance-2-0.json get /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0/list-tasks"},{"title":"Task completed callback","version":null,"deprecated":null,"sidebarTitle":"Task completed callback","openapi":"/openapi/en/seedance-2-0.json webhook seedanceTaskCompleted","href":"/en/api-reference/seedance-2-0/task-callback"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/seedance-2-0/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/seedance-2-0/scenarios/image-to-video"},{"title":"First and last frame","href":"/en/video/models/seedance-2-0/scenarios/first-last-frame"},{"title":"Multi-image reference","href":"/en/video/models/seedance-2-0/scenarios/multi-image-reference"},{"title":"Video editing","href":"/en/video/models/seedance-2-0/scenarios/video-edit"},{"title":"Video extension","href":"/en/video/models/seedance-2-0/scenarios/video-extend"},{"title":"Reference audio","href":"/en/video/models/seedance-2-0/scenarios/reference-audio"},{"title":"Web search","href":"/en/video/models/seedance-2-0/scenarios/web-search"},{"title":"Asset library reference","href":"/en/video/models/seedance-2-0/scenarios/asset-reference"},{"title":"Smart duration + callback","href":"/en/video/models/seedance-2-0/scenarios/smart-duration-callback"}]}]},{"group":"Seedance 2.0 Fast","icon":"/icons/doubao.svg","pages":[{"title":"Seedance 2.0 Fast video generation","sidebarTitle":"Introduction","href":"/en/video/models/seedance-2-0-fast"},{"title":"Create video task","deprecated":null,"version":null,"sidebarTitle":"Create video task","openapi":"/openapi/en/seedance-2-0-fast.json post /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0-fast/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/seedance-2-0-fast.json get /api/v3/contents/generations/tasks/{id}","href":"/en/api-reference/seedance-2-0-fast/get-task"},{"title":"List tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/en/seedance-2-0-fast.json get /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0-fast/list-tasks"},{"title":"Task completed callback","version":null,"deprecated":null,"sidebarTitle":"Task completed callback","openapi":"/openapi/en/seedance-2-0-fast.json webhook seedanceTaskCompleted","href":"/en/api-reference/seedance-2-0-fast/task-callback"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/seedance-2-0-fast/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/seedance-2-0-fast/scenarios/image-to-video"},{"title":"First and last frame","href":"/en/video/models/seedance-2-0-fast/scenarios/first-last-frame"},{"title":"Multi-image reference","href":"/en/video/models/seedance-2-0-fast/scenarios/multi-image-reference"},{"title":"Reference audio","href":"/en/video/models/seedance-2-0-fast/scenarios/reference-audio"},{"title":"Web search","href":"/en/video/models/seedance-2-0-fast/scenarios/web-search"},{"title":"Asset library reference","href":"/en/video/models/seedance-2-0-fast/scenarios/asset-reference"},{"title":"Fast / Mini drafts","href":"/en/video/models/seedance-2-0-fast/scenarios/fast-draft"}]}]},{"group":"Seedance 2.0 Mini","icon":"/icons/doubao.svg","pages":[{"title":"Seedance 2.0 Mini video generation","sidebarTitle":"Introduction","href":"/en/video/models/seedance-2-0-mini"},{"title":"Create video task","deprecated":null,"version":null,"sidebarTitle":"Create video task","openapi":"/openapi/en/seedance-2-0-mini.json post /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0-mini/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/seedance-2-0-mini.json get /api/v3/contents/generations/tasks/{id}","href":"/en/api-reference/seedance-2-0-mini/get-task"},{"title":"List tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/en/seedance-2-0-mini.json get /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0-mini/list-tasks"},{"title":"Task completed callback","version":null,"deprecated":null,"sidebarTitle":"Task completed callback","openapi":"/openapi/en/seedance-2-0-mini.json webhook seedanceTaskCompleted","href":"/en/api-reference/seedance-2-0-mini/task-callback"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/seedance-2-0-mini/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/seedance-2-0-mini/scenarios/image-to-video"},{"title":"First and last frame","href":"/en/video/models/seedance-2-0-mini/scenarios/first-last-frame"},{"title":"Multi-image reference","href":"/en/video/models/seedance-2-0-mini/scenarios/multi-image-reference"},{"title":"Reference audio","href":"/en/video/models/seedance-2-0-mini/scenarios/reference-audio"},{"title":"Web search","href":"/en/video/models/seedance-2-0-mini/scenarios/web-search"},{"title":"Asset library reference","href":"/en/video/models/seedance-2-0-mini/scenarios/asset-reference"},{"title":"Fast / Mini drafts","href":"/en/video/models/seedance-2-0-mini/scenarios/fast-draft"}]}]},{"group":"Seedance asset library","icon":"/icons/doubao.svg","pages":[{"title":"Seedance asset library","sidebarTitle":"Overview","href":"/en/assets/seedance-asset-library"},{"title":"CreateAssetGroup","deprecated":null,"version":null,"sidebarTitle":"CreateAssetGroup","openapi":"/openapi/en.json post /api/v3/assets?Action=CreateAssetGroup\u0026Version=2024-01-01","href":"/en/api-reference/assets/create-asset-group"},{"title":"GetAssetGroup","deprecated":null,"version":null,"sidebarTitle":"GetAssetGroup","openapi":"/openapi/en.json post /api/v3/assets?Action=GetAssetGroup\u0026Version=2024-01-01","href":"/en/api-reference/assets/get-asset-group"},{"title":"ListAssetGroups","deprecated":null,"version":null,"sidebarTitle":"ListAssetGroups","openapi":"/openapi/en.json post /api/v3/assets?Action=ListAssetGroups\u0026Version=2024-01-01","href":"/en/api-reference/assets/list-asset-groups"},{"title":"UpdateAssetGroup","deprecated":null,"version":null,"sidebarTitle":"UpdateAssetGroup","openapi":"/openapi/en.json post /api/v3/assets?Action=UpdateAssetGroup\u0026Version=2024-01-01","href":"/en/api-reference/assets/update-asset-group"},{"title":"DeleteAssetGroup","deprecated":null,"version":null,"sidebarTitle":"DeleteAssetGroup","openapi":"/openapi/en.json post /api/v3/assets?Action=DeleteAssetGroup\u0026Version=2024-01-01","href":"/en/api-reference/assets/delete-asset-group"},{"title":"CreateAsset","deprecated":null,"version":null,"sidebarTitle":"CreateAsset","openapi":"/openapi/en.json post /api/v3/assets?Action=CreateAsset\u0026Version=2024-01-01","href":"/en/api-reference/assets/create-asset"},{"title":"GetAsset","deprecated":null,"version":null,"sidebarTitle":"GetAsset","openapi":"/openapi/en.json post /api/v3/assets?Action=GetAsset\u0026Version=2024-01-01","href":"/en/api-reference/assets/get-asset"},{"title":"ListAssets","deprecated":null,"version":null,"sidebarTitle":"ListAssets","openapi":"/openapi/en.json post /api/v3/assets?Action=ListAssets\u0026Version=2024-01-01","href":"/en/api-reference/assets/list-assets"},{"title":"UpdateAsset","deprecated":null,"version":null,"sidebarTitle":"UpdateAsset","openapi":"/openapi/en.json post /api/v3/assets?Action=UpdateAsset\u0026Version=2024-01-01","href":"/en/api-reference/assets/update-asset"},{"title":"DeleteAsset","deprecated":null,"version":null,"sidebarTitle":"DeleteAsset","openapi":"/openapi/en.json post /api/v3/assets?Action=DeleteAsset\u0026Version=2024-01-01","href":"/en/api-reference/assets/delete-asset"}]}]},{"group":"MiniMax video","pages":[{"group":"MiniMax H3","icon":"/icons/minimax.svg","pages":[{"title":"MiniMax H3","sidebarTitle":"Introduction","href":"/en/video/models/minimax-h3"},{"title":"Create video generation task","deprecated":null,"version":null,"sidebarTitle":"Create video generation task","openapi":"/openapi/en/minimax-h3.json post /v2/video_generation","href":"/en/api-reference/minimax-h3/create-video-generation"},{"title":"Create video regeneration task","deprecated":null,"version":null,"sidebarTitle":"Create video regeneration task","openapi":"/openapi/en/minimax-h3.json post /v2/video_regeneration","href":"/en/api-reference/minimax-h3/create-video-regeneration"},{"title":"Create H3 Context IR task","deprecated":null,"version":null,"sidebarTitle":"Create H3 Context IR task","openapi":"/openapi/en/minimax-h3.json post /v2/h3_context_ir","href":"/en/api-reference/minimax-h3/create-context-ir"},{"title":"Query task","deprecated":null,"version":null,"sidebarTitle":"Query task","openapi":"/openapi/en/minimax-h3.json get /v2/query/video_generation/{task_id}","href":"/en/api-reference/minimax-h3/query-task"}]}]},{"group":"Kling video","pages":[{"group":"Kling 4.0","icon":"/icons/kling.svg","pages":[{"title":"Kling 4.0","sidebarTitle":"Introduction","href":"/en/video/models/kling-4-0"},{"title":"Create a video task","deprecated":null,"version":null,"sidebarTitle":"Create a video task","openapi":"/openapi/en/kling-4-0.json post /v1/videos","href":"/en/api-reference/kling-4-0/create-task"},{"title":"Query a video task","deprecated":null,"version":null,"sidebarTitle":"Query a video task","openapi":"/openapi/en/kling-4-0.json get /v1/videos/{task_id}","href":"/en/api-reference/kling-4-0/query-task"}]},{"group":"Kling 4.0 Omni","icon":"/icons/kling.svg","pages":[{"title":"Kling 4.0 Omni","sidebarTitle":"Introduction","href":"/en/video/models/kling-4-0-omni"},{"title":"Create a video task","deprecated":null,"version":null,"sidebarTitle":"Create a video task","openapi":"/openapi/en/kling-4-0-omni.json post /v1/videos","href":"/en/api-reference/kling-4-0-omni/create-task"},{"title":"Query a video task","deprecated":null,"version":null,"sidebarTitle":"Query a video task","openapi":"/openapi/en/kling-4-0-omni.json get /v1/videos/{task_id}","href":"/en/api-reference/kling-4-0-omni/query-task"}]}]},{"group":"Vidu video","pages":[{"group":"Vidu Q4 Preview","icon":"/icons/vidu.svg","pages":[{"title":"Vidu Q4 Preview","sidebarTitle":"Introduction","href":"/en/video/models/vidu-q4-preview"},{"title":"Create a video task","deprecated":null,"version":null,"sidebarTitle":"Create a video task","openapi":"/openapi/en/vidu-q4-preview.json post /v1/videos","href":"/en/api-reference/vidu-q4-preview/create-task"},{"title":"Query a video task","deprecated":null,"version":null,"sidebarTitle":"Query a video task","openapi":"/openapi/en/vidu-q4-preview.json get /v1/videos/{task_id}","href":"/en/api-reference/vidu-q4-preview/query-task"}]}]},{"group":"Wan video","pages":[{"group":"Wan 3.0","icon":"/icons/qwen.svg","pages":[{"title":"Wan 3.0","sidebarTitle":"Introduction","href":"/en/video/models/wan-3-0"},{"title":"Create video generation task","deprecated":null,"version":null,"sidebarTitle":"Create video generation task","openapi":"/openapi/en/wan-3-0.json post /api/v1/services/aigc/video-generation/video-synthesis","href":"/en/api-reference/wan-3-0/create-video-synthesis"},{"title":"Query task","deprecated":null,"version":null,"sidebarTitle":"Query task","openapi":"/openapi/en/wan-3-0.json get /api/v1/tasks/{task_id}","href":"/en/api-reference/wan-3-0/query-task"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/wan-3-0/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/wan-3-0/scenarios/image-to-video"},{"title":"First \u0026 last frame to video","href":"/en/video/models/wan-3-0/scenarios/first-last-frame"},{"title":"Omni reference to video","href":"/en/video/models/wan-3-0/scenarios/multi-reference"},{"title":"Video edit","href":"/en/video/models/wan-3-0/scenarios/video-edit"},{"title":"Video extend","href":"/en/video/models/wan-3-0/scenarios/video-extend"}]}]},{"group":"Wan 3.0 Prime","icon":"/icons/qwen.svg","pages":[{"title":"Wan 3.0 Prime","sidebarTitle":"Introduction","href":"/en/video/models/wan-3-0-prime"},{"title":"Create video generation task","deprecated":null,"version":null,"sidebarTitle":"Create video generation task","openapi":"/openapi/en/wan-3-0-prime.json post /api/v1/services/aigc/video-generation/video-synthesis","href":"/en/api-reference/wan-3-0-prime/create-video-synthesis"},{"title":"Query task","deprecated":null,"version":null,"sidebarTitle":"Query task","openapi":"/openapi/en/wan-3-0-prime.json get /api/v1/tasks/{task_id}","href":"/en/api-reference/wan-3-0-prime/query-task"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/wan-3-0-prime/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/wan-3-0-prime/scenarios/image-to-video"},{"title":"First \u0026 last frame to video","href":"/en/video/models/wan-3-0-prime/scenarios/first-last-frame"},{"title":"Omni reference to video","href":"/en/video/models/wan-3-0-prime/scenarios/multi-reference"},{"title":"Video edit","href":"/en/video/models/wan-3-0-prime/scenarios/video-edit"},{"title":"Video extend","href":"/en/video/models/wan-3-0-prime/scenarios/video-extend"}]}]},{"group":"Wan 3.0 Spicy","icon":"/icons/qwen.svg","pages":[{"title":"Wan 3.0 Spicy","sidebarTitle":"Introduction","href":"/en/video/models/wan-3-0-spicy"},{"title":"Create video generation task","deprecated":null,"version":null,"sidebarTitle":"Create video generation task","openapi":"/openapi/en/wan-3-0-spicy.json post /api/v1/services/aigc/video-generation/video-synthesis","href":"/en/api-reference/wan-3-0-spicy/create-video-synthesis"},{"title":"Query task","deprecated":null,"version":null,"sidebarTitle":"Query task","openapi":"/openapi/en/wan-3-0-spicy.json get /api/v1/tasks/{task_id}","href":"/en/api-reference/wan-3-0-spicy/query-task"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/wan-3-0-spicy/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/wan-3-0-spicy/scenarios/image-to-video"},{"title":"First \u0026 last frame to video","href":"/en/video/models/wan-3-0-spicy/scenarios/first-last-frame"},{"title":"Omni reference to video","href":"/en/video/models/wan-3-0-spicy/scenarios/multi-reference"},{"title":"Video edit","href":"/en/video/models/wan-3-0-spicy/scenarios/video-edit"},{"title":"Video extend","href":"/en/video/models/wan-3-0-spicy/scenarios/video-extend"}]}]}]},{"group":"PixVerse video","pages":[{"group":"PixVerse V6 Max Text to Video","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Max Text to Video","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-max-text-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-max-text-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-max-text-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-max-text-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-max-text-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-max-text-to-video.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-max-text-to-video/task-callback"}]},{"group":"PixVerse V6 Max Image to Video","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Max Image to Video","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-max-image-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-max-image-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-max-image-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-max-image-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-max-image-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-max-image-to-video.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-max-image-to-video/task-callback"}]},{"group":"PixVerse V6 Text to Video","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Text to Video","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-text-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-text-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-text-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-text-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-text-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-text-to-video.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-text-to-video/task-callback"}]},{"group":"PixVerse V6 Image to Video","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Image to Video","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-image-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-image-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-image-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-image-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-image-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-image-to-video.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-image-to-video/task-callback"}]},{"group":"PixVerse V6 Transition","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Transition","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-transition"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-transition.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-transition/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-transition.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-transition/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-transition.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-transition/task-callback"}]},{"group":"PixVerse V6 Extend","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Extend","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-extend"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-extend.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-extend/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-extend.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-extend/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-extend.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-extend/task-callback"}]},{"group":"PixVerse V6 Reference to Video","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Reference to Video","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-reference-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-reference-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-reference-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-reference-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-reference-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-reference-to-video.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-reference-to-video/task-callback"}]}]},{"group":"MAGI-2 video","pages":[{"group":"MAGI-2 Text to Video","icon":"video","pages":[{"title":"MAGI-2 Text to Video","sidebarTitle":"Introduction","href":"/en/video/models/magi-2-text-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/magi-2-text-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/magi-2-text-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/magi-2-text-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/magi-2-text-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/magi-2-text-to-video.json webhook magi2TaskCompleted","href":"/en/api-reference/magi-2-text-to-video/task-callback"}]},{"group":"MAGI-2 Image to Video","icon":"video","pages":[{"title":"MAGI-2 Image to Video","sidebarTitle":"Introduction","href":"/en/video/models/magi-2-image-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/magi-2-image-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/magi-2-image-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/magi-2-image-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/magi-2-image-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/magi-2-image-to-video.json webhook magi2TaskCompleted","href":"/en/api-reference/magi-2-image-to-video/task-callback"}]},{"group":"MAGI-2 Reference to Video","icon":"video","pages":[{"title":"MAGI-2 Reference to Video","sidebarTitle":"Introduction","href":"/en/video/models/magi-2-reference-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/magi-2-reference-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/magi-2-reference-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/magi-2-reference-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/magi-2-reference-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/magi-2-reference-to-video.json webhook magi2TaskCompleted","href":"/en/api-reference/magi-2-reference-to-video/task-callback"}]}]},{"group":"Music generation","pages":[{"group":"Suno","icon":"music","pages":[{"title":"Suno","sidebarTitle":"Introduction","href":"/en/music/suno"},{"group":"Songs","pages":[{"group":"Generate music","pages":[{"title":"Suno Generate music","sidebarTitle":"Introduction","href":"/en/music/suno/generate"},{"title":"Generate music: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-generate.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-generate/create-task"},{"title":"Generate music: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-generate.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-generate/query-task"},{"title":"Generate music: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-generate.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-generate/task-callback"}]},{"group":"Extend music","pages":[{"title":"Suno Extend music","sidebarTitle":"Introduction","href":"/en/music/suno/extend"},{"title":"Extend music: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-extend.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-extend/create-task"},{"title":"Extend music: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-extend.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-extend/query-task"},{"title":"Extend music: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-extend.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-extend/task-callback"}]},{"group":"Upload and cover audio","pages":[{"title":"Suno Upload and cover audio","sidebarTitle":"Introduction","href":"/en/music/suno/upload-and-cover-audio"},{"title":"Upload and cover audio: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-upload-and-cover-audio.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-upload-and-cover-audio/create-task"},{"title":"Upload and cover audio: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-upload-and-cover-audio.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-upload-and-cover-audio/query-task"},{"title":"Upload and cover audio: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-upload-and-cover-audio.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-upload-and-cover-audio/task-callback"}]},{"group":"Upload and extend audio","pages":[{"title":"Suno Upload and extend audio","sidebarTitle":"Introduction","href":"/en/music/suno/upload-extend"},{"title":"Upload and extend audio: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-upload-extend.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-upload-extend/create-task"},{"title":"Upload and extend audio: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-upload-extend.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-upload-extend/query-task"},{"title":"Upload and extend audio: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-upload-extend.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-upload-extend/task-callback"}]},{"group":"Add instrumental","pages":[{"title":"Suno Add instrumental","sidebarTitle":"Introduction","href":"/en/music/suno/add-instrumental"},{"title":"Add instrumental: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-add-instrumental.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-add-instrumental/create-task"},{"title":"Add instrumental: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-add-instrumental.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-add-instrumental/query-task"},{"title":"Add instrumental: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-add-instrumental.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-add-instrumental/task-callback"}]},{"group":"Add vocals","pages":[{"title":"Suno Add vocals","sidebarTitle":"Introduction","href":"/en/music/suno/add-vocals"},{"title":"Add vocals: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-add-vocals.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-add-vocals/create-task"},{"title":"Add vocals: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-add-vocals.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-add-vocals/query-task"},{"title":"Add vocals: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-add-vocals.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-add-vocals/task-callback"}]},{"group":"Get timestamped lyrics","pages":[{"title":"Suno Get timestamped lyrics","sidebarTitle":"Introduction","href":"/en/music/suno/timestamped-lyrics"},{"title":"Get timestamped lyrics: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-timestamped-lyrics.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-timestamped-lyrics/create-task"},{"title":"Get timestamped lyrics: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-timestamped-lyrics.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-timestamped-lyrics/query-task"}]},{"group":"Boost music style","pages":[{"title":"Suno Boost music style","sidebarTitle":"Introduction","href":"/en/music/suno/boost-style"},{"title":"Boost music style: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-boost-style.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-boost-style/create-task"},{"title":"Boost music style: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-boost-style.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-boost-style/query-task"},{"title":"Boost music style: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-boost-style.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-boost-style/task-callback"}]},{"group":"Generate music cover","pages":[{"title":"Suno Generate music cover","sidebarTitle":"Introduction","href":"/en/music/suno/cover"},{"title":"Generate music cover: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-cover.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-cover/create-task"},{"title":"Generate music cover: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-cover.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-cover/query-task"},{"title":"Generate music cover: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-cover.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-cover/task-callback"}]},{"group":"Replace music section","pages":[{"title":"Suno Replace music section","sidebarTitle":"Introduction","href":"/en/music/suno/replace-section"},{"title":"Replace music section: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-replace-section.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-replace-section/create-task"},{"title":"Replace music section: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-replace-section.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-replace-section/query-task"},{"title":"Replace music section: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-replace-section.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-replace-section/task-callback"}]},{"group":"Generate Persona","pages":[{"title":"Suno Generate Persona","sidebarTitle":"Introduction","href":"/en/music/suno/persona"},{"title":"Generate Persona: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-persona.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-persona/create-task"},{"title":"Generate Persona: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-persona.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-persona/query-task"}]},{"group":"Generate mashup","pages":[{"title":"Suno Generate mashup","sidebarTitle":"Introduction","href":"/en/music/suno/mashup"},{"title":"Generate mashup: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-mashup.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-mashup/create-task"},{"title":"Generate mashup: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-mashup.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-mashup/query-task"},{"title":"Generate mashup: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-mashup.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-mashup/task-callback"}]},{"group":"Recover audio","pages":[{"title":"Suno Recover audio","sidebarTitle":"Introduction","href":"/en/music/suno/recovery-audio"},{"title":"Recover audio: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-recovery-audio.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-recovery-audio/create-task"},{"title":"Recover audio: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-recovery-audio.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-recovery-audio/query-task"},{"title":"Recover audio: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-recovery-audio.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-recovery-audio/task-callback"}]}]},{"group":"WAV conversion","pages":[{"group":"Convert to WAV format","pages":[{"title":"Suno Convert to WAV format","sidebarTitle":"Introduction","href":"/en/music/suno/wav"},{"title":"Convert to WAV format: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-wav.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-wav/create-task"},{"title":"Convert to WAV format: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-wav.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-wav/query-task"},{"title":"Convert to WAV format: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-wav.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-wav/task-callback"}]}]},{"group":"Music video","pages":[{"group":"Create music video","pages":[{"title":"Suno Create music video","sidebarTitle":"Introduction","href":"/en/music/suno/music-video"},{"title":"Create music video: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-music-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-music-video/create-task"},{"title":"Create music video: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-music-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-music-video/query-task"},{"title":"Create music video: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-music-video.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-music-video/task-callback"}]}]},{"group":"Lyrics","pages":[{"group":"Generate lyrics","pages":[{"title":"Suno Generate lyrics","sidebarTitle":"Introduction","href":"/en/music/suno/lyrics"},{"title":"Generate lyrics: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-lyrics.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-lyrics/create-task"},{"title":"Generate lyrics: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-lyrics.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-lyrics/query-task"},{"title":"Generate lyrics: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-lyrics.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-lyrics/task-callback"}]}]},{"group":"Custom voice","pages":[{"group":"Generate validation phrase","pages":[{"title":"Suno Generate validation phrase","sidebarTitle":"Introduction","href":"/en/music/suno/voice-validate"},{"title":"Generate validation phrase: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-voice-validate.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-voice-validate/create-task"},{"title":"Generate validation phrase: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-voice-validate.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-voice-validate/query-task"},{"title":"Generate validation phrase: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-voice-validate.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-voice-validate/task-callback"}]},{"group":"Create custom voice","pages":[{"title":"Suno Create custom voice","sidebarTitle":"Introduction","href":"/en/music/suno/voice-create"},{"title":"Create custom voice: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-voice-create.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-voice-create/create-task"},{"title":"Create custom voice: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-voice-create.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-voice-create/query-task"},{"title":"Create custom voice: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-voice-create.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-voice-create/task-callback"}]},{"group":"Regenerate validation phrase","pages":[{"title":"Suno Regenerate validation phrase","sidebarTitle":"Introduction","href":"/en/music/suno/voice-regenerate"},{"title":"Regenerate validation phrase: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-voice-regenerate.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-voice-regenerate/create-task"},{"title":"Regenerate validation phrase: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-voice-regenerate.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-voice-regenerate/query-task"},{"title":"Regenerate validation phrase: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-voice-regenerate.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-voice-regenerate/task-callback"}]},{"group":"Check voice availability","pages":[{"title":"Suno Check voice availability","sidebarTitle":"Introduction","href":"/en/music/suno/voice-check"},{"title":"Check voice availability: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-voice-check.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-voice-check/create-task"},{"title":"Check voice availability: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-voice-check.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-voice-check/query-task"}]}]},{"group":"Stems and MIDI","pages":[{"group":"Vocal and instrument stem separation","pages":[{"title":"Suno Vocal and instrument stem separation","sidebarTitle":"Introduction","href":"/en/music/suno/separate-vocals"},{"title":"Vocal and instrument stem separation: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-separate-vocals.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-separate-vocals/create-task"},{"title":"Vocal and instrument stem separation: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-separate-vocals.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-separate-vocals/query-task"},{"title":"Vocal and instrument stem separation: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-separate-vocals.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-separate-vocals/task-callback"}]},{"group":"Generate MIDI from audio","pages":[{"title":"Suno Generate MIDI from audio","sidebarTitle":"Introduction","href":"/en/music/suno/midi"},{"title":"Generate MIDI from audio: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-midi.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-midi/create-task"},{"title":"Generate MIDI from audio: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-midi.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-midi/query-task"},{"title":"Generate MIDI from audio: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-midi.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-midi/task-callback"}]}]},{"group":"Sound effects","pages":[{"group":"Generate sounds","pages":[{"title":"Suno Generate sounds","sidebarTitle":"Introduction","href":"/en/music/suno/sounds"},{"title":"Generate sounds: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-sounds.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-sounds/create-task"},{"title":"Generate sounds: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-sounds.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-sounds/query-task"},{"title":"Generate sounds: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-sounds.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-sounds/task-callback"}]}]},{"group":"Speech","pages":[{"group":"Generate speech","pages":[{"title":"Suno Generate speech","sidebarTitle":"Introduction","href":"/en/music/suno/speech"},{"title":"Generate speech: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-speech.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-speech/create-task"},{"title":"Generate speech: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-speech.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-speech/query-task"},{"title":"Generate speech: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-speech.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-speech/task-callback"}]}]}]}]},{"group":"ElevenLabs speech generation","pages":[{"group":"ElevenLabs V3 Text to Dialogue","icon":"microphone","pages":[{"title":"ElevenLabs V3 Text to Dialogue","sidebarTitle":"Model introduction","href":"/en/music/elevenlabs/text-to-dialogue-v3"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/elevenlabs-text-to-dialogue-v3.json post /api/v1/jobs/createTask","href":"/en/api-reference/elevenlabs-text-to-dialogue-v3/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/elevenlabs-text-to-dialogue-v3.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/elevenlabs-text-to-dialogue-v3/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/elevenlabs-text-to-dialogue-v3.json webhook elevenlabsTaskCompleted","href":"/en/api-reference/elevenlabs-text-to-dialogue-v3/task-callback"}]},{"group":"ElevenLabs Multilingual v2","icon":"microphone","pages":[{"title":"ElevenLabs Multilingual v2","sidebarTitle":"Model introduction","href":"/en/music/elevenlabs/tts-multilingual-v2"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/elevenlabs-tts-multilingual-v2.json post /api/v1/jobs/createTask","href":"/en/api-reference/elevenlabs-tts-multilingual-v2/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/elevenlabs-tts-multilingual-v2.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/elevenlabs-tts-multilingual-v2/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/elevenlabs-tts-multilingual-v2.json webhook elevenlabsTaskCompleted","href":"/en/api-reference/elevenlabs-tts-multilingual-v2/task-callback"}]},{"group":"ElevenLabs Turbo v2.5","icon":"microphone","pages":[{"title":"ElevenLabs Turbo v2.5","sidebarTitle":"Model introduction","href":"/en/music/elevenlabs/tts-turbo-2-5"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/elevenlabs-tts-turbo-2-5.json post /api/v1/jobs/createTask","href":"/en/api-reference/elevenlabs-tts-turbo-2-5/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/elevenlabs-tts-turbo-2-5.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/elevenlabs-tts-turbo-2-5/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/elevenlabs-tts-turbo-2-5.json webhook elevenlabsTaskCompleted","href":"/en/api-reference/elevenlabs-tts-turbo-2-5/task-callback"}]}]},{"group":"Gemini speech","pages":[{"group":"Gemini 3.8 Flash TTS","icon":"/icons/gemini.svg","pages":[{"title":"Gemini 3.8 Flash TTS","sidebarTitle":"Introduction","href":"/en/audio/models/gemini-3-8-flash-tts"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/gemini-3-8-flash-tts.json post /api/v1/jobs/createTask","href":"/en/api-reference/gemini-3-8-flash-tts/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/gemini-3-8-flash-tts.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/gemini-3-8-flash-tts/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/gemini-3-8-flash-tts.json webhook geminiTTSTaskCompleted","href":"/en/api-reference/gemini-3-8-flash-tts/task-callback"}]},{"group":"Gemini 3.8 Flash Lite TTS","icon":"/icons/gemini.svg","pages":[{"title":"Gemini 3.8 Flash Lite TTS","sidebarTitle":"Introduction","href":"/en/audio/models/gemini-3-8-flash-lite-tts"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/gemini-3-8-flash-lite-tts.json post /api/v1/jobs/createTask","href":"/en/api-reference/gemini-3-8-flash-lite-tts/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/gemini-3-8-flash-lite-tts.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/gemini-3-8-flash-lite-tts/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/gemini-3-8-flash-lite-tts.json webhook geminiTTSTaskCompleted","href":"/en/api-reference/gemini-3-8-flash-lite-tts/task-callback"}]}]}]}]},"basePath":"","title":"Generate content - DreamTo API","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}