Luma Labs
luma_labsCreate and manage AI image and video generations and reusable files through the current Luma Agents API.
Acciones disponibles (11)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Delete FileLUMA_LABS_DELETE_FILEAcciónSoft-delete a Luma file so new generations cannot reference it. The file's metadata remains retrievable with state=deleted.
LUMA_LABS_DELETE_FILEAcciónSoft-delete a Luma file so new generations cannot reference it. The file's metadata remains retrievable with state=deleted.
Parámetros de entrada
file_idstringObligatoriouuidLuma file ID to soft-delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Edit ImageLUMA_LABS_EDIT_IMAGEAcciónSubmit a paid, asynchronous Luma image-edit job. Returns immediately; use GET_GENERATION with generation_id to monitor it.
LUMA_LABS_EDIT_IMAGEAcciónSubmit a paid, asynchronous Luma image-edit job. Returns immediately; use GET_GENERATION with generation_id to monitor it.
Parámetros de entrada
modelstringenumImage model. uni-1-max produces higher-quality output at a higher price.
uni-1uni-1-maxstylestringenumImage style preset.
automangapromptstringObligatorioInstructions for editing the source image.
sourceobjectObligatorioImage to edit.
user_idstringOpaque, non-PII end-user identifier for usage and abuse attribution.
image_refobject[]Additional reference images for style or content guidance; up to 8.
web_searchbooleanAllow web search for grounding and reference images.
output_formatstringenumRequested image output format.
pngjpeg
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Edit VideoLUMA_LABS_EDIT_VIDEOAcciónSubmit a paid, asynchronous Ray 3.2 video-edit job. Returns immediately; use GET_GENERATION with generation_id to monitor it.
LUMA_LABS_EDIT_VIDEOAcciónSubmit a paid, asynchronous Ray 3.2 video-edit job. Returns immediately; use GET_GENERATION with generation_id to monitor it.
Parámetros de entrada
videoobjectRay 3.2 video-edit options.
promptstringObligatorioInstructions for editing the source video.
sourceobjectObligatorioVideo to edit; URL/data sources require video/* media_type.
user_idstringOpaque, non-PII end-user identifier for usage and abuse attribution.
web_searchbooleanAllow web search for grounding and reference images.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Extract Image LayersLUMA_LABS_EXTRACT_IMAGE_LAYERSAcciónSubmit a paid, asynchronous Luma image layer-extraction job. Pricing is flat per generation at the selected resolution, regardless of layer count; use GET_GENERATION with generation_id to monitor the job.
LUMA_LABS_EXTRACT_IMAGE_LAYERSAcciónSubmit a paid, asynchronous Luma image layer-extraction job. Pricing is flat per generation at the selected resolution, regardless of layer count; use GET_GENERATION with generation_id to monitor the job.
Parámetros de entrada
promptstringObligatorioOptional instructions for decomposing the source image into layers; pass an empty string for automatic decomposition.
sourceobjectObligatorioImage to decompose into layers.
user_idstringOpaque, non-PII end-user identifier for usage and abuse attribution.
layeringobjectLayer extraction output options.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate ImageLUMA_LABS_GENERATE_IMAGEAcciónSubmit a paid, asynchronous Luma image generation job. Returns immediately; use GET_GENERATION with generation_id to monitor it.
LUMA_LABS_GENERATE_IMAGEAcciónSubmit a paid, asynchronous Luma image generation job. Returns immediately; use GET_GENERATION with generation_id to monitor it.
Parámetros de entrada
modelstringenumImage model. uni-1-max produces higher-quality output at a higher price.
uni-1uni-1-maxstylestringenumImage style preset.
automangapromptstringObligatorioImage generation instructions.
user_idstringOpaque, non-PII end-user identifier for usage and abuse attribution.
image_refobject[]Reference images for style or content guidance; up to 9.
web_searchbooleanAllow web search for grounding and reference images.
aspect_ratiostringenumRequested output aspect ratio.
3:12:116:93:21:12:39:161:21:3output_formatstringenumRequested image output format.
pngjpeg
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate VideoLUMA_LABS_GENERATE_VIDEOAcciónSubmit a paid, asynchronous Ray 3.2 video generation job. Returns immediately; use GET_GENERATION with generation_id to monitor it.
LUMA_LABS_GENERATE_VIDEOAcciónSubmit a paid, asynchronous Ray 3.2 video generation job. Returns immediately; use GET_GENERATION with generation_id to monitor it.
Parámetros de entrada
videoobjectRay 3.2 video generation options.
promptstringObligatorioVideo generation instructions.
user_idstringOpaque, non-PII end-user identifier for usage and abuse attribution.
web_searchbooleanAllow web search for grounding and reference images.
aspect_ratiostringenumRequested output aspect ratio.
9:163:41:14:316:921:9
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get FileLUMA_LABS_GET_FILEAcciónGet a Luma file's metadata and current ingest, moderation, or deletion state. Soft-deleted files remain retrievable with state=deleted.
LUMA_LABS_GET_FILEAcciónGet a Luma file's metadata and current ingest, moderation, or deletion state. Soft-deleted files remain retrievable with state=deleted.
Parámetros de entrada
file_idstringObligatoriouuidLuma file ID returned by UPLOAD_FILE or LIST_FILES.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get GenerationLUMA_LABS_GET_GENERATIONAcciónGet the current state, failure details, and output URLs for a Luma generation.
LUMA_LABS_GET_GENERATIONAcciónGet the current state, failure details, and output URLs for a Luma generation.
Parámetros de entrada
generation_idstringObligatoriouuidGeneration ID returned by a Luma image, video, edit, reframe, or layer-extraction tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List FilesLUMA_LABS_LIST_FILESAcciónList files in the connected Luma account, newest first, with optional state and purpose filters. Returns one page and a cursor for continuation.
LUMA_LABS_LIST_FILESAcciónList files in the connected Luma account, newest first, with optional state and purpose filters. Returns one page and a cursor for continuation.
Parámetros de entrada
limitintegerMaximum files to return in this page (1-100).
statestringenumReturn only files in this ingest or deletion state.
pendingreadyfaileddeletedcursorstringOpaque next_cursor from a previous LIST_FILES response.
purposestringenumReturn only files with this purpose.
inputreference
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Reframe VideoLUMA_LABS_REFRAME_VIDEOAcciónSubmit a paid, asynchronous Ray 3.2 video-reframe job. Returns immediately; use GET_GENERATION with generation_id to monitor it.
LUMA_LABS_REFRAME_VIDEOAcciónSubmit a paid, asynchronous Ray 3.2 video-reframe job. Returns immediately; use GET_GENERATION with generation_id to monitor it.
Parámetros de entrada
videoobjectRay 3.2 video-reframe options.
promptstringObligatorioInstructions for reframing the source video.
sourceobjectObligatorioVideo to reframe; URL/data sources require video/* media_type.
user_idstringOpaque, non-PII end-user identifier for usage and abuse attribution.
web_searchbooleanAllow web search for grounding and reference images.
aspect_ratiostringObligatorioenumRequired output aspect ratio.
9:163:41:14:316:921:9
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upload FileLUMA_LABS_UPLOAD_FILEAcciónDirectly upload file bytes to Luma and return the file ID, metadata, and current upload/ingest state.
LUMA_LABS_UPLOAD_FILEAcciónDirectly upload file bytes to Luma and return the file ID, metadata, and current upload/ingest state.
Parámetros de entrada
fileobjectObligatorioFile whose bytes will be uploaded to Luma.
purposestringenumHow the file will be used: input for primary source material or reference for style and content guidance.
inputreferenceuser_idstringOptional opaque, non-PII end-user identifier for abuse attribution.
expires_atstringdate-timeOptional ISO 8601 time after which Luma may delete the file.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not