upload
Uploads a new image to the system from a file. This method is used to create a new Image object by uploading an image file.
upload(body: ImageUploadParams, options?: RequestOptions): APIPromise<ImageObject>;
createFromURL
Creates a new image by downloading it from a URL. This method is used when you have an image hosted online and want to import it into the system.
createFromURL(body: ImageCreateFromURLParams, options?: RequestOptions): APIPromise<ImageObject>;
imagine
Generates a new image using AI based on a text prompt. This method allows you to create images from textual descriptions.
imagine(body: ImageImagineParams, options?: RequestOptions): APIPromise<ImageObject>;