Everything you need to know about how to use the DALL·E (Images) API

Updated over a week ago

1. What is the DALL·E API and how can I access it?

The DALL·E API allows you to integrate state of the art image generation capabilities directly into your product. To get started, visit our developer guide.

2. How do I pay for the DALL·E API?

The API usage is offered on a pay-as-you-go basis and is billed separately from labs.openai.com. You can find pricing information on our pricing page.

For large volume discounts (>$5k/month), please contact sales.

3. Are there any API usage limits that I should be aware of?

The DALL·E API shares the usage limits with other OpenAI API services, which you can find on the rate limits page.

Additionally, org-level rate limits enforce a cap on the number of images you can generate per minute. To learn more, we encourage you to read our help article, "What's the rate limit for the DALL·E API?", which provides additional detail.

4. Are there any restrictions on the type of content I can generate?

Yes - please read our content policy to learn what's not allowed on the DALL·E API.

5. Can I sell the images I generate with the API? Can I use it in my application?

Subject to the Content Policy and Terms, you own the images you create with DALL·E, including the right to reprint, sell, and merchandise - regardless of whether an image was generated through a free or paid credit.

6. How are images returned by the endpoint?

The API can output images as URLs (response_format =url) or b64_json. Our developer guide includes more details.

7. Which version of DALL·E is available via the API?

You can find the supported versions of DALL·E on our models page.

8. Are the Edit function and Variations features available in the API?

Yes - but only with DALL·E 2, please see our developer guide.

9. Does the API support outpainting?

Yes, but only with DALL·E 2. There are many ways to use the /edits endpoint, including inpainting and outpainting.

10. How can I save output images as files?

The API can output images as URLs. You'll need to convert these to the format you need. Our developer guide includes more details.

11. How long do the generated URLs persist?

The URLs from the API will remain valid for one hour.

12. I'm stuck. How do I get help?

For general help, you can consult our developer guide and help center, or ask questions on our Community forum.

Did this answer your question?