Skip to main content

Multimodal Inputs

UserMessage.content accepts either plain text or an ordered list of multimodal parts.

Source Types

Use source.type to describe payload delivery:
  • data: Inline base64 payload with required mime_type
  • url: HTTP(S) or data URL, optional mime_type

Common Use Cases

Visual QA

Audio transcription

Deprecated binary model

BinaryInputContent is deprecated and emits a DeprecationWarning. It is kept as a temporary compatibility path while migrating to modality-specific parts.