Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method OpenAI.prototype.createImageVariation
import { OpenAI } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

Creates a variation of a given image.

Parameters

image: string | BlobPart

The image(or image path) to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.

optional
params: CreateImageParams

Optional parameters for the API.

optional
filename: string

Returns

URLs(or base64 encoded) of the generated images.