imageJSON
abstract suspend fun imageJSON(creation: ImageCreation, requestOptions: RequestOptions? = null): List<ImageJSON>
Creates an image given a prompt. Get images as base 64 JSON.
Parameters
creation
image creation request.
requestOptions
request options.
abstract suspend fun imageJSON(edit: ImageEdit, requestOptions: RequestOptions? = null): List<ImageJSON>
Creates an edited or extended image given an original image and a prompt. Get images as base 64 JSON.
Parameters
edit
image edit request.
requestOptions
request options.
abstract suspend fun imageJSON(variation: ImageVariation, requestOptions: RequestOptions? = null): List<ImageJSON>
Creates a variation of a given image. Get images as base 64 JSON.
Parameters
variation
image variation request.
requestOptions
request options.