# Pictory

> Create storyboard previews, render videos and check the status of render jobs.

App · 5 actions. Web page: https://docs.lodol.com/docs/integrations/pictory

## Actions

### Create a storyboard preview

Create a preview of a video storyboard from scene descriptions.

**Inputs**

- Video Name (`video_name`, text, required): The name of the video.
- Scenes (`scenes`, list, required): The scenes to include, each with a story or visual settings.
- Aspect Ratio (`aspect_ratio`, text): The shape of the video frame. One of: `16:9`, `9:16`, `1:1`.
- Brand (`brand_id`, text): The brand to apply to this video.

**Outputs**

- `data` (object): The response from Pictory.

**Example output**

```json
{
  "data": {
    "data": {
      "jobId": "example"
    },
    "success": true
  }
}
```

### Get render status

Read the progress, errors and available output links for a render job.

**Inputs**

- Jobid (`jobid`, text, required): The unique UUID of the render job, returned by any render endpoint.

**Outputs**

- `data` (object): The response from Pictory.

**Example output**

```json
{
  "data": {
    "data": {
      "aiCreditsUsed": 1,
      "audioURL": "example",
      "encodingDuration": 1,
      "error_code": "example",
      "error_message": "example",
      "progress": 1,
      "renderProgress": 1,
      "renderProgressMessage": "example",
      "renderState": "example",
      "srtFile": "example",
      "status": "in-progress",
      "thumbnail": "example",
      "txtFile": "example",
      "videoDuration": 1,
      "videoEmbedURL": "example",
      "videoShareURL": "example",
      "videoURL": "example",
      "vttFile": "example",
      "youtubeClearanceCode": "example",
      "youtubeClearanceExpiresAt": "example"
    },
    "id": "example",
    "job_id": "example",
    "success": true
  }
}
```

### List video brands

Read the video brands you can apply to a storyboard.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Pictory.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "name": "example"
    }
  ]
}
```

### Render a project

Render a saved project as a video. Rendering can use credits.

**Inputs**

- Projectid (`projectid`, text, required): Unique identifier of the project to render. Obtain from the Get Projects API.

**Outputs**

- `data` (object): The response from Pictory.

**Example output**

```json
{
  "data": {
    "data": {
      "jobId": "example"
    },
    "success": true
  }
}
```

### Render a storyboard video

Send a storyboard to render as a video. Rendering can use credits.

**Inputs**

- Video Name (`video_name`, text, required): The name of the video.
- Scenes (`scenes`, list, required): The scenes to include, each with a story or visual settings.
- Aspect Ratio (`aspect_ratio`, text): The shape of the video frame. One of: `16:9`, `9:16`, `1:1`.
- Brand (`brand_id`, text): The brand to apply to this video.

**Outputs**

- `data` (object): The response from Pictory.

**Example output**

```json
{
  "data": {
    "data": {
      "jobId": "example"
    },
    "success": true
  }
}
```
