MessageContentRequest.CreateImageFileContent

MessageContentRequest.CreateImageFileContent method

Creates an image file content for a message.

public static MessageContentRequest CreateImageFileContent(string fileId, string detail = "auto")
ParameterTypeDescription
fileIdStringThe ID of the image file.
detailStringThe detail of the image file. 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 ImageFile content.

See Also