Skip to main content

Interface: MediaImage

Defined in: packages/core/src/types/media.ts:5

Multimodal input: images, video frames, audio and files.

Extended by​

Properties​

cacheControl?​

optional cacheControl?: boolean

Defined in: packages/core/src/types/media.ts:10

Enable provider-side caching (e.g., Anthropic ephemeral cache). Reduces input token costs ~90% on repeated use within the cache TTL.


data​

data: string | Uint8Array<ArrayBufferLike> | Blob

Defined in: packages/core/src/types/media.ts:7

Base64 string, raw bytes, Blob, or URL string


mediaType​

mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"

Defined in: packages/core/src/types/media.ts:8