# Vyra

> Create and revise videos, export finished cuts, and check job progress and usage.

App · 8 actions. Web page: https://docs.lodol.com/docs/integrations/vyra

## Actions

### Create upload links

Create upload links.

**Inputs**

- Files (`files`, list, required): Files.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "files": []
  }
}
```

### Create video

Create video.

**Inputs**

- Idempotency key (`idempotency_key`, text): Use the same key when retrying the same operation.
- Footage (`footage`, list, required): Up to 200 entries and 3 hours of video in all. Footage needs a picture: audio alone cannot make a video.
- Prompt (`prompt`, text): What to make. Required unless you send a reference. Say what the video is and how long, name the files that matter, and say what you do not want.
- References (`references`, list): Videos to make it look like. Up to 20 minutes each.
- Effort (`effort`, text): `high` follows a detailed request or a reference more closely, in about 14 minutes. `low` costs half as much and takes about 8. `medium` is taken as `low`. One of: `low`, `high`. Default: `high`.
- Max seconds (`max_seconds`, number): The longest the video may run. It is never exceeded, and it sets the price band. From 1 to 1800. Default: `60`.
- Target seconds (`target_seconds`, number): The length to aim for, within `max_seconds`. From 1 to 1800.
- Aspect ratio (`aspect_ratio`, text): Or send `width` and `height`, not both. Left out, the agent chooses from the footage and the request. One of: `9:16`, `16:9`, `1:1`.
- Resolution (`resolution`, text): The short edge of a 16:9 or 9:16 video: `720p` is 1280×720 or 720×1280, and 1280×1280 for a square. `4k` is at most 3840×2160 (a square is 2880×2880). One of: `720p`, `1080p`, `1440p`, `4k`.
- Variations (`variations`, number): How many cuts to make from the same footage. From 1 to 20. Default: `1`.
- Variation brief (`variation_brief`, text): How the cuts differ. Needs `variations` of 2 or more.
- Variation scope (`variation_scope`, text): With `variations` of 2 or more; `portion` when left out. `portion`: every cut has the video's aspect ratio and size and runs within 25% of the first cut's length, and anything else may differ (hook, captions, music, pacing, text, colour). Each extra cut adds a tenth of the fee. `full`: anything may differ, including the shape, the length and the structure. Each extra cut adds three quarters of the fee. A `portion` request whose brief asks for another shape. One of: `portion`, `full`.
- Allow generated media (`allow_generated_media`, true/false): Lets the agent generate music, voiceover, sound and images, which are charged. Default: `false`.
- Generated media budget (`generated_media_budget`, number): Dollars, with `allow_generated_media`. The most generated media may add. Left out, $0.30 plus $0.10 for each minute of `max_seconds`. From 0 to 1000.
- Max price (`max_price`, number): Dollars. The most the video may cost in all. If your footage would take it over, the video fails before any editing and costs nothing. From 0 to 10000.
- Filename (`filename`, text): The name the finished file downloads as. Default `video.mp4`, and `video-2.mp4` and on for a video's later cuts; with a name, cut 2 is `<name>-2.mp4`. Folders, control characters and quotes are taken out, it is cut to 120 characters, and it always ends `.mp4`. In the download, characters other than letters, digits, spaces and `. _ ( ) -` become `-`. A name with nothing left is refused `INVALID_FILENAME`.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "change": {
      "id": "example",
      "kind": "revision",
      "price": {
        "currency": "USD",
        "generated_media": 1.0,
        "generated_media_budget": 1.0,
        "media": 1.0,
        "media_minutes": {
          "audio": 1.0,
          "video": 1.0
        },
        "per_audio_minute": 1.0,
        "per_generated_credit": 1.0,
        "per_video_minute": 1.0,
        "reused_media": {
          "files": [],
          "media": 0,
          "media_minutes": {}
        },
        "total": 1.0,
        "video": 1.0
      },
      "resolution": "example",
      "status": "queued",
      "video_id": "example",
      "video_ids": []
    },
    "completed_at": "example",
    "created_at": "example",
    "effort": "low",
    "error": {
      "code": "LINK_INVALID",
      "message": "example"
    },
    "expires_at": null,
    "id": "example",
    "last_change": {
      "error": {
        "code": "LINK_INVALID",
        "message": "example"
      },
      "id": "example",
      "kind": "revision",
      "price": {
        "currency": "USD",
        "total": 1.0
      },
      "status": "completed",
      "video_id": "example",
      "video_ids": []
    },
    "max_seconds": 1,
    "notes": {
      "assumed": [],
      "did_not_match": [],
      "summary": "example"
    },
    "price": {
      "currency": "USD",
      "generated_media": 1.0,
      "generated_media_budget": 1.0,
      "media": 1.0,
      "media_minutes": {
        "audio": 1.0,
        "video": 1.0
      },
      "per_audio_minute": 1.0,
      "per_generated_credit": 1.0,
      "per_video_minute": 1.0,
      "reused_media": {
        "files": [],
        "media": 0,
        "media_minutes": {
          "audio": 1.0,
          "video": 1.0
        }
      },
      "total": 1.0,
      "video": 1.0
    },
    "progress": 1.0,
    "revision_id": "example",
    "revisions": [],
    "status": "queued",
    "variation_scope": "portion",
    "videos": []
  }
}
```

### Export video

Export video.

**Inputs**

- Video (`video_id`, text, required): A video's id (`vid_…`), or one of its cuts' ids (`vid_…_2`).
- Resolution (`resolution`, text, required): The short edge of a 16:9 or 9:16 video: `720p` is 1280×720 or 720×1280, and 1280×1280 for a square. `4k` is at most 3840×2160 (a square is 2880×2880). One of: `720p`, `1080p`, `1440p`, `4k`.
- Filename (`filename`, text): The name the file this export renders downloads as. Left out, the create's `filename` (or `video.mp4`). A resolution the cut already has answers with its file as it is.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "change": {
      "id": "example",
      "kind": "revision",
      "price": {
        "currency": "USD",
        "generated_media": 1.0,
        "generated_media_budget": 1.0,
        "media": 1.0,
        "media_minutes": {
          "audio": 1.0,
          "video": 1.0
        },
        "per_audio_minute": 1.0,
        "per_generated_credit": 1.0,
        "per_video_minute": 1.0,
        "reused_media": {
          "files": [],
          "media": 0,
          "media_minutes": {}
        },
        "total": 1.0,
        "video": 1.0
      },
      "resolution": "example",
      "status": "queued",
      "video_id": "example",
      "video_ids": []
    },
    "completed_at": "example",
    "created_at": "example",
    "effort": "low",
    "error": {
      "code": "LINK_INVALID",
      "message": "example"
    },
    "expires_at": null,
    "id": "example",
    "last_change": {
      "error": {
        "code": "LINK_INVALID",
        "message": "example"
      },
      "id": "example",
      "kind": "revision",
      "price": {
        "currency": "USD",
        "total": 1.0
      },
      "status": "completed",
      "video_id": "example",
      "video_ids": []
    },
    "max_seconds": 1,
    "notes": {
      "assumed": [],
      "did_not_match": [],
      "summary": "example"
    },
    "price": {
      "currency": "USD",
      "generated_media": 1.0,
      "generated_media_budget": 1.0,
      "media": 1.0,
      "media_minutes": {
        "audio": 1.0,
        "video": 1.0
      },
      "per_audio_minute": 1.0,
      "per_generated_credit": 1.0,
      "per_video_minute": 1.0,
      "reused_media": {
        "files": [],
        "media": 0,
        "media_minutes": {
          "audio": 1.0,
          "video": 1.0
        }
      },
      "total": 1.0,
      "video": 1.0
    },
    "progress": 1.0,
    "revision_id": "example",
    "revisions": [],
    "status": "queued",
    "variation_scope": "portion",
    "videos": []
  }
}
```

### Get balance

Get balance.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "balance": 1.0,
    "billing": "prepaid",
    "currency": "USD",
    "held": 1.0,
    "max_running": 1,
    "next_tier": {
      "max_running": 1,
      "paid_in": 1.0,
      "tier": 1
    },
    "paid_in": 1.0,
    "tier": 1
  }
}
```

### Get usage

Get usage.

**Inputs**

- Start date (`start_date`, date): The first UTC day counted, such as 2026-11-01.
- End date (`end_date`, date): The day after the last one counted.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "charged": 1.0,
    "completed": 1,
    "currency": "USD",
    "days": [],
    "failed": 1,
    "from": "example",
    "price_multiplier": 1.0,
    "to": "example",
    "videos": 1,
    "working": 1
  }
}
```

### Get video

Get video.

**Inputs**

- Video (`video_id`, text, required): A video's id (`vid_…`), or one of its cuts' ids (`vid_…_2`).

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "change": {
      "id": "example",
      "kind": "revision",
      "price": {
        "currency": "USD",
        "generated_media": 1.0,
        "generated_media_budget": 1.0,
        "media": 1.0,
        "media_minutes": {
          "audio": 1.0,
          "video": 1.0
        },
        "per_audio_minute": 1.0,
        "per_generated_credit": 1.0,
        "per_video_minute": 1.0,
        "reused_media": {
          "files": [],
          "media": 0,
          "media_minutes": {}
        },
        "total": 1.0,
        "video": 1.0
      },
      "resolution": "example",
      "status": "queued",
      "video_id": "example",
      "video_ids": []
    },
    "completed_at": "example",
    "created_at": "example",
    "effort": "low",
    "error": {
      "code": "LINK_INVALID",
      "message": "example"
    },
    "expires_at": null,
    "id": "example",
    "last_change": {
      "error": {
        "code": "LINK_INVALID",
        "message": "example"
      },
      "id": "example",
      "kind": "revision",
      "price": {
        "currency": "USD",
        "total": 1.0
      },
      "status": "completed",
      "video_id": "example",
      "video_ids": []
    },
    "max_seconds": 1,
    "notes": {
      "assumed": [],
      "did_not_match": [],
      "summary": "example"
    },
    "price": {
      "currency": "USD",
      "generated_media": 1.0,
      "generated_media_budget": 1.0,
      "media": 1.0,
      "media_minutes": {
        "audio": 1.0,
        "video": 1.0
      },
      "per_audio_minute": 1.0,
      "per_generated_credit": 1.0,
      "per_video_minute": 1.0,
      "reused_media": {
        "files": [],
        "media": 0,
        "media_minutes": {
          "audio": 1.0,
          "video": 1.0
        }
      },
      "total": 1.0,
      "video": 1.0
    },
    "progress": 1.0,
    "revision_id": "example",
    "revisions": [],
    "status": "queued",
    "variation_scope": "portion",
    "videos": []
  }
}
```

### List videos

List videos.

**Inputs**

- Status (`status`, text): A video status, or `working` for every video still being made (a finished video with a change under way counts as working). One of: `working`, `queued`, `importing`, `analysing`, `editing`, `rendering`, `completed`, `failed`.
- Start date (`start_date`, date): The first UTC day counted, such as 2026-11-01.
- End date (`end_date`, date): The day after the last one counted.
- Before (`before`, text): The `next_before` of the page before this one.
- Limit (`limit`, number): Videos a page, 1 to 100. From 1 to 100. Default: `25`.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "next_before": "example",
    "videos": []
  }
}
```

### Revise video

Revise video.

**Inputs**

- Video (`video_id`, text, required): A video's id (`vid_…`), or one of its cuts' ids (`vid_…_2`).
- Idempotency key (`idempotency_key`, text): Use the same key when retrying the same operation.
- Prompt (`prompt`, text): What to change.
- Footage (`footage`, list): More footage, or an image of a marked-up frame showing what to change. Charged as media sent, even on a free revision.
- References (`references`, list): References.
- Max price (`max_price`, number): Dollars. The most this revision may cost. From 0 to 10000.
- Video IDs (`video_ids`, list): The cuts of this video to change, for one change made on several cuts. Each is priced as a revision of its own.
- Filename (`filename`, text): The name the files this revision renders download as. Left out, the create's `filename` (or `video.mp4`).

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "change": {
      "id": "example",
      "kind": "revision",
      "price": {
        "currency": "USD",
        "generated_media": 1.0,
        "generated_media_budget": 1.0,
        "media": 1.0,
        "media_minutes": {
          "audio": 1.0,
          "video": 1.0
        },
        "per_audio_minute": 1.0,
        "per_generated_credit": 1.0,
        "per_video_minute": 1.0,
        "reused_media": {
          "files": [],
          "media": 0,
          "media_minutes": {}
        },
        "total": 1.0,
        "video": 1.0
      },
      "resolution": "example",
      "status": "queued",
      "video_id": "example",
      "video_ids": []
    },
    "completed_at": "example",
    "created_at": "example",
    "effort": "low",
    "error": {
      "code": "LINK_INVALID",
      "message": "example"
    },
    "expires_at": null,
    "id": "example",
    "last_change": {
      "error": {
        "code": "LINK_INVALID",
        "message": "example"
      },
      "id": "example",
      "kind": "revision",
      "price": {
        "currency": "USD",
        "total": 1.0
      },
      "status": "completed",
      "video_id": "example",
      "video_ids": []
    },
    "max_seconds": 1,
    "notes": {
      "assumed": [],
      "did_not_match": [],
      "summary": "example"
    },
    "price": {
      "currency": "USD",
      "generated_media": 1.0,
      "generated_media_budget": 1.0,
      "media": 1.0,
      "media_minutes": {
        "audio": 1.0,
        "video": 1.0
      },
      "per_audio_minute": 1.0,
      "per_generated_credit": 1.0,
      "per_video_minute": 1.0,
      "reused_media": {
        "files": [],
        "media": 0,
        "media_minutes": {
          "audio": 1.0,
          "video": 1.0
        }
      },
      "total": 1.0,
      "video": 1.0
    },
    "progress": 1.0,
    "revision_id": "example",
    "revisions": [],
    "status": "queued",
    "variation_scope": "portion",
    "videos": []
  }
}
```
