Skip to content

OpenAI.Image.CreateVariation

Andrew Lambert edited this page Jan 31, 2023 · 2 revisions

OpenAI.Image.CreateVariation

Method signatures

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

Parameters

CreateVariation(OpenAI.Request)

Name Type Comment
Request Request An OpenAI request object.

CreateVariation(Picture, String, Boolean)

Name Type Comment
Prompt Picture A Picture object for the AI to modify.
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.

See also

Clone this wiki locally