imageFromUrl
imageFromUrl(
url):ImageContentPart
Defined in: core/input-content.ts:194
Create an image content part from a URL. Note: Only supported by OpenAI.
Parameters
Section titled “Parameters”string
URL to the image (must be accessible)
Returns
Section titled “Returns”Example
Section titled “Example”const part = imageFromUrl("https://example.com/image.jpg");