openai.createRemoteImage

Creates an image from the prompt, returning RemoteImage.

The function accepts the same parameters as openai.createImage, but instead of returning the result of OpenAI API call, wraps the returned URL in a RemoteImage with the title taken from prompt.

Syntax

createRemoteImage(params)

Parameters

Return value

A RemoteImage referencing the generated image.

Example

await openai.createRemoteImage({
  prompt: "Oriental cat, painting by Dali",
  size: "256x256"
})


External resources

See also