Blob

A content blob.

A blob contains data of a specific media type. It is used to represent images, audio, and video.

Fields
mimeType string

Required. The IANA standard MIME type of the source data.

data string (bytes format)

Required. The raw bytes of the data.

A base64-encoded string.

displayName string

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
}