Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/images.ts>Images

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
namespace Images
import { Images } from "https://deno.land/x/openai@v4.24.3/resources/images.ts";
class Images
extends APIResource
import { Images } from "https://deno.land/x/openai@v4.24.3/resources/images.ts";

Methods

createVariation(body: ImageCreateVariationParams, options?: Core.RequestOptions): Core.APIPromise<ImagesResponse>

Creates a variation of a given image.

edit(body: ImageEditParams, options?: Core.RequestOptions): Core.APIPromise<ImagesResponse>

Creates an edited or extended image given an original image and a prompt.

generate(body: ImageGenerateParams, options?: Core.RequestOptions): Core.APIPromise<ImagesResponse>

Creates an image given a prompt.