Luma AI
Ray 3.2 text/image to video, video edit and reframe, uni-1 images as polled jobs with downloads, credits and usage (paid, deletes node only)
Beta v0.1.0 Node.js 10 actions
About
A Graphrt plugin for Luma AI video and image generation through the Luma Agents API (https://agents.lumalabs.ai/v1), Luma's current API. It generates Ray 3.2 videos from text or images, edits and reframes existing videos, generates uni-1 images, waits for each job and saves the result to disk.
What it can do
- generate_video: text to video, image to video (start_frame_url, end_frame_url) and extending a video (extend_generation_id), 360p–1080p, 5 s or 10 s, loop and HDR
- edit_video: re-render a Luma generation or a video URL (up to 18 s) under a new prompt with a strength preset (adhere_*, flex_*, reimagine_*)
- reframe_video: change a video's aspect ratio, generating the new areas
- generate_image: uni-1 / uni-1-max 2K images with up to 9 reference images
- get_generation: state, failure_code, usage.credits_charged and fresh output URLs, saves a completed generation's output
- delete_generation (node only) and get_deletion: asynchronous deletion of finished generations
- get_credits, get_usage: balance and settled spend (summary or grouped by model, user, session, ...)
- api_request: any other endpoint (GET only for agents), e.g. /files
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Generate video
luma-ai.generate_video - Edit video
luma-ai.edit_video - Reframe video
luma-ai.reframe_video - Generate image
luma-ai.generate_image - Get generation
luma-ai.get_generation - Delete generation
luma-ai.delete_generation - Get deletion
luma-ai.get_deletion - Credit balance
luma-ai.get_credits - Usage
luma-ai.get_usage - Luma Agents API request
luma-ai.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
LUMA_API_KEYRequiredAPI key from the Luma API Platform -
LUMA_OUTPUT_DIROptionalAbsolute directory for generated files. Unset: nothing is saved and saved_files is [] (output URLs expire after 1 hour)
How to use it
In Graphrt Desktop
- Open Plugins and search for Luma AI.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install luma-ai workflow.yaml
- id: clip type: luma-ai.generate_video prompt: "A slow dolly shot through a misty greenhouse at sunrise" aspect_ratio: "16:9" resolution: 720p duration: 5s