main
 1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
 2
 3from typing import Optional
 4
 5from .._models import BaseModel
 6
 7__all__ = ["Image"]
 8
 9
10class Image(BaseModel):
11    b64_json: Optional[str] = None
12    """The base64-encoded JSON of the generated image.
13
14    Default value for `gpt-image-1`, and only present if `response_format` is set to
15    `b64_json` for `dall-e-2` and `dall-e-3`.
16    """
17
18    revised_prompt: Optional[str] = None
19    """For `dall-e-3` only, the revised prompt that was used to generate the image."""
20
21    url: Optional[str] = None
22    """
23    When using `dall-e-2` or `dall-e-3`, the URL of the generated image if
24    `response_format` is set to `url` (default value). Unsupported for
25    `gpt-image-1`.
26    """