luma/ray-flash-2/modify
Ray Flash 2 Modify by Luma - AI-powered video editing and transformation. Apply style transfer, motion control, lip-sync, and visual effects to existing videos with natural language instructions.
PNG, JPEG, WebP, or GIF · 20 MiB maximum
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runluma/ray-flash-2/modifyInput Schema
3 parameters · 2 required · 1 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
image | string | Required | Optional URL of the first frame image for modification |
prompt | string | Required | Instruction for modifying the video · Min length: 3 · Max length: 5000 |
video | string | Optional | URL of the input video to modify |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "luma/ray-flash-2/modify",
"image": "https://static.sandbase.ai/examples/luma/ray-flash-2/modify/input_image_1.jpg",
"video": "https://static.sandbase.ai/examples/luma/ray-flash-2/modify/output_url_0.mp4",
"prompt": "a beautiful sunset over mountains"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Luma Ray Flash 2 Modify
Luma Ray Flash 2 Modify is a Luma route built for prompt-directed video modification. It turns a source video or first frame plus an edit instruction into a transformed clip following the requested visual change, 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 route-specific creative and output controls documented in the request schema. 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 Ray Flash 2 Modify: dedicated video transformation. This exact route centers on video transformation; it uses
prompt,imageto separate its job from neighboring endpoints in the same family. imagecontrol. Optional URL of the first frame image for modification; this setting provides a concrete lever for route-specific output planning.videocontrol. URL of the input video to modify; use it to build controlled comparisons without changing the rest of the request.video transformation contractcontrol. 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
| Configuration | Price |
|---|---|
| Billing rule | params.duration * 0.12 |
| Formula-priced request | Starts from $0.600000; final charge follows the billing rule above |
When to Use
| Scenario | Why this model fits |
|---|---|
| Create the exact route output | Choose it when you need prompt-directed video modification and already have a source video or first frame plus an edit instruction. |
| Develop controlled variations | Keep the main brief fixed while changing one documented setting at a time to compare motion, framing, quality, or asset behavior. |
| Build repeatable batches | Use a consistent request shape for catalog, campaign, storyboard, game-asset, or social-content production. |
| Preserve source intent | Prefer this route when the supplied reference material must remain the foundation of a transformed clip following the requested visual change. |
| Connect a media pipeline | Use 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-directed video modification, 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": "A cinematic product shot with deliberate camera movement, natural light, and clearly described timing.",
"image": "https://static.sandbase.ai/examples/luma/ray-flash-2/modify/input_image_1.jpg",
"video": "https://static.sandbase.ai/examples/luma/ray-flash-2/modify/output_url_0.mp4"
}
Technical Specs
| Specification | Value |
|---|---|
| Model ID | luma/ray-flash-2/modify |
| Workflow | Prompt-directed video modification |
| Required inputs | prompt, image |
image | string |
video | string |
prompt | string |

