All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.aallam.openai.client.Images.kt Maven / Gradle / Ivy

There is a newer version: 4.0.0-beta01
Show newest version
package com.aallam.openai.client

import com.aallam.openai.api.image.*

/**
 * Given a prompt and/or an input image, the model will generate a new image.
 */
public interface Images {

    /**
     * Creates an image given a prompt.
     * Get images as URLs.
     */
    public suspend fun imageURL(creation: ImageCreation): List

    /**
     * Creates an image given a prompt.
     * Get images as base 64 JSON.
     */
    public suspend fun imageJSON(creation: ImageCreation): List

    /**
     * Creates an edited or extended image given an original image and a prompt.
     * Get images as URLs.
     */
    public suspend fun imageURL(edit: ImageEdit): List

    /**
     * Creates an edited or extended image given an original image and a prompt.
     * Get images as base 64 JSON.
     */
    public suspend fun imageJSON(edit: ImageEdit): List

    /**
     * Creates a variation of a given image.
     * Get images as URLs.
     */
    public suspend fun imageURL(variation: ImageVariation): List

    /**
     * Creates a variation of a given image.
     * Get images as base 64 JSON.
     */
    public suspend fun imageJSON(variation: ImageVariation): List
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy