AnthropicImageBlock
An image content block using base64-encoded data. Anthropic requires images as base64 with an explicit media type.
Class Diagram
Section titled “Class Diagram”---
title: AnthropicImageBlock
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class AnthropicImageBlock {
+string type
+AnthropicImageSource source
}
class AnthropicImageSource {
+string type
+string media_type
+string data
}
AnthropicImageBlock *-- AnthropicImageSource
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| type | string | The content block type |
| source | AnthropicImageSource | The image source (base64-encoded) |
Composed Types
Section titled “Composed Types”The following types are composed within AnthropicImageBlock: