input_image: Create Input Image Block

View source: R/content_blocks.R

input_imageR Documentation

Create Input Image Block

Description

Create a provider-neutral image block for multimodal message content. Supports local files, remote URLs, and data URIs.

Usage

input_image(x, media_type = "auto", detail = "auto")

Arguments

x

Image source as a local file path, remote URL, or data URI.

media_type

MIME type of the image. If NULL or "auto", attempts to infer from the source.

detail

Optional image detail hint for providers that support it.

Value

A list representing an input image block.


aisdk documentation built on May 29, 2026, 9:07 a.m.