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

Object Fields

b64_json
string
Base64 encoded JSON of the generated image, if response_format is b64_json.
url
string
URL of the generated image, if response_format is url (default).
revised_prompt
string
The prompt that was used to generate the image, if there were any revisions to the original prompt.

Example

{
  "url": "https://example.com/generated-image.png",
  "revised_prompt": "A serene landscape with rolling hills under a golden sunset sky, photorealistic style"
}