# Luma AI

> Create images and videos with the Luma Agents API and track generation results.

App · 7 actions. Web page: https://docs.lodol.com/docs/integrations/luma-ai

## Actions

### 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 (`prompt`, text, required): Prompt.
- Generation type (`generation_type`, text): Generation type. One of: `image`, `image_edit` (Image edit), `video`, `video_edit` (Video edit), `video_reframe` (Video reframe), `layering`.
- Model (`model`, text): Model. One of: `uni-1`, `uni-1-max`, `ray-3.2`.
- Aspect ratio (`aspect_ratio`, text): 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_format`, text): Output format. One of: `png`, `jpeg`.
- Style (`style`, text): Style. One of: `auto`, `manga`.
- Image ref (`image_ref`, list): Image ref.
- Source (`source`, object): Source.
- Video (`video`, object): Video.
- Web search (`web_search`, true/false): Web search.
- End user id (`end_user_id`, text): End user id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "failure_reason": "example",
    "id": "example",
    "model": "example",
    "output": [],
    "state": "example",
    "type": "example"
  }
}
```

### Delete file

Delete file.

**Inputs**

- File id (`file_id`, text, required): File id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Delete generation

Delete generation.

**Inputs**

- Generation id (`generation_id`, text, required): Generation id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Get deletion

Get deletion.

**Inputs**

- Task id (`task_id`, text, required): Task id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Get file

Get file.

**Inputs**

- File id (`file_id`, text, required): File id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {
    "id": "example",
    "state": "example"
  }
}
```

### Get generation

Get generation.

**Inputs**

- Generation id (`generation_id`, text, required): Generation id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "failure_reason": "example",
    "id": "example",
    "model": "example",
    "output": [],
    "state": "example",
    "type": "example"
  }
}
```

### List files

List files.

**Inputs**

- Cursor (`cursor`, text): Cursor.
- Limit (`limit`, number): Limit. From 1 to 100.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {
    "data": [],
    "has_more": false,
    "next_cursor": "example"
  }
}
```
