Logo
Back to all models

DALL·E 2 - In-Depth Overview

OpenAI · DALL·E

outdated

Get all the details on DALL·E 2, an AI model from OpenAI. This page covers its token limits, pricing structure, key capabilities such as image_editing, image_generation, inpainting, available API code samples, and performance strengths.

Key Metrics

Input Limit

No data tokens

Output Limit

No data tokens

Input Cost

N/A/1M

Output Cost

N/A/1M

Sample API Code

from openai import OpenAI

client = OpenAI()

response = client.images.generate(
  model="dall-e-2",
  prompt="a white cat",
  size="1024x1024",
  quality="standard",
  n=1,
)

image_url = response.data[0].url

Required Libraries

openai
openai

Notes

Our first image generation model. Older than DALL·E 3, DALL·E 2 offers more control in prompting and more requests at once.

Capabilities

image editing
image generation
inpainting

Supported Data Types

Input Types

text

Output Types

image

Strengths & Weaknesses

Good at

Image generation
Image editing
Inpainting
More control in prompting (compared to DALL-E 3)
More requests at once (compared to DALL-E 3)

Additional Information

Latest Update

Apr 6, 2022

Knowledge Cutoff

No data