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

luma/photon

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

Add to your app

Model Card

Photon is Luma AI's flagship text-to-image model, launched in November 2024 alongside the Dream Machine platform. Luma built it on a proprietary Universal Transformer architecture rather than the diffusion process most image generators rely on, and says the design brings a large context window to image generation, letting the model take in multiple reference images and detailed instructions at once.

The model is built around character consistency, producing a consistent character from a single reference image and placing it into new scenes. It accepts up to four reference images for style, composition, or character guidance, and supports iterative editing through natural language prompts rather than manual masking.

Luma positions Photon for designers, filmmakers, architects, and other visual creators who need photorealistic, production-quality output with strong prompt adherence, and reports it as faster to run than comparable diffusion-based models in its own testing.

Cost Per Image $0.03

per generation

Configuration output

resolution

Release Date Nov 25, 2024

 

Add Photon to your app

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

Frequently Asked Questions

How do I use Photon?

You can access Photon 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 API free for developers?

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

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

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

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

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