DALL·E API
DALL·E is OpenAI's text-to-image model. Generate images with DALL·E 2 and 3 through Puter.js — no API keys, no OpenAI account, no backend.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.txt2img("A futuristic city skyline at sunset, cinematic lighting", {
model: "openai/dall-e-3"
}).then(image => {
document.body.appendChild(image);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.txt2img("A futuristic city skyline at sunset, cinematic lighting", {
model: "openai/dall-e-3"
}).then(image => {
document.body.appendChild(image);
});
</script>
</body>
</html>
The DALL·E API for OpenAI Image Generation
Text-to-Image
Generate images from a text prompt with OpenAI's DALL·E models in a single call.
Edits & Variations
DALL·E supports image edits (inpainting with masks) and variations of an existing image.
Sizes & Quality
Choose output size and quality (standard or HD on DALL·E 3) to match your use case.
No OpenAI Account
Skip the API key and billing setup the official DALL·E API requires — Puter handles access.
Newer: GPT Image
For OpenAI's latest image model, see the GPT Image API, the DALL·E successor.
No Keys, User-Pays
No API key or per-image billing — your users cover their own usage, free for you to ship.
Use DALL·E in Seconds
Add DALL·E to your app with just a few lines of code.
No API keys, no backend, no configuration required.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.txt2img("A futuristic city skyline at sunset, cinematic lighting", {
model: "openai/dall-e-3"
}).then(image => {
document.body.appendChild(image);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.txt2img("A futuristic city skyline at sunset, cinematic lighting", {
model: "openai/dall-e-3"
}).then(image => {
document.body.appendChild(image);
});
</script>
</body>
</html>
Frequently Asked Questions
The DALL·E API lets you generate images from text prompts using OpenAI's DALL·E text-to-image models — including DALL·E 3 — through Puter.js, with no API keys and no backend.
Yes, it is free for you as the developer when you use it through Puter.js. With the User-Pays model, each of your users covers their own usage through their Puter account, so you can ship DALL·E-powered apps at no cost to you.
Start with DALL·E 3 as your default. Lighter or faster variants trade some quality for speed and cost — compare them in the table above and pick the one that fits your use case.
Many DALL·E models support image editing and image-to-image generation alongside text-to-image. See the Puter.js documentation for what each model supports.
DALL·E 3 costs about $0.04 per image at the API level. Through Puter.js it is free for you as the developer — your users cover their own usage under the User-Pays model, with no per-image billing or keys to manage.
No. Puter.js handles authentication and infrastructure for you, so you can use the DALL·E API without any API key, an OpenAI account, a server, or any configuration.
Yes — the DALL·E API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building.
Related Resources
Learn how to use DALL·E and other models with Puter.js.