WaveSpeedAI APIOpenaiOpenai Dall E 2

Openai Dall E 2

Openai Dall E 2

Playground

Try it on WavespeedAI!

Original DALL-E 2 from OpenAI for classic text-to-image generation via the OpenAI Image Generation API. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Features

OpenAI DALL-E 2

Create imaginative images from text descriptions with OpenAI’s DALL-E 2 — a pioneering text-to-image model known for its artistic versatility and creative interpretation. From oil paintings to digital art, DALL-E 2 transforms your words into visually compelling artwork with distinctive style.

Looking for higher fidelity? Try GPT-Image-1 High Fidelity for maximum quality output.

Why It Looks Great

  • Artistic versatility: Excels at various art styles — oil painting, watercolor, impressionism, digital art, and more.
  • Creative interpretation: Adds artistic flair and imagination to your descriptions.
  • Proven reliability: Battle-tested model with consistent, dependable results.
  • Prompt Enhancer: Built-in tool to refine and expand your descriptions automatically.
  • Affordable quality: Strong artistic generation at a competitive price point.

Parameters

ParameterRequiredDescription
promptYesText description of the image you want to generate.

How to Use

  1. Write your prompt — describe your image with details about subject, style, colors, and mood.
  2. Use Prompt Enhancer (optional) — click to automatically enrich your description.
  3. Run — click the button to generate.
  4. Download — preview and save your generated image.

Pricing

Flat rate per image generation.

OutputCost
Per image$0.12

Best Use Cases

  • Artistic Illustrations — Generate paintings, sketches, and artistic interpretations.
  • Creative Exploration — Experiment with visual ideas and artistic directions.
  • Concept Visualization — Bring abstract ideas to life with artistic rendering.
  • Social Media Content — Create unique, eye-catching visuals for posts.
  • Mood Boards & Inspiration — Generate reference imagery for creative projects.

Example Prompts

  • “A calm river winding through a misty forest, oil painting style, soft blending, impressionistic colors, morning light”
  • “A cozy bookshop interior with warm lighting, watercolor illustration, soft edges”
  • “Surreal floating islands with waterfalls, digital art, vibrant fantasy colors”
  • “Portrait of a cat wearing a Renaissance collar, classical oil painting style”
  • “Abstract geometric cityscape at sunset, art deco poster design”

Pro Tips for Best Results

  • Specify the art style explicitly — “oil painting”, “watercolor”, “impressionistic”, “digital art”.
  • Include color and lighting details — “soft blending”, “morning light”, “warm tones”.
  • Describe mood and atmosphere for more evocative results.
  • Use the Prompt Enhancer to add artistic terminology to simple ideas.
  • DALL-E 2 interprets creatively — embrace the artistic interpretation.
  • Combine subject matter with style references for best results.

Notes

  • DALL-E 2 is optimized for artistic and creative imagery.
  • Processing time is typically fast and consistent.
  • For photorealistic needs, consider GPT-Image-1 variants.

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/openai/dall-e-2" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "enable_base64_output": false
}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-The positive prompt for the generation.
enable_base64_outputbooleanNofalse-If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction, the ID of the prediction to get
data.modelstringModel ID used for the prediction
data.outputsstringArray of URLs to the generated content (empty when status is not completed).
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.