D

DALL-E 3

Image Generation

by OpenAI

OpenAI's most advanced image generation model, capable of creating highly detailed and accurate images from text descriptions with excellent prompt following.

Official APIDocumentation$5 in free credits

Registration & API Key Steps

1

Create OpenAI Account

Visit platform.openai.com and sign up with email, Google, or Microsoft account.

Open link
2

Verify Phone Number

Complete phone number verification. A valid phone number is required.

3

Get API Key

Navigate to API Keys section in your account settings and create a new secret key.

Open link
4

Add Payment Method (Optional)

New accounts receive $5 in free credits. Add a credit card for continued usage after credits expire.

Open link

Pricing

TierPriceFeatures
DALL-E 3 Standard 1024x1024$0.040 / imageStandard quality, 1024x1024 resolution, Fast generation
DALL-E 3 Standard 1792x1024$0.080 / imageStandard quality, 1792x1024 or 1024x1792 resolution, Wide/tall format
DALL-E 3 HD 1024x1024$0.080 / imageHD quality, 1024x1024 resolution, Higher detail and consistency
DALL-E 3 HD 1792x1024$0.120 / imageHD quality, 1792x1024 or 1024x1792 resolution, Best quality option

Application Tips

Use Detailed Prompts

DALL-E 3 works best with detailed, descriptive prompts. Unlike DALL-E 2, it can understand complex scenes and compositions.

Free Credits for New Users

New OpenAI API accounts receive $5 in free credits valid for 3 months. At standard 1024x1024, that is about 125 images.

Consider GPT Image 1 for Newer Features

OpenAI has released GPT Image 1 (gpt-image-1) as the next generation. GPT Image 1 Mini offers lower cost at $0.005/image for low quality.

China Access Solutions

API Proxy Services

Use third-party API proxy services that relay requests to OpenAI. Examples include api2d.com, openai-sb.com.

Cloud Server Relay

Deploy a relay server on overseas cloud providers (AWS, GCP, Azure) to forward API requests.

Code Example

JavaScript / TypeScript
import OpenAI from 'openai';

const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });

async function generateImage() {
  const response = await openai.images.generate({
    model: 'dall-e-3',
    prompt: 'A futuristic cityscape at sunset with flying cars and neon lights',
    n: 1,
    size: '1024x1024',
    quality: 'standard', // or 'hd'
  });

  console.log('Image URL:', response.data[0].url);
  console.log('Revised prompt:', response.data[0].revised_prompt);
}

generateImage();

Rate Limits

TierLimits
Tier 15 images/min
Tier 27 images/min
Tier 37 images/min
Tier 415 images/min
Tier 550 images/min

Recommended Use Cases

Marketing & advertising visualsBlog & article illustrationsProduct concept artSocial media contentRapid prototyping of visual ideas
Last Updated: 2025-02

Related API Guides