The Images API provides three methods for interacting with images:
- Creating images from scratch based on a text prompt
- Creating edits of an existing image based on a new text prompt
- Creating variations of an existing image
See https://beta.openai.com/docs/guides/images
create : Input -> Ext.Http.TaskInput (Ext.Http.Error String) Output
https://beta.openai.com/docs/api-reference/images/create
createEdit : EditsInput -> Ext.Http.TaskInput (Ext.Http.Error String) Output
https://beta.openai.com/docs/api-reference/images/create-edit
createVariation : ImageVariationInput -> Ext.Http.TaskInput (Ext.Http.Error String) Output
https://beta.openai.com/docs/api-reference/images/create-variation
{ prompt : String
, n : Maybe Basics.Int
, size : Maybe Size
, response_format : Maybe ResponseFormat
, user : Maybe String
}
{ image : OpenAI.Common.BinaryBlob
, mask : Maybe OpenAI.Common.BinaryBlob
, prompt : String
, n : Maybe Basics.Int
, size : Maybe Size
, response_format : Maybe ResponseFormat
, user : Maybe String
}