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

Luma AI: Photon Flash

luma/photon-flash

Access Photon Flash from Luma AI using the Puter.js AI API.

Add to your app

Model Card

Photon Flash is the faster variant of Luma AI's Photon image model, built on the same Universal Transformer architecture rather than diffusion. It's priced lower per image than Photon here, and Luma positions it as the speed-optimized option in the Photon family rather than a stripped-down one.

It keeps Photon's core feature set: character consistency from a single reference image, support for up to four reference images for style and composition, and natural-language prompt-based editing. Luma describes Flash as built for the same creative workflows as Photon, trading some of Photon's generation time for lower latency and cost.

That tradeoff suits high-volume or latency-sensitive use, such as rapid prototyping, iterative ideation, and applications that generate many images per session, where turnaround time matters more than squeezing out the last increment of output refinement.

Cost Per Image $0.01

per generation

Configuration output

resolution

Release Date Nov 25, 2024

 

Add Photon Flash to your app

Use Photon Flash 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: "luma/photon-flash"
}).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: "luma/photon-flash"
        }).then(image => {
            document.body.appendChild(image);
        });
    </script>
</body>
</html>

Frequently Asked Questions

How do I use Photon Flash?

You can access Photon Flash by Luma AI 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 the Photon Flash API free for developers?

Photon Flash 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 Photon Flash?
Photon Flash costs $0.01 per image.
Price
Per image$0.01
Who created Photon Flash?

Photon Flash was created by Luma AI and released on Nov 25, 2024.

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

Yes — the Photon Flash 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 Photon Flash to your app for free

Developers can integrate Photon Flash 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