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

x/openai/resources/mod.ts>Images#generate

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Images.prototype.generate
import { Images } from "https://deno.land/x/openai@v4.21.0/resources/mod.ts";

Creates an image given a prompt.

Parameters

optional
options: Core.RequestOptions

Returns

Core.APIPromise<ImagesResponse>