Luma AI: Reframe Image
luma/reframe-image
Access Reframe Image from Luma AI using the Puter.js AI API.
Add to your appModel Card
Reframe Image is an image editing model from Luma that changes the aspect ratio of an existing image. It uses AI outpainting to extend the picture to a new shape instead of cropping it, and Luma's Photon Flash model (photon-flash-1 by default) generates the added areas so they match the original style.
You pass an image and a target aspect ratio (16:9 by default). Optional inputs include a text prompt to guide the new content, grid position values that place the original within the output frame, and crop bounds in pixels. The output format defaults to JPG.
It suits developers who need one source image in several formats, such as turning a square or portrait image into a widescreen banner, thumbnail, or social media crop without losing content from the original.
Cost Per Image $0.01
per generation
Configuration output
resolution
Release Date N/A
Add Reframe Image to your app
Use Reframe Image 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/reframe-image"
}).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/reframe-image"
}).then(image => {
document.body.appendChild(image);
});
</script>
</body>
</html>
More AI Models From Luma AI
Photon
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.
ImagePhoton Flash
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.
Frequently Asked Questions
You can access Reframe Image 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.
Reframe Image 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.
| Price | |
|---|---|
| Per image | $0.01 |
Yes — the Reframe Image 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 Reframe Image to your app for free
Developers can integrate Reframe Image for free using the Puter.js AI API.
With the User-Pays Model, each user covers their own AI usage instead of the developer.