Ship a Full-Stack App with One Prompt

Copy this prompt into your AI coding agent, or open it in one below.

Give this to your AI Create a to-do list app using Puter.js

Coding manually? see the guide

ByteDance: SDXL Lightning

bytedance/stable-diffusion-xl-lightning

Access SDXL Lightning from ByteDance using the Puter.js AI API.

Get Started

Model Card

SDXL Lightning is ByteDance's distilled version of Stability AI's Stable Diffusion XL, built to produce high-quality 1024px images in as few as 1 to 8 diffusion steps instead of the dozens a standard SDXL run needs. It comes from a progressive adversarial diffusion distillation method described in ByteDance's SDXL-Lightning paper, which first trains on mean squared error loss across many timesteps and then adds an adversarial discriminator to sharpen detail as the step count drops.

ByteDance describes the 2-step, 4-step, and 8-step configurations as producing consistently good results, while the 1-step variant is more experimental and less stable. Served here through Cloudflare Workers AI, it suits use cases where generation speed and low latency matter more than squeezing out the highest possible fidelity, such as rapid prototyping or applications generating many images per request.

Cost Per Image $0.00

per generation

Configuration step

resolution

Release Date Feb 21, 2024

 

Code Example

Use SDXL Lightning in your app with the Puter.js AI API — no API keys or setup required.

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

puter.ai.txt2img("A serene mountain landscape at sunset", {
    model: "bytedance/stable-diffusion-xl-lightning"
}).then(image => {
    document.body.appendChild(image);
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.txt2img("A serene mountain landscape at sunset", {
            model: "bytedance/stable-diffusion-xl-lightning"
        }).then(image => {
            document.body.appendChild(image);
        });
    </script>
</body>
</html>

More AI Models From ByteDance

Find other ByteDance models

Chat

Seed 2.1 Turbo

Seed 2.1 Turbo is the faster, lower-cost variant in ByteDance's Seed 2.1 family, a model line built for coding, long-horizon agent tasks, and multimodal understanding. It accepts text and image input, has a 256K context window, and supports function calling in an OpenAI-compatible format, so existing tool-use pipelines port over with little change. ByteDance positions it for high-volume production workloads such as agent pipelines, coding assistance, and document processing, and prices it at roughly half the cost of Seed 2.1 Pro. The company reports performance close to the Pro version and comparable to GPT-5.5 on coding and agent tasks, though no independently verified benchmark scores for Turbo were published at launch. Choose it when volume and cost drive the decision rather than peak capability; Seed 2.1 Pro remains the stronger option for the hardest tasks.

Image

Seedream 5 Lite

Seedream 5 Lite is a lighter, faster tier of ByteDance's Seedream 5 image generation line, launched in February 2026. Seedream is ByteDance's flagship text-to-image and editing model family; this specific release is new enough that we did not find independent third-party benchmarks for it yet, so treat capability claims below as ByteDance's own. ByteDance describes it as the first Seedream model with web-connected retrieval, letting it draw on live online information during generation, plus multi-step reasoning and example-based editing, where a before/after reference pair shows the model what transformation to apply instead of describing it in words. It accepts up to 14 reference images and outputs at 2K or 3K resolution with aspect ratio control from 1:1 to 21:9, which fits editing work defined by example rather than by prompt alone.

Chat

Seed 2.0 Code

Seed 2.0 Code is ByteDance's dedicated coding model, released with the Seed 2.0 family in February 2026. It is built for agentic software work rather than autocomplete, with a stated focus on decomposing tasks into plans and revising those plans as work progresses, which suits multi-step feature implementation and bug diagnosis and repair. The model accepts image input alongside text, so it can read design mockups, screenshots, and charts and generate code from them. ByteDance cites high-precision text extraction and chart understanding as part of its multimodal perception. It has a 256K context window and up to 128K output tokens. ByteDance has not published benchmark scores for the Code variant. The same model powers coding in TRAE, ByteDance's AI IDE.

Frequently Asked Questions

How do I use SDXL Lightning?

You can access SDXL Lightning by ByteDance through Puter.js AI API. Include the library in your web app or Node.js project and start making calls with just a few lines of JavaScript — no backend and no configuration required.

Is SDXL Lightning free?

SDXL Lightning is free to integrate using the Puter.js AI API. With the User-Pays Model, you can add AI to your app for $0, since users cover their own AI usage through their Puter account.

What is the pricing for SDXL Lightning?
SDXL Lightning costs $0.00 per image.
Price
Per image$0.00
Who created SDXL Lightning?

SDXL Lightning was created by ByteDance and released on Feb 21, 2024.

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

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

Add SDXL Lightning to your app for free

Developers can integrate SDXL Lightning for free using the Puter.js AI API.
With the User-Pays Model, each user covers their own AI usage instead of the developer.

Get started How pricing works