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

interface Image {
    b64_json?: string;
    revised_prompt?: string;
    url?: string;
}

Properties

b64_json?: string

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

revised_prompt?: string

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

url?: string

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