GET

/v1/schemas/gemini/chat/v1beta/models/{modelsId}:streamGenerateContent?kind=output

kind outputactivity chathash 16e503ac…extracted Nov 11, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
343ff1b68827292bea63e0965dec5cfd8c97953c3345c7c552e91fce8bb4ab90
{
  "fetchedAt": 1794375004,
  "extractorVersion": "2",
  "verifiedAt": null
}

Response body

6 properties · 0 required · 49 $defs
propertytypedescriptionconstraints
responseIdstringOutput only. response_id is used to identify each response.
usageMetadataUsageMetadataMetadata on the generation request's token usage.
modelVersionstringOutput only. The model version used to generate the response.
modelStatusModelStatusThe status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.
candidatesCandidate[]Candidate responses from the model.
promptFeedbackPromptFeedbackA set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.

Types

49 $defs

AttributionSourceIdobject

Identifier for the source contributing to this attribution.

semanticRetrieverChunkSemanticRetrieverChunkIdentifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.
groundingPassageGroundingPassageIdIdentifier for a part within a `GroundingPassage`.

AudioTranscriptionobject

The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label.

speakerLabelstringOptional. A label identifying the speaker of this audio segment (e.g. "spk_1", "spk_2"). Present when diarization is set.
wordsWordInfo[]Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set.
textstringRequired. The transcription text of this audio segment.

Blobobject

Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.

mimeTypestringThe IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: tex…
datastringRaw bytes for media formats.format: byte
displayNamestringOptional. Specifies the name used to refer to this blob to the model (e.g. "my_blob.png"). Used as the blob reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`.

Candidateobject

A response candidate generated from the model.

contentContentThe base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
groundingMetadataGroundingMetadataMetadata returned to client when grounding is enabled.
indexintegerOutput only. Index of the candidate in the list of response candidates.format: int32
finishReasonenumOptional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.FINISH_REASON_UNSPECIFIED | STOP | MAX_TOKENS | SAFETY | RECITATION | LANGUAGE · +17 more
tokenCountintegerOutput only. Token count for this candidate.format: int32
avgLogprobsnumberOutput only. Average log probability score of the candidate.format: double
safetyRatingsSafetyRating[]List of ratings for the safety of a response candidate. There is at most one rating per category.
finishMessagestringOptional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.
urlContextMetadataUrlContextMetadataMetadata related to url context retrieval tool.
citationMetadataCitationMetadataA collection of source attributions for a piece of content.
continuationTokenstringAn optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation.format: byte
groundingAttributionsGroundingAttribution[]Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
logprobsResultLogprobsResultLogprobs Result

CitationMetadataobject

A collection of source attributions for a piece of content.

citationSourcesCitationSource[]Citations to sources for a specific response.

CitationSourceobject

A citation to a source for a portion of a specific response.

endIndexintegerOptional. End of the attributed segment, exclusive.format: int32
uristringOptional. URI that is attributed as a source for a portion of the text.
licensestringOptional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.
startIndexintegerOptional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.format: int32

CodeExecutionResultobject

Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.

outputstringOptional. Contains stdout when code execution is successful, stderr or other description otherwise.
outcomeenumRequired. Outcome of the code execution.OUTCOME_UNSPECIFIED | OUTCOME_OK | OUTCOME_FAILED | OUTCOME_DEADLINE_EXCEEDED
idstringOptional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.

Contentobject

The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.

rolestringOptional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset.
partsPart[]Ordered `Parts` that constitute a single message. Parts may have different MIME types.

ExecutableCodeobject

Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generat…

languageenumRequired. Programming language of the `code`.LANGUAGE_UNSPECIFIED | PYTHON
codestringRequired. The code to be executed.
idstringOptional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.

FileDataobject

URI based data.

displayNamestringOptional. Specifies the name used to refer to this file to the model (e.g. "my_file.pdf"). Used as the file reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`.
fileUristringRequired. URI.
mimeTypestringOptional. The IANA standard MIME type of the source data.

FunctionCallobject

A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.

idstringOptional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
argsobjectOptional. The function parameters and values in JSON object format.
namestringRequired. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128.

FunctionResponseobject

The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` m…

namestringRequired. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128.
schedulingenumOptional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.SCHEDULING_UNSPECIFIED | SILENT | WHEN_IDLE | INTERRUPT
responseobjectRequired. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. "output", "result", etc. In particular, if the function call failed to execute, the response can …
partsFunctionResponsePart[]Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
willContinuebooleanOptional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. …
idstringOptional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`.

FunctionResponseBlobobject

Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.

mimeTypestringThe IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://aistudio.google.com/docs/file-in…
displayNamestringOptional. Display name of the blob. Used to provide a label or filename to distinguish blobs, and to reference the blob from `FunctionResponse.response` (for example, via `{"$ref": "DISPLAY_NAME"}`).
datastringRaw bytes for media formats.format: byte

FunctionResponseFileDataobject

URI based data for function response.

mimeTypestringThe IANA standard MIME type of the source data. If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Multimodal function responses](https://aistudio.google.com/docs/function-calling#multimodal) and [S…
fileUristringRequired. URI.
displayNamestringOptional. Display name of the file. Used to provide a label or filename to distinguish file data, and to reference the file from `FunctionResponse.response` (for example, via `{"$ref": "DISPLAY_NAME"}`).

FunctionResponsePartobject

A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. Media can …

fileDataFunctionResponseFileDataURI based data for function response.
inlineDataFunctionResponseBlobRaw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.
mediaProcessingenumOptional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.MEDIA_PROCESSING_UNSPECIFIED | STATIC | AGENTIC

GoogleAiGenerativelanguageV1betaGroundingSupportobject

Grounding support.

groundingChunkIndicesinteger[]Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved con…
renderedPartsinteger[]Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source.
confidenceScoresnumber[]Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
segmentGoogleAiGenerativelanguageV1betaSegmentSegment of the content.

GoogleAiGenerativelanguageV1betaSegmentobject

Segment of the content.

textstringThe text corresponding to the segment from the response.
endIndexintegerEnd index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.format: int32
startIndexintegerStart index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.format: int32
partIndexintegerThe index of a Part object within its parent Content object.format: int32

GroundingAttributionobject

Attribution for a source that contributed to an answer.

sourceIdAttributionSourceIdIdentifier for the source contributing to this attribution.
contentContentThe base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.

GroundingChunkobject

A `GroundingChunk` represents a segment of supporting evidence that grounds the model's response. It can be a chunk from the web, a retrieved context from a file, or information from Google Maps.

mapsMapsA grounding chunk from Google Maps. A Maps chunk corresponds to a single place.
imageImageChunk from image search.
webWebChunk from the web.
retrievedContextRetrievedContextChunk from context retrieved by the file search tool.

GroundingChunkCustomMetadataobject

User provided metadata about the GroundingFact.

stringValuestringOptional. The string value of the metadata.
keystringThe key of the metadata.
numericValuenumberOptional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used.format: float
stringListValueGroundingChunkStringListA list of string values.

GroundingChunkStringListobject

A list of string values.

valuesstring[]The string values of the list.

GroundingMetadataobject

Metadata returned to client when grounding is enabled.

groundingChunksGroundingChunk[]List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses.
googleMapsWidgetContextTokenstringOptional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled.
retrievalMetadataRetrievalMetadataMetadata related to retrieval in the grounding flow.
webSearchQueriesstring[]Web search queries for the following-up web search.
groundingSupportsGoogleAiGenerativelanguageV1betaGroundingSupport[]List of grounding support.
searchEntryPointSearchEntryPointGoogle search entry point.
imageSearchQueriesstring[]Image search queries used for grounding.

GroundingPassageIdobject

Identifier for a part within a `GroundingPassage`.

passageIdstringOutput only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.
partIndexintegerOutput only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.format: int32

Imageobject

Chunk from image search.

domainstringThe root domain of the web page that the image is from, e.g. "example.com".
imageUristringThe image asset URL.
titlestringThe title of the web page that the image is from.
sourceUristringThe web page URI for attribution.

LogprobsResultobject

Logprobs Result

logProbabilitySumnumberSum of log probabilities for all tokens.format: float
topCandidatesTopCandidates[]Length = total number of decoding steps.
chosenCandidatesLogprobsResultCandidate[]Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.

LogprobsResultCandidateobject

Candidate for the logprobs token and score.

tokenstringThe candidate’s token string value.
tokenIdintegerThe candidate’s token id value.format: int32
logProbabilitynumberThe candidate's log probability.format: float

Mapsobject

A grounding chunk from Google Maps. A Maps chunk corresponds to a single place.

placeIdstringThe ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place.
uristringURI reference of the place.
titlestringTitle of the place.
textstringText description of the place answer.
placeAnswerSourcesPlaceAnswerSourcesCollection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features o…

ModalityTokenCountobject

Represents token counting info for a single modality.

modalityenumThe modality associated with this token count.MODALITY_UNSPECIFIED | TEXT | IMAGE | VIDEO | AUDIO | DOCUMENT
tokenCountintegerNumber of tokens.format: int32

ModelStatusobject

The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.

retirementTimestringThe time at which the model will be retired.format: google-datetime
messagestringA message explaining the model status.
modelStageenumThe stage of the underlying model.MODEL_STAGE_UNSPECIFIED | UNSTABLE_EXPERIMENTAL | EXPERIMENTAL | PREVIEW | STABLE | LEGACY · +2 more

Partobject

A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying th…

videoMetadataVideoMetadataMetadata describes the input video content. Set this in `Part.video_metadata` or `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing (such as time clipping, frame rate, maximum frame co…
partMetadataobjectCustom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part str…
speechMetadataSpeechMetadataSpeech metadata for `text` parts.
codeExecutionResultCodeExecutionResultResult of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.
inlineDataBlobRaw media bytes. Text should not be sent as raw bytes, use the 'text' field.
textstringInline text.
executableCodeExecutableCodeCode generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generat…
thoughtbooleanOptional. Indicates if the part is thought from the model.
mediaProcessingenumOptional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.MEDIA_PROCESSING_UNSPECIFIED | STATIC | AGENTIC
toolCallToolCallA predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in…
toolResponseToolResponseThe output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` mes…
functionCallFunctionCallA predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.
audioTranscriptionAudioTranscriptionThe transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label.
fileDataFileDataURI based data.
functionResponseFunctionResponseThe result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` m…
mediaResolutionV1mainMediaResolutionMedia resolution for tokenization.
thoughtSignaturestringOptional. An opaque signature for the thought so it can be reused in subsequent requests.format: byte

PlaceAnswerSourcesobject

Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features o…

reviewSnippetsReviewSnippet[]Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.

PromptFeedbackobject

A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.

blockReasonenumOptional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt.BLOCK_REASON_UNSPECIFIED | SAFETY | OTHER | BLOCKLIST | PROHIBITED_CONTENT | IMAGE_SAFETY
safetyRatingsSafetyRating[]Ratings for safety of the prompt. There is at most one rating per category.

RetrievalMetadataobject

Metadata related to retrieval in the grounding flow.

googleSearchDynamicRetrievalScorenumberOptional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic ret…format: float

RetrievedContextobject

Chunk from context retrieved by the file search tool.

mediaIdstringOptional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}
fileSearchStorestringOptional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`
titlestringOptional. Title of the document.
textstringOptional. Text of the chunk.
uristringOptional. URI reference of the semantic retrieval document.
pageNumberintegerOptional. Page number of the retrieved context, if applicable.format: int32
customMetadataGroundingChunkCustomMetadata[]Optional. User-provided metadata about the retrieved context.

ReviewSnippetobject

Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps.

reviewIdstringThe ID of the review snippet.
googleMapsUristringA link that corresponds to the user review on Google Maps.
titlestringTitle of the review.

SafetyRatingobject

Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm cl…

blockedbooleanWas this content blocked because of this rating?
probabilityenumRequired. The probability of harm for this content.HARM_PROBABILITY_UNSPECIFIED | NEGLIGIBLE | LOW | MEDIUM | HIGH
categoryenumRequired. The category for this rating.HARM_CATEGORY_UNSPECIFIED | HARM_CATEGORY_DEROGATORY | HARM_CATEGORY_TOXICITY | HARM_CATEGORY_VIOLENCE | HARM_CATEGORY_SEXUAL | HARM_CATEGORY_MEDICAL · +7 more

SearchEntryPointobject

Google search entry point.

renderedContentstringOptional. Web content snippet that can be embedded in a web page or an app webview.
sdkBlobstringOptional. Base64 encoded JSON representing array of tuple.format: byte

SemanticRetrieverChunkobject

Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.

chunkstringOutput only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`
sourcestringOutput only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`

SpeechMetadataobject

Speech metadata for `text` parts.

stylestringOptional. Optional style instruction for the speech synthesis.
speakerstringOptional. Optional speaker name for multi-speaker synthesis.

ToolCallobject

A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in…

argsobjectOptional. The tool call arguments. Example: {"arg1" : "value1", "arg2" : "value2" , ...}
idstringOptional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.
toolNamestringOptional. The name of the tool that was called.
toolTypeenumRequired. The type of tool that was called.TOOL_TYPE_UNSPECIFIED | GOOGLE_SEARCH_WEB | GOOGLE_SEARCH_IMAGE | URL_CONTEXT | GOOGLE_MAPS | FILE_SEARCH · +1 more

ToolResponseobject

The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` mes…

idstringOptional. The identifier of the tool call this response is for.
toolTypeenumRequired. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.TOOL_TYPE_UNSPECIFIED | GOOGLE_SEARCH_WEB | GOOGLE_SEARCH_IMAGE | URL_CONTEXT | GOOGLE_MAPS | FILE_SEARCH · +1 more
responseobjectOptional. The tool response.

TopCandidatesobject

Candidates with top log probabilities at each decoding step.

candidatesLogprobsResultCandidate[]Sorted by log probability in descending order.

UrlContextMetadataobject

Metadata related to url context retrieval tool.

urlMetadataUrlMetadata[]List of url context.

UrlMetadataobject

Context of the a single url retrieval.

urlRetrievalStatusenumStatus of the url retrieval.URL_RETRIEVAL_STATUS_UNSPECIFIE… | URL_RETRIEVAL_STATUS_SUCCESS | URL_RETRIEVAL_STATUS_ERROR | URL_RETRIEVAL_STATUS_PAYWALL | URL_RETRIEVAL_STATUS_UNSAFE
retrievedUrlstringRetrieved url by the tool.

UsageMetadataobject

Metadata on the generation request's token usage.

promptTokenCountintegerNumber of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.format: int32
toolUsePromptTokenCountintegerOutput only. Number of tokens present in tool-use prompt(s).format: int32
promptTokensDetailsModalityTokenCount[]Output only. List of modalities that were processed in the request input.
totalTokenCountintegerTotal token count for the generation request (prompt + tool-use prompt + thoughts + response candidates).format: int32
cachedContentTokenCountintegerNumber of tokens in the cached part of the prompt (the cached content)format: int32
candidatesTokensDetailsModalityTokenCount[]Output only. List of modalities that were returned in the response.
candidatesTokenCountintegerTotal number of tokens across all the generated response candidates.format: int32
cacheTokensDetailsModalityTokenCount[]Output only. List of modalities of the cached content in the request input.
toolUsePromptTokensDetailsModalityTokenCount[]Output only. List of modalities that were processed for tool-use request inputs.
serviceTierenumOutput only. Service tier of the request.unspecified | standard | flex | priority
thoughtsTokenCountintegerOutput only. Number of tokens of thoughts for thinking models.format: int32

V1mainMediaResolutionobject

Media resolution for tokenization.

levelenumThe tokenization quality used for given media. for Gemini API support .MEDIA_RESOLUTION_UNSPECIFIED | MEDIA_RESOLUTION_LOW | MEDIA_RESOLUTION_MEDIUM | MEDIA_RESOLUTION_HIGH | MEDIA_RESOLUTION_ULTRA_HIGH

VideoMetadataobject

Metadata describes the input video content. Set this in `Part.video_metadata` or `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing (such as time clipping, frame rate, maximum frame co…

endOffsetstringOptional. The end offset of the video.format: google-duration
startOffsetstringOptional. The start offset of the video.format: google-duration
fpsnumberOptional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0].format: double

Webobject

Chunk from the web.

uristringOutput only. URI reference of the chunk.
titlestringOutput only. Title of the chunk.

WordInfoobject

Information about a single recognized word.

wordstringRequired. Transcript of the word.
endOffsetstringOptional. End offset in time of the word relative to the start of the audio.format: google-duration
startOffsetstringOptional. Start offset in time of the word relative to the start of the audio.format: google-duration

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"gemini","endpointId":"v1beta/models/{modelsId}:streamGenerateContent","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}