Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai_deno/mod.ts>CreateImageParams

OpenAI API wrapper for deno.
Latest
interface CreateImageParams
Re-export
import { type CreateImageParams } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

Properties

optional
model: "dall-e-2" | "dall-e-3" | string
optional
count: number

The number of images to generate. Must be between 1 and 10.

optional
quality: "standard" | "hd" | string
optional
size:
| "256x256"
| "512x512"
| "1024x1024"
| "1792x1024"
| "1024x1792"
| string

The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.

optional
responseFormat: "url" | "b64_json" | string

The format in which the generated images are returned. Must be one of url or b64_json.

optional
style:
| "vivid"
| "natural"
| string
| null
optional
user: string

A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.