image object

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

When creating images, if you want to upload an image file, you must upload a #1 file that is less than 4MB locally.

b64_json

string

If response_format is b64_json, base64 encoded JSON of the image is generated

url

string

If response_format is url(default), the URL of the image is generated

revised_prompt

string

Tips used to generate images if there are any revisions to the tips

{
  "url": "...",
  "revised_prompt": "..."
}

Last updated