Skip to content

OpenAI.Image.Create

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

OpenAI.Image.Create

Method signatures

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

Parameters

Create(OpenAI.Request)

Name Type Comment
Request Request An OpenAI request object.

Create(String, String, Boolean)

Name Type Comment
Prompt String A description of the image to generate.
Size String Optional. One of: "256x256", "512x512", or "1024x1024" for dall-e-2; one of "1024x1024", "1792x1024", or "1024x1792" for dall-e-3.
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.

See also

Clone this wiki locally