HiDream

HiDream API

Access HiDream instantly with Puter.js, and add AI to any app in a few lines of code without backend or API keys.

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.txt2img("A beautiful sunset", {
    model: "hidream-ai/hidream-i1-dev"
}).then(imageElement => {
    document.body.appendChild(imageElement);
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.txt2img("A beautiful sunset", {
            model: "hidream-ai/hidream-i1-dev"
        }).then(imageElement => {
            document.body.appendChild(imageElement);
        });
    </script>
</body>
</html>

List of HiDream Models

Image

I1-Dev

hidream-ai/hidream-i1-dev

HiDream I1 Dev is a guidance-distilled, 17-billion-parameter text-to-image model from HiDream AI, built on a sparse Diffusion Transformer architecture with dynamic Mixture-of-Experts layers. It runs in approximately 28 diffusion steps, placing it between the Full and Fast variants in the speed-quality tradeoff. Because it is distillation-trained, negative prompts are not required — the classifier-free guidance scale should be set to 1.0 during sampling. I1 Dev is well-suited for iterative development workflows, concept exploration, and production pipelines where response time matters but image fidelity cannot be fully sacrificed. It also supports LoRAs for style control.

Image

I1-Fast

hidream-ai/hidream-i1-fast

HiDream I1 Fast is the lowest-latency variant of HiDream AI's 17-billion-parameter text-to-image model family, completing generation in as few as 14-16 diffusion steps. Like the Dev variant, it is distillation-trained and does not require negative prompts. It is the best-fit variant for latency-sensitive API integrations, delivering strong image quality for its step count. I1 Fast is the right choice for real-time generation features, high-throughput batch pipelines, or user-facing products where responsiveness is the primary constraint. Maximum fidelity is reserved for the Full variant.

Image

I1-Full

hidream-ai/hidream-i1-full

HiDream I1 Full is the flagship text-to-image model from HiDream AI, a 17-billion-parameter sparse Diffusion Transformer that delivers the highest output quality in the I1 family through 50+ diffusion steps. On verified benchmarks, it scores 0.83 on GenEval (vs. 0.67 for DALL-E 3 and 0.66 for FLUX.1-dev), 85.89 on DPG-Bench for prompt adherence, and 33.82 on HPS v2.1 (vs. 32.47 for FLUX.1-dev and 31.44 for DALL-E 3). It supports negative prompts with a guidance scale of 5.0 for finer output control. I1 Full is the best choice when image quality, prompt fidelity, and detail richness are the top priorities — ideal for asset generation, creative production, and high-stakes visual content pipelines.

Frequently Asked Questions

What is this HiDream API about?

The HiDream API gives you access to models for AI image generation. Through Puter.js, you can start using HiDream models instantly with zero setup or configuration.

Which HiDream models can I use?

Puter.js supports a variety of HiDream models, including I1-Dev, I1-Fast, and I1-Full. Find all AI models supported by Puter.js in the AI model list.

How much does it cost?

With the User-Pays model, users cover their own AI costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.

What is Puter.js?

Puter.js is a JavaScript library that provides access to AI, storage, and other cloud services directly from a single API. It handles authentication, infrastructure, and scaling so you can focus on building your app.

Does this work with React / Vue / Vanilla JS / Node / etc.?

Yes — the HiDream API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building. See the documentation for more details.