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
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image you want to generate. |
How to Use
- Write your prompt — describe your image with details about subject, style, colors, and mood.
- Use Prompt Enhancer (optional) — click to automatically enrich your description.
- Run — click the button to generate.
- Download — preview and save your generated image.
Pricing
Flat rate per image generation.
| Output | Cost |
|---|---|
| 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
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| prompt | string | Yes | - | The positive prompt for the generation. | |
| enable_base64_output | boolean | No | false | - | 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
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated content (empty when status is not completed). |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |