Skip to content

image

Classes:

Name Description
Image

Image

Attributes:

Name Type Description
b64_json Optional[str]

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

revised_prompt Optional[str]

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

url Optional[str]

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

b64_json class-attribute instance-attribute

b64_json: Optional[str] = None

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

revised_prompt class-attribute instance-attribute

revised_prompt: Optional[str] = None

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

url class-attribute instance-attribute

url: Optional[str] = None

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