View Source ExOpenAI.Components.Image (ex_openai.ex v2.0.0-beta2)
Represents the content or the URL of an image generated by the OpenAI API.
Fields
:b64_json- optional -String.t()
The base64-encoded JSON of the generated image. Returned by default for the GPT image models, and only present ifresponse_formatis set tob64_jsonfordall-e-2anddall-e-3.:revised_prompt- optional -String.t()
Fordall-e-3only, the revised prompt that was used to generate the image.:url- optional -String.t()
When usingdall-e-2ordall-e-3, the URL of the generated image ifresponse_formatis set tourl(default value). Unsupported for the GPT image models.