SandBase is live — $1 in free credits on signupStart free ›
Use in agentLuma models

Luma modelsimage generation api

luma/photon-1/edit

Photon 1 Edit is Luma's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.

Input
Instruction for modifying the image

PNG, JPEG, WebP, or GIF · 20 MiB maximum

URL of the input image to reframe
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
Idle

Example output — click Run to generate your own

API README

Luma Photon Edit

Luma Photon Edit is a Luma route built for prompt-guided image editing. It turns one or more source images and a precise change request into a revised image that follows the edit while retaining intended structure, giving creators a focused endpoint instead of forcing one generic workflow across materially different production tasks. The route belongs to a family known for natural motion, strong prompt interpretation, and cinematic camera behavior, so it is best evaluated as a creative system for intentional shots and assets rather than as a one-click novelty generator.

Use this endpoint when the input contract and deliverable match that job exactly. Its documented controls include aspect_ratio choices (21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16). Together, these controls help teams plan predictable iterations, compare outputs under stable settings, and connect generation to concept films, campaign visuals, and rapid shot exploration without hiding the operational choices that shape the result.

Highlights

  • Luma Photon Edit: dedicated guided image editing. This exact route centers on guided image editing; it uses prompt, image to separate its job from neighboring endpoints in the same family.
  • image control. URL of the input image to reframe; this setting provides a concrete lever for route-specific output planning.
  • aspect_ratio control. options 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16; use it to build controlled comparisons without changing the rest of the request.
  • guided image editing contract control. This route keeps the documented source-to-output relationship explicit; together with the other documented fields, it supports repeatable review of this model path.

Pricing

ConfigurationPrice
Standard request$0.019000

When to Use

ScenarioWhy this model fits
Create the exact route outputChoose it when you need prompt-guided image editing and already have one or more source images and a precise change request.
Develop controlled variationsKeep the main brief fixed while changing one documented setting at a time to compare motion, framing, quality, or asset behavior.
Build repeatable batchesUse a consistent request shape for catalog, campaign, storyboard, game-asset, or social-content production.
Preserve source intentPrefer this route when the supplied reference material must remain the foundation of a revised image that follows the edit while retaining intended structure.
Connect a media pipelineUse asynchronous results in an automated review, approval, post-production, or asset-management workflow.

Prompt Guide

Start with the desired result, then describe the source relationship, subject action, composition or camera behavior, lighting, style, and timing. For prompt-guided image editing, state what must remain stable as clearly as what should change. Use only fields exposed by the schema; the example below is structurally valid for this route.

{
  "prompt": "Make the image look like a painting",
  "image": "https://static.sandbase.ai/examples/luma/photon-1/edit/input_image_0.png",
  "aspect_ratio": "21:9"
}

Technical Specs

SpecificationValue
Model IDluma/photon-1/edit
WorkflowPrompt-guided image editing
Required inputsprompt, image
imagestring
promptstring
aspect_ratiostring; options: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16

Related Models

Related Models

luma/photon-1Photon 1 by Luma - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.luma/photon-1/reframePhoton 1 Reframe by Luma - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.luma/agent/uni-1/1.0/max/editAgent Uni 1 1.0 by Luma - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.luma/agent/uni-1/1.0/text-to-imageAgent Uni 1 1.0 is Luma's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.luma/agent/uni-1/1.0/editAgent Uni 1 1.0 by Luma - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.luma/agent/uni-1/1.0/maxAgent Uni 1 1.0 is Luma's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.luma/photon-flash-1Photon Flash 1 by Luma - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.luma/photon-flash-1/editPhoton Flash 1 Edit is Luma's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.