The image object

Represents the url or the content of an image generated by the OpenAI API.source

The base64-encoded JSON of the generated image, if response_format is b64_json.source

The URL of the generated image, if response_format is url (default).source

The prompt that was used to generate the image, if there was any revision to the prompt.source

OBJECT The image object
1
2
3
4
{
  "url": "...",
  "revised_prompt": "..."
}