Luma AI
App · 7 actions
Create images and videos with the Luma Agents API and track generation results.
Actions
| Action | What it does |
|---|---|
| Create generation | Start a billed image or video generation. |
| Delete file | Delete file. |
| Delete generation | Delete generation. |
| Get deletion | Get deletion. |
| Get file | Get file. |
| Get generation | Get generation. |
| List files | List files. |
Create generation
Start a billed image or video generation. Returns its job ID immediately; use Get generation or a completion trigger to retrieve the result.
Inputs
- Prompt
prompttextRequired - Prompt.
- Generation type
generation_typetext - Generation type.One of:
image,image_edit(Image edit),video,video_edit(Video edit),video_reframe(Video reframe),layering. - Model
modeltext - Model.One of:
uni-1,uni-1-max,ray-3.2. - Aspect ratio
aspect_ratiotext - Aspect ratio.One of:
3:1,2:1,21:9,16:9,4:3,3:2,1:1,3:4,2:3,9:16,1:2,1:3. - Output format
output_formattext - Output format.One of:
png,jpeg. - Style
styletext - Style.One of:
auto,manga. - Image ref
image_reflist - Image ref.
- Source
sourceobject - Source.
- Video
videoobject - Video.
- Web search
web_searchtrue/false - Web search.
- End user id
end_user_idtext - End user id.
Outputs
dataobject- Service response.
Example output
{
"data": {
"created_at": "example",
"failure_reason": "example",
"id": "example",
"model": "example",
"output": [],
"state": "example",
"type": "example"
}
}Delete file
Delete file.
Inputs
- File id
file_idtextRequired - File id.
Outputs
dataobject- Service response.
Example output
{
"data": {}
}Delete generation
Delete generation.
Inputs
- Generation id
generation_idtextRequired - Generation id.
Outputs
dataobject- Service response.
Example output
{
"data": {}
}Get deletion
Get deletion.
Inputs
- Task id
task_idtextRequired - Task id.
Outputs
dataobject- Service response.
Example output
{
"data": {}
}Get file
Get file.
Inputs
- File id
file_idtextRequired - File id.
Outputs
dataobject- Service response.
Example output
{
"data": {
"id": "example",
"state": "example"
}
}Get generation
Get generation.
Inputs
- Generation id
generation_idtextRequired - Generation id.
Outputs
dataobject- Service response.
Example output
{
"data": {
"created_at": "example",
"failure_reason": "example",
"id": "example",
"model": "example",
"output": [],
"state": "example",
"type": "example"
}
}List files
List files.
Inputs
- Cursor
cursortext - Cursor.
- Limit
limitnumber - Limit.From 1 to 100.
Outputs
dataobject- Service response.
Example output
{
"data": {
"data": [],
"has_more": false,
"next_cursor": "example"
}
}