Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = cli.Command{
Name: "image",
Action: cmdCreate,
Flags: []cli.Flag{
flagPrompt,
flagN,
flagSize,
flagFormat,
flagUser,
},
}
Functions ¶
This section is empty.
Types ¶
type ImageReq ¶
type ImageReq struct { Prompt string `json:"prompt"` // A text description of the desired image(s). The maximum length is 1000 characters. N int `json:"n"` // The number of images to generate. Must be between 1 and 10. Size string `json:"size"` // The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024. ResponseFormat string `json:"response_format"` // The format in which the generated images are returned. Must be one of url or b64_json. User Role `json:"user"` }
Click to show internal directories.
Click to hide internal directories.