Skip to main content
Definable provides unified media classes for handling images, audio, video, and files. These work consistently across all models and agents that support multimodal input and output.

Image

Image Parameters

Image Output Fields

When a model generates an image:

Audio

Audio Parameters

Video

Video Parameters

File

File Parameters

Common Methods

All media types share these methods:

Using with Models

Pass media in messages:

Using with Agents

Pass media directly to agent runs:
Each media type requires exactly one content source (url, filepath, or content). Providing none or multiple sources raises a validation error. The File type additionally supports an external source for provider-specific file objects.