# VideoGen

> Generate video and media, export projects and check job progress.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/videogen

## Actions

### Export a video project

Start an MP4 export for a video project that has finished building.

**Inputs**

- Project ID (`project_id`, text, required): Project to export.
- Editable video ID (`editable_video_id`, text): Video ID from the workflow output. Leave blank to export the first video.
- Quality (`quality`, text): Resolution of the finished export. One of: `STANDARD`, `HIGH`, `FULL_HIGH` (Full high), `ULTRA_HIGH` (Ultra high).
- Watermark mode (`watermark_mode`, text): Whether to add a VideoGen watermark. One of: `AUTO`, `VIDEO_GEN` (Video gen), `NONE`.
- End screen mode (`end_screen_mode`, text): Whether to add the VideoGen end screen. One of: `AUTO`, `VIDEO_GEN` (Video gen), `NONE`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "exportId": "example"
  }
}
```

### Generate a script video

Create a narrated video from a script.

**Inputs**

- Script (`script`, text, required): Script.
- Visual style (`visual_style`, text, required): Visual style for the generated b-roll. One of: `STOCK`, `AI_IMAGE` (Ai image).
- Visual pacing (`visual_pacing`, text): How quickly visuals change. FAST shows more, shorter shots; SLOW holds each visual longer. Defaults to MEDIUM. One of: `FAST`, `MEDIUM`, `SLOW`.
- Quality (`quality`, text): Quality. One of: `LOW`, `STANDARD`, `HIGH`, `MAX`.
- Language (`language`, text): Output language as a BCP-47 code (e.g. `en`, `es`, `fr`). Defaults to English.
- Voice (`voice_id`, text): Voice id.
- Voice speed (`voice_speed`, number): Speech rate multiplier, between 0.5 (half speed) and 2 (double speed). Defaults to the voice's default speed.
- Is output temporary (`is_output_temporary`, true/false): Is output temporary.
- Auto export (`auto_export`, true/false): Auto export.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "projectId": "example",
    "projectUrl": "example",
    "videoEditIds": [
      "example"
    ],
    "workflowRunId": "example"
  }
}
```

### Generate a sound effect

Generate a short sound effect from a description.

**Inputs**

- Prompt (`prompt`, text, required): A text description of the sound effect to generate.
- Duration seconds (`duration_seconds`, number): Desired length of the sound effect in seconds, between 0.5 and 30. When omitted or null, duration is chosen automatically from the prompt.
- Prompt influence (`prompt_influence`, number): Prompt influence.
- Num results (`num_results`, number): Number of output results to generate. Defaults to 1.
- Is output temporary (`is_output_temporary`, true/false): Is output temporary.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "toolExecutionId": "example"
  }
}
```

### Generate a video clip from a prompt

Start building a short AI-generated video clip.

**Inputs**

- Prompt (`prompt`, text, required): Describe what should appear in the clip.
- Duration seconds (`duration_seconds`, number): Desired length in seconds. From 1 to 30.
- Quality (`quality`, text): Generation quality. One of: `LOW`, `STANDARD`, `HIGH`, `MAX`.
- Is output temporary (`is_output_temporary`, true/false): Keep generated files for at least 24 hours.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "projectId": "example",
    "projectUrl": "example",
    "videoEditIds": [
      "example"
    ],
    "workflowRunId": "example"
  }
}
```

### Generate an image

Start a standalone image generation job.

**Inputs**

- Prompt (`prompt`, text, required): Text prompt describing the image to generate. When reference images are provided, the prompt describes the desired transformation.
- Quality (`quality`, text): Quality. One of: `LOW`, `STANDARD`, `HIGH`, `MAX`.
- Num results (`num_results`, number): Number of output results to generate. Defaults to 1.
- Is output temporary (`is_output_temporary`, true/false): Is output temporary.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "toolExecutionId": "example"
  }
}
```

### Generate music

Start an instrumental music generation job.

**Inputs**

- Prompt (`prompt`, text, required): A text description of the music to generate. Include genre, mood, instrumentation, and tempo for best results.
- Duration seconds (`duration_seconds`, number): Desired track length in seconds, between 3 and 600. Defaults to 180 seconds when omitted or null.
- Num results (`num_results`, number): Number of output results to generate. Defaults to 1.
- Is output temporary (`is_output_temporary`, true/false): Is output temporary.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "toolExecutionId": "example"
  }
}
```

### Generate text

Draft a script, title or other short text.

**Inputs**

- Prompt (`prompt`, text, required): The instruction or content to generate text from.
- System (`system`, text): Optional system instructions that steer the model's role, tone, and constraints.
- Quality (`quality`, text): Quality. One of: `LOW`, `STANDARD`, `HIGH`, `MAX`.
- Temperature (`temperature`, number): Sampling temperature. Higher values produce more varied output. Defaults to the model's default.
- Max output tokens (`max_output_tokens`, number): Maximum number of tokens to generate. Defaults to 512.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "text": "example"
  }
}
```

### Get a file

Read metadata and links for a VideoGen file.

**Inputs**

- File ID (`file_id`, text, required): The file id (e.g. `vg_file_...`).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "description": "example",
    "displayName": "example",
    "downloadSource": {
      "expiresAt": 1,
      "fileBytes": 1,
      "height": 1,
      "status": "example",
      "url": "example",
      "width": 1
    },
    "downloadUrl": "example",
    "downloadUrlExpiresAt": 1,
    "durationSeconds": 1,
    "fileAnalysisMetadata": {
      "analysisAttemptIndex": 1,
      "analysisLoadingState": "example",
      "analysisProgressPercentage": 1
    },
    "fileId": "example",
    "hlsSource": {
      "expiresAt": 1,
      "fileBytes": 1,
      "height": 1,
      "status": "example",
      "url": "example",
      "width": 1
    },
    "isPublicPreviewEnabled": true,
    "previewSource": {
      "expiresAt": 1,
      "fileBytes": 1,
      "height": 1,
      "status": "example",
      "url": "example",
      "width": 1
    },
    "publicHlsUrl": "example",
    "publicPlaybackId": "example",
    "scope": "example",
    "sourceToolExecutionId": "example",
    "sourceToolType": "example",
    "staticPublicPreviewSource": {
      "expiresAt": 1,
      "fileBytes": 1,
      "height": 1,
      "status": "example",
      "url": "example",
      "width": 1
    },
    "thumbnailSource": {
      "expiresAt": 1,
      "fileBytes": 1,
      "height": 1,
      "status": "example",
      "url": "example",
      "width": 1
    },
    "thumbnailUrl": "example",
    "thumbnailUrlExpiresAt": 1,
    "transcript": {
      "languageCode": "example",
      "words": [
        {
          "endSeconds": 1,
          "startSeconds": 1,
          "word": "example"
        }
      ]
    },
    "transcriptText": "example",
    "type": "example"
  }
}
```

### Get a project export

Check an export job and obtain its video download when ready.

**Inputs**

- Project ID (`project_id`, text, required): The project id (e.g. `vg_proj_...`).
- Export ID (`export_id`, text, required): The export id (e.g. `vg_expo_...`) returned by `POST /v1/projects/{projectId}/export`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "attemptIndex": 1,
    "downloadUrl": "example",
    "downloadUrlExpiresAt": 1,
    "error": {
      "code": "example",
      "internalErrorCode": "example",
      "message": "example",
      "requirement": {
        "details": {},
        "type": "example"
      }
    },
    "exportFileId": "example",
    "exportId": "example",
    "file": {
      "description": "example",
      "displayName": "example",
      "downloadSource": {
        "expiresAt": 1,
        "fileBytes": 1,
        "height": 1,
        "status": "example",
        "url": "example",
        "width": 1
      },
      "downloadUrl": "example",
      "downloadUrlExpiresAt": 1,
      "durationSeconds": 1,
      "fileAnalysisMetadata": {
        "analysisAttemptIndex": 1,
        "analysisLoadingState": "example",
        "analysisProgressPercentage": 1
      },
      "fileId": "example",
      "hlsSource": {
        "expiresAt": 1,
        "fileBytes": 1,
        "height": 1,
        "status": "example",
        "url": "example",
        "width": 1
      },
      "isPublicPreviewEnabled": true,
      "previewSource": {
        "expiresAt": 1,
        "fileBytes": 1,
        "height": 1,
        "status": "example",
        "url": "example",
        "width": 1
      },
      "publicHlsUrl": "example",
      "publicPlaybackId": "example",
      "scope": "example",
      "sourceToolExecutionId": "example",
      "sourceToolType": "example",
      "staticPublicPreviewSource": {
        "expiresAt": 1,
        "fileBytes": 1,
        "height": 1,
        "status": "example",
        "url": "example",
        "width": 1
      },
      "thumbnailSource": {
        "expiresAt": 1,
        "fileBytes": 1,
        "height": 1,
        "status": "example",
        "url": "example",
        "width": 1
      },
      "thumbnailUrl": "example",
      "thumbnailUrlExpiresAt": 1,
      "transcript": {
        "languageCode": "example",
        "words": [
          {}
        ]
      },
      "transcriptText": "example",
      "type": "example"
    },
    "progressPercentage": 1,
    "projectId": "example",
    "status": "example",
    "thumbnailUrl": "example",
    "thumbnailUrlExpiresAt": 1
  }
}
```

### Get a tool execution

Check a standalone job and retrieve its result.

**Inputs**

- Tool execution ID (`tool_execution_id`, text, required): The tool execution id returned when the tool was started.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "attemptIndex": 1,
    "error": {
      "code": "example",
      "internalErrorCode": "example",
      "message": "example",
      "requirement": {
        "details": {},
        "type": "example"
      }
    },
    "progressPercentage": 1,
    "results": [
      {
        "downloadUrl": "example",
        "downloadUrlExpiresAt": 1,
        "file": {
          "description": "example",
          "displayName": "example",
          "downloadSource": {},
          "downloadUrl": "example",
          "downloadUrlExpiresAt": 1,
          "durationSeconds": 1,
          "fileAnalysisMetadata": {},
          "fileId": "example",
          "hlsSource": {},
          "isPublicPreviewEnabled": true,
          "previewSource": {},
          "publicHlsUrl": "example",
          "publicPlaybackId": "example",
          "scope": "example",
          "sourceToolExecutionId": "example",
          "sourceToolType": "example",
          "staticPublicPreviewSource": {},
          "thumbnailSource": {},
          "thumbnailUrl": "example",
          "thumbnailUrlExpiresAt": 1,
          "transcript": {},
          "transcriptText": "example",
          "type": "example"
        },
        "fileId": "example",
        "thumbnailUrl": "example",
        "thumbnailUrlExpiresAt": 1,
        "type": "example"
      }
    ],
    "status": {},
    "toolExecutionId": "example",
    "toolType": "example"
  }
}
```

### Get a video project

Read a video project’s title, status and editor URL.

**Inputs**

- Project ID (`project_id`, text, required): The project id (e.g. `vg_proj_...`).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "aspectRatio": {
      "height": 1,
      "width": 1
    },
    "assistantId": "example",
    "createdAt": 1,
    "projectId": "example",
    "projectUrl": "example",
    "status": "example",
    "title": "example",
    "updatedAt": 1
  }
}
```

### Get current account

Read the account and team behind this API key.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "apiKeyId": "example",
    "apiKeyNickname": "example",
    "displayName": "example",
    "email": "example",
    "teamId": "example"
  }
}
```

### Get workflow run status

Check a workflow run and retrieve its completed output.

**Inputs**

- Workflow run ID (`workflow_run_id`, text, required): The workflow run id returned when the workflow was started.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "attemptIndex": 1,
    "downloadUrl": "example",
    "downloadUrlExpiresAt": 1,
    "error": {
      "code": "example",
      "internalErrorCode": "example",
      "message": "example",
      "requirement": {
        "details": {},
        "type": "example"
      }
    },
    "exportFileId": "example",
    "exportId": "example",
    "outputs": [
      {
        "editableVideoId": "example",
        "language": "example",
        "status": "example"
      }
    ],
    "progressPercentage": 1,
    "projectId": "example",
    "projectUrl": "example",
    "status": {},
    "thumbnailUrl": "example",
    "thumbnailUrlExpiresAt": 1,
    "workflowRunId": "example",
    "workflowType": "example"
  }
}
```

### List files

Browse files visible to your VideoGen team.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {
    "files": [
      {
        "description": "example",
        "displayName": "example",
        "downloadSource": {
          "expiresAt": 1,
          "fileBytes": 1,
          "height": 1,
          "status": "example",
          "url": "example",
          "width": 1
        },
        "downloadUrl": "example",
        "downloadUrlExpiresAt": 1,
        "durationSeconds": 1,
        "fileAnalysisMetadata": {
          "analysisAttemptIndex": 1,
          "analysisLoadingState": "example",
          "analysisProgressPercentage": 1
        },
        "fileId": "example",
        "hlsSource": {
          "expiresAt": 1,
          "fileBytes": 1,
          "height": 1,
          "status": "example",
          "url": "example",
          "width": 1
        },
        "isPublicPreviewEnabled": true,
        "previewSource": {
          "expiresAt": 1,
          "fileBytes": 1,
          "height": 1,
          "status": "example",
          "url": "example",
          "width": 1
        },
        "publicHlsUrl": "example",
        "publicPlaybackId": "example",
        "scope": "example",
        "sourceToolExecutionId": "example",
        "sourceToolType": "example",
        "staticPublicPreviewSource": {
          "expiresAt": 1,
          "fileBytes": 1,
          "height": 1,
          "status": "example",
          "url": "example",
          "width": 1
        },
        "thumbnailSource": {
          "expiresAt": 1,
          "fileBytes": 1,
          "height": 1,
          "status": "example",
          "url": "example",
          "width": 1
        },
        "thumbnailUrl": "example",
        "thumbnailUrlExpiresAt": 1,
        "transcript": {
          "languageCode": "example",
          "words": [
            {}
          ]
        },
        "transcriptText": "example",
        "type": "example"
      }
    ],
    "hasMore": true,
    "nextCursor": "example"
  }
}
```

### List narration voices

Browse voices you can use for narration.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 200.
- Cursor (`cursor`, text): Cursor.
- Include deprecated voices (`include_deprecated_voices`, true/false): When true, includes voices that are deprecated but still callable. Defaults to false.
- Query (`query`, text): Optional case-insensitive substring filter across each item's searchable text fields. Omit to return the unfiltered catalogue.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "hasMore": true,
    "nextCursor": "example",
    "ttsVoices": [
      {
        "accent": "example",
        "description": "example",
        "displayGender": "example",
        "displayName": "example",
        "isDeprecated": true,
        "languageCode": "example",
        "supportsAllLanguages": true,
        "supportsDirectToolExecution": true,
        "voiceId": "example"
      }
    ]
  }
}
```

### List project exports

Browse MP4 exports for a video project.

**Inputs**

- Project ID (`project_id`, text, required): The project id (e.g. `vg_proj_...`).
- Limit (`limit`, number): Limit. From 1 to 200.
- Cursor (`cursor`, text): Cursor.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "exports": [
      {
        "attemptIndex": 1,
        "downloadUrl": "example",
        "downloadUrlExpiresAt": 1,
        "error": {
          "code": "example",
          "internalErrorCode": "example",
          "message": "example",
          "requirement": {}
        },
        "exportFileId": "example",
        "exportId": "example",
        "file": {
          "description": "example",
          "displayName": "example",
          "downloadSource": {},
          "downloadUrl": "example",
          "downloadUrlExpiresAt": 1,
          "durationSeconds": 1,
          "fileAnalysisMetadata": {},
          "fileId": "example",
          "hlsSource": {},
          "isPublicPreviewEnabled": true,
          "previewSource": {},
          "publicHlsUrl": "example",
          "publicPlaybackId": "example",
          "scope": "example",
          "sourceToolExecutionId": "example",
          "sourceToolType": "example",
          "staticPublicPreviewSource": {},
          "thumbnailSource": {},
          "thumbnailUrl": "example",
          "thumbnailUrlExpiresAt": 1,
          "transcript": {},
          "transcriptText": "example",
          "type": "example"
        },
        "progressPercentage": 1,
        "projectId": "example",
        "status": "example",
        "thumbnailUrl": "example",
        "thumbnailUrlExpiresAt": 1
      }
    ],
    "hasMore": true,
    "nextCursor": "example"
  }
}
```

### List projects

Browse video projects in your team.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 200.
- Cursor (`cursor`, text): Cursor.
- Self only (`self_only`, true/false): When true, returns only items created by the API key's owner. When false (default), returns all items accessible to the team.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "hasMore": true,
    "nextCursor": "example",
    "projects": [
      {
        "aspectRatio": {
          "height": 1,
          "width": 1
        },
        "assistantId": "example",
        "createdAt": 1,
        "projectId": "example",
        "projectUrl": "example",
        "status": "example",
        "title": "example",
        "updatedAt": 1
      }
    ]
  }
}
```

### List supported languages

Read supported narration and translation languages.

**Inputs**

- Query (`query`, text): Optional case-insensitive substring filter across each item's searchable text fields. Omit to return the unfiltered catalogue.

**Outputs**

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

**Example output**

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

### List tool executions

Browse standalone image, sound and video jobs.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 200.
- Cursor (`cursor`, text): Cursor.
- Self only (`self_only`, true/false): When true, returns only items created by the API key's owner. When false (default), returns all items accessible to the team.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "hasMore": true,
    "nextCursor": "example",
    "toolExecutions": [
      {
        "attemptIndex": 1,
        "error": {
          "code": "example",
          "internalErrorCode": "example",
          "message": "example",
          "requirement": {}
        },
        "progressPercentage": 1,
        "results": [
          {
            "downloadUrl": "example",
            "downloadUrlExpiresAt": 1,
            "file": {},
            "fileId": "example",
            "thumbnailUrl": "example",
            "thumbnailUrlExpiresAt": 1,
            "type": "example"
          }
        ],
        "status": {},
        "toolExecutionId": "example",
        "toolType": "example"
      }
    ]
  }
}
```

### List workflow runs

Browse recent workflow runs and return a cursor for the next page.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 200.
- Cursor (`cursor`, text): Cursor.
- Self only (`self_only`, true/false): When true, returns only items created by the API key's owner. When false (default), returns all items accessible to the team.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "hasMore": true,
    "nextCursor": "example",
    "workflowRuns": [
      {
        "attemptIndex": 1,
        "downloadUrl": "example",
        "downloadUrlExpiresAt": 1,
        "error": {
          "code": "example",
          "internalErrorCode": "example",
          "message": "example",
          "requirement": {}
        },
        "exportFileId": "example",
        "exportId": "example",
        "outputs": [
          {
            "editableVideoId": "example",
            "language": "example",
            "status": "example"
          }
        ],
        "progressPercentage": 1,
        "projectId": "example",
        "projectUrl": "example",
        "status": {},
        "thumbnailUrl": "example",
        "thumbnailUrlExpiresAt": 1,
        "workflowRunId": "example",
        "workflowType": "example"
      }
    ]
  }
}
```
