Instance Propertymacpaw.openai 0.3.3OpenAI
url
The URL of the generated image, if response_format is url (default).
let url: String?
The URL of the generated image, if response_format is url (default).
let url: String?
import OpenAI
struct Image
Represents the url or the content of an image generated by the OpenAI API.
struct ImagesResult
Returns a list of image objects.
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
let b64Json: String?
The base64-encoded JSON of the generated image, if response_format is b64_json
let revisedPrompt: String?
The prompt that was used to generate the image, if there was any revision to the prompt.
enum CodingKeys