Back to all models
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_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 with blue eyes",
size="1024x1024",
quality="standard",
n=1,
)
image_url = response.data[0].url
Required Libraries
openai
openai
Notes
DALL·E is an AI system that creates realistic images and art from a natural language description. Older than DALL·E 3, DALL·E 2 offers more control in prompting and more requests at once.
Capabilities
Supported Data Types
Input Types
text
Output Types
image
Strengths & Weaknesses
Exceptional at
image generation from text
Good at
control in prompting
handling multiple requests
Additional Information
Latest Update
Apr 1, 2022
Knowledge Cutoff
No data