Skip to content

OpenAI.Image.Generate

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

OpenAI.Image.Generate (Deprecated)

Method signatures

 Shared Function Generate(Request As OpenAI.Request) As OpenAI.Image
 Shared Function Generate(Prompt As String, Size As String = "1024x1024", AsURL As Boolean = False) As OpenAI.Image

Parameters

Generate(OpenAI.Request)

Name Type Comment
Request Request An OpenAI request object.

Generate(String, String, Boolean)

Name Type Comment
Prompt String A description of the image to generate.
Size String Optional. One of: "1024x1024", "512x512", or "256x256"
AsURL Boolean Optional. If True then a URL to the resulting picture is returned instead of the picture itself.

Return value

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

Remarks

This method has been deprecated in favor of Image.Create.

See also

Clone this wiki locally