Skip to content

OpenAI.ImageRecognition.Create

Andrew Lambert edited this page Jan 15, 2024 · 2 revisions

Method signatures

 Shared Function Create(Request As OpenAI.Request) As OpenAI.ImageRecognition
 Shared Function Create(Prompt As String, Images() As Picture, MaxTokens As Integer = 300, Model As OpenAI.Model = Nil) As OpenAI.ImageRecognition
 Shared Function Create(Prompt As String, Image As Picture, MaxTokens As Integer = 300, Model As OpenAI.Model = Nil) As OpenAI.ImageRecognition
 Shared Function Create(Prompt As String, ImageURLs() As String, MaxTokens As Integer = 300, Model As OpenAI.Model = Nil) As OpenAI.ImageRecognition
 Shared Function Create(Prompt As String, ImageURL As String, MaxTokens As Integer = 300, Model As OpenAI.Model = Nil) As OpenAI.ImageRecognition
 Shared Function Create(Prompt As String, Images() As FolderItem, MaxTokens As Integer = 300, Model As OpenAI.Model = Nil) As OpenAI.ImageRecognition
 Shared Function Create(Prompt As String, Image As FolderItem, MaxTokens As Integer = 300, Model As OpenAI.Model = Nil) As OpenAI.ImageRecognition

Parameters

Create(OpenAI.Request)

Name Type Comment
Request Request An OpenAI request object.

Create(String, Picture(), Integer, OpenAI.Model)

Name Type Comment
Prompt String The user's prompt. For example, "what is this a picture of?"
Images Picture array Two or more images to be interpreted according to the Prompt.
MaxTokens Integer Optional. The maximum number of tokens to consume in the request.
Model Model Optional. An AI model to use for the request. If not specified then gpt-4-vision-preview is used.

Create(String, Picture, Integer, OpenAI.Model)

Name Type Comment
Prompt String The user's prompt. For example, "what is this a picture of?"
Images Picture An image to be interpreted according to the Prompt.
MaxTokens Integer Optional. The maximum number of tokens to consume in the request.
Model Model Optional. An AI model to use for the request. If not specified then gpt-4-vision-preview is used.

Create(String, String(), Integer, OpenAI.Model)

Name Type Comment
Prompt String The user's prompt. For example, "what is this a picture of?"
ImageURLs String array Two or more image URLs to be interpreted according to the Prompt.
MaxTokens Integer Optional. The maximum number of tokens to consume in the request.
Model Model Optional. An AI model to use for the request. If not specified then gpt-4-vision-preview is used.

Create(String, String, Integer, OpenAI.Model)

Name Type Comment
Prompt String The user's prompt. For example, "what is this a picture of?"
ImageURL Picture An image URL to be interpreted according to the Prompt.
MaxTokens Integer Optional. The maximum number of tokens to consume in the request.
Model Model Optional. An AI model to use for the request. If not specified then gpt-4-vision-preview is used.

Create(String, FolderItem(), Integer, OpenAI.Model)

Name Type Comment
Prompt String The user's prompt. For example, "what is this a picture of?"
Images FolderItem array Two or more image files to be interpreted according to the Prompt.
MaxTokens Integer Optional. The maximum number of tokens to consume in the request.
Model Model Optional. An AI model to use for the request. If not specified then gpt-4-vision-preview is used.

Create(String, FolderItem, Integer, OpenAI.Model)

Name Type Comment
Prompt String The user's prompt. For example, "what is this a picture of?"
Image FolderItem An image file to be interpreted according to the Prompt.
MaxTokens Integer Optional. The maximum number of tokens to consume in the request.
Model Model Optional. An AI model to use for the request. If not specified then gpt-4-vision-preview is used.

Return value

Returns a new instance of OpenAI.ImageRecognition containing the response to the query.

Clone this wiki locally