A content blob.
A blob contains data of a specific media type. It is used to represent images, audio, and video.
mimeTypestring
Required. The IANA standard MIME type of the source data.
Required. The raw bytes of the data.
A base64-encoded string.
displayNamestring
Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs.
This field is only returned in PromptMessage for prompt management. It is used in the Gemini calls only when server-side tools (codeExecution, googleSearch, and urlContext) are enabled.
| JSON representation |
|---|
{ "mimeType": string, "data": string, "displayName": string } |