Ask a question to get started
Enter to sendā¢Shift+Enter new line
ImageContentBlock()
TypedDict
Type of the content block. Used for discrimination.
Unique identifier for this content block.
Either:
UUID4
'lc_'
Reference to the image in an external file storage system.
For example, OpenAI or Anthropic's Files API.
MIME type of the image.
Required for base64 data.
Examples from IANA
Index of block in aggregate response. Used during streaming.
URL of the image.
Data as a base64 string.
Provider-specific metadata. This shouldn't be used for the image data itself.
Image data.
create_image_block may also be used as a factory to create an ImageContentBlock. Benefits include:
create_image_block
ImageContentBlock