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

x/openai/resources/images.ts>Image

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
interface Image
import { type Image } from "https://deno.land/x/openai@v4.33.1/resources/images.ts";

Represents the url or the content of an image generated by the OpenAI API.

Properties

optional
b64_json: string

The base64-encoded JSON of the generated image, if response_format is b64_json.

optional
revised_prompt: string

The prompt that was used to generate the image, if there was any revision to the prompt.

optional
url: string

The URL of the generated image, if response_format is url (default).