MessageContentRequest.CreateImageUrlContent

MessageContentRequest.CreateImageUrlContent method

Creates an image URL content for a message.

public static MessageContentRequest CreateImageUrlContent(string imageUrl, string detail = "auto")
ParameterTypeDescription
imageUrlStringThe URL of the image.
detailStringThe detail of the image URL. Specifies the detail level of the image if specified by the user. “low” uses fewer tokens, you can opt in to high resolution using “high”. Default is “auto”.

Return Value

A new instance of MessageContentRequest with ImageUrl content.

See Also