View Source ExOpenAI.Components.ImagesResponse (ex_openai.ex v2.0.0-beta2)
The response from the image generation endpoint.
Fields
:background- optional -:transparent | :opaque
The background parameter used for the image generation. Eithertransparentoropaque.
Allowed values:"transparent","opaque":created- required -integer()
The Unix timestamp (in seconds) of when the image was created.:data- optional -[ExOpenAI.Components.Image.t()]
The list of generated images.:output_format- optional -:png | :webp | :jpeg
The output format of the image generation. Eitherpng,webp, orjpeg.
Allowed values:"png","webp","jpeg":quality- optional -:low | :medium | :high
The quality of the image generated. Eitherlow,medium, orhigh.
Allowed values:"low","medium","high":size- optional -:"1024x1024" | :"1024x1536" | :"1536x1024"
The size of the image generated. Either1024x1024,1024x1536, or1536x1024.
Allowed values:"1024x1024","1024x1536","1536x1024":usage- optional -ExOpenAI.Components.ImageGenUsage.t()
Summary
Types
@type t() :: %ExOpenAI.Components.ImagesResponse{ background: (:transparent | :opaque) | nil, created: integer(), data: [ExOpenAI.Components.Image.t()] | nil, output_format: ((:png | :webp) | :jpeg) | nil, quality: ((:low | :medium) | :high) | nil, size: ((:"1024x1024" | :"1024x1536") | :"1536x1024") | nil, usage: ExOpenAI.Components.ImageGenUsage.t() | nil }