Skip to content

imageFromUrl

imageFromUrl(url): ImageContentPart

Defined in: core/input-content.ts:194

Create an image content part from a URL. Note: Only supported by OpenAI.

string

URL to the image (must be accessible)

ImageContentPart

const part = imageFromUrl("https://example.com/image.jpg");