VideoGen
App · 20 actions
Generate video and media, export projects and check job progress.
Actions
| Action | What it does |
|---|---|
| Export a video project | Start an MP4 export for a video project that has finished building. |
| Generate a script video | Create a narrated video from a script. |
| Generate a sound effect | Generate a short sound effect from a description. |
| Generate a video clip from a prompt | Start building a short AI-generated video clip. |
| Generate an image | Start a standalone image generation job. |
| Generate music | Start an instrumental music generation job. |
| Generate text | Draft a script, title or other short text. |
| Get a file | Read metadata and links for a VideoGen file. |
| Get a project export | Check an export job and obtain its video download when ready. |
| Get a tool execution | Check a standalone job and retrieve its result. |
| Get a video project | Read a video project’s title, status and editor URL. |
| Get current account | Read the account and team behind this API key. |
| Get workflow run status | Check a workflow run and retrieve its completed output. |
| List files | Browse files visible to your VideoGen team. |
| List narration voices | Browse voices you can use for narration. |
| List project exports | Browse MP4 exports for a video project. |
| List projects | Browse video projects in your team. |
| List supported languages | Read supported narration and translation languages. |
| List tool executions | Browse standalone image, sound and video jobs. |
| List workflow runs | Browse recent workflow runs and return a cursor for the next page. |
Export a video project
Start an MP4 export for a video project that has finished building.
Inputs
- Project ID
project_idtextRequired - Project to export.
- Editable video ID
editable_video_idtext - Video ID from the workflow output. Leave blank to export the first video.
- Quality
qualitytext - Resolution of the finished export.One of:
STANDARD,HIGH,FULL_HIGH(Full high),ULTRA_HIGH(Ultra high). - Watermark mode
watermark_modetext - Whether to add a VideoGen watermark.One of:
AUTO,VIDEO_GEN(Video gen),NONE. - End screen mode
end_screen_modetext - Whether to add the VideoGen end screen.One of:
AUTO,VIDEO_GEN(Video gen),NONE.
Outputs
dataobject- The response from VideoGen.
Example output
{
"data": {
"exportId": "example"
}
}Generate a script video
Create a narrated video from a script.
Inputs
- Script
scripttextRequired - Script.
- Visual style
visual_styletextRequired - Visual style for the generated b-roll.One of:
STOCK,AI_IMAGE(Ai image). - Visual pacing
visual_pacingtext - How quickly visuals change. FAST shows more, shorter shots; SLOW holds each visual longer. Defaults to MEDIUM.One of:
FAST,MEDIUM,SLOW. - Quality
qualitytext - Quality.One of:
LOW,STANDARD,HIGH,MAX. - Language
languagetext - Output language as a BCP-47 code (e.g. `en`, `es`, `fr`). Defaults to English.
- Voice
voice_idtext - Voice id.
- Voice speed
voice_speednumber - Speech rate multiplier, between 0.5 (half speed) and 2 (double speed). Defaults to the voice's default speed.
- Is output temporary
is_output_temporarytrue/false - Is output temporary.
- Auto export
auto_exporttrue/false - Auto export.
Outputs
dataobject- The response from VideoGen.
Example output
{
"data": {
"projectId": "example",
"projectUrl": "example",
"videoEditIds": [
"example"
],
"workflowRunId": "example"
}
}Generate a sound effect
Generate a short sound effect from a description.
Inputs
- Prompt
prompttextRequired - A text description of the sound effect to generate.
- Duration seconds
duration_secondsnumber - 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_influencenumber - Prompt influence.
- Num results
num_resultsnumber - Number of output results to generate. Defaults to 1.
- Is output temporary
is_output_temporarytrue/false - Is output temporary.
Outputs
dataobject- The response from VideoGen.
Example output
{
"data": {
"toolExecutionId": "example"
}
}Generate a video clip from a prompt
Start building a short AI-generated video clip.
Inputs
- Prompt
prompttextRequired - Describe what should appear in the clip.
- Duration seconds
duration_secondsnumber - Desired length in seconds.From 1 to 30.
- Quality
qualitytext - Generation quality.One of:
LOW,STANDARD,HIGH,MAX. - Is output temporary
is_output_temporarytrue/false - Keep generated files for at least 24 hours.
Outputs
dataobject- The response from VideoGen.
Example output
{
"data": {
"projectId": "example",
"projectUrl": "example",
"videoEditIds": [
"example"
],
"workflowRunId": "example"
}
}Generate an image
Start a standalone image generation job.
Inputs
- Prompt
prompttextRequired - Text prompt describing the image to generate. When reference images are provided, the prompt describes the desired transformation.
- Quality
qualitytext - Quality.One of:
LOW,STANDARD,HIGH,MAX. - Num results
num_resultsnumber - Number of output results to generate. Defaults to 1.
- Is output temporary
is_output_temporarytrue/false - Is output temporary.
Outputs
dataobject- The response from VideoGen.
Example output
{
"data": {
"toolExecutionId": "example"
}
}Generate music
Start an instrumental music generation job.
Inputs
- Prompt
prompttextRequired - A text description of the music to generate. Include genre, mood, instrumentation, and tempo for best results.
- Duration seconds
duration_secondsnumber - Desired track length in seconds, between 3 and 600. Defaults to 180 seconds when omitted or null.
- Num results
num_resultsnumber - Number of output results to generate. Defaults to 1.
- Is output temporary
is_output_temporarytrue/false - Is output temporary.
Outputs
dataobject- The response from VideoGen.
Example output
{
"data": {
"toolExecutionId": "example"
}
}Generate text
Draft a script, title or other short text.
Inputs
- Prompt
prompttextRequired - The instruction or content to generate text from.
- System
systemtext - Optional system instructions that steer the model's role, tone, and constraints.
- Quality
qualitytext - Quality.One of:
LOW,STANDARD,HIGH,MAX. - Temperature
temperaturenumber - Sampling temperature. Higher values produce more varied output. Defaults to the model's default.
- Max output tokens
max_output_tokensnumber - Maximum number of tokens to generate. Defaults to 512.
Outputs
dataobject- The response from VideoGen.
Example output
{
"data": {
"text": "example"
}
}Get a file
Read metadata and links for a VideoGen file.
Inputs
- File ID
file_idtextRequired - The file id (e.g. `vg_file_...`).
Outputs
dataobject- The response from VideoGen.
Example output
{
"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_idtextRequired - The project id (e.g. `vg_proj_...`).
- Export ID
export_idtextRequired - The export id (e.g. `vg_expo_...`) returned by `POST /v1/projects/{projectId}/export`.
Outputs
dataobject- The response from VideoGen.
Example output
{
"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_idtextRequired - The tool execution id returned when the tool was started.
Outputs
dataobject- The response from VideoGen.
Example output
{
"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_idtextRequired - The project id (e.g. `vg_proj_...`).
Outputs
dataobject- The response from VideoGen.
Example output
{
"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
dataobject- The response from VideoGen.
Example output
{
"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_idtextRequired - The workflow run id returned when the workflow was started.
Outputs
dataobject- The response from VideoGen.
Example output
{
"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
limitnumber - Limit.From 1 to 200.
- Cursor
cursortext - Cursor.
Outputs
dataobject- The response from VideoGen.
Example output
{
"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
limitnumber - Limit.From 1 to 200.
- Cursor
cursortext - Cursor.
- Include deprecated voices
include_deprecated_voicestrue/false - When true, includes voices that are deprecated but still callable. Defaults to false.
- Query
querytext - Optional case-insensitive substring filter across each item's searchable text fields. Omit to return the unfiltered catalogue.
Outputs
dataobject- The response from VideoGen.
Example output
{
"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_idtextRequired - The project id (e.g. `vg_proj_...`).
- Limit
limitnumber - Limit.From 1 to 200.
- Cursor
cursortext - Cursor.
Outputs
dataobject- The response from VideoGen.
Example output
{
"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
limitnumber - Limit.From 1 to 200.
- Cursor
cursortext - Cursor.
- Self only
self_onlytrue/false - When true, returns only items created by the API key's owner. When false (default), returns all items accessible to the team.
Outputs
dataobject- The response from VideoGen.
Example output
{
"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
querytext - Optional case-insensitive substring filter across each item's searchable text fields. Omit to return the unfiltered catalogue.
Outputs
dataobject- The response from VideoGen.
Example output
{
"data": {
"languages": [
{
"languageCode": "example",
"name": "example"
}
]
}
}List tool executions
Browse standalone image, sound and video jobs.
Inputs
- Limit
limitnumber - Limit.From 1 to 200.
- Cursor
cursortext - Cursor.
- Self only
self_onlytrue/false - When true, returns only items created by the API key's owner. When false (default), returns all items accessible to the team.
Outputs
dataobject- The response from VideoGen.
Example output
{
"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
limitnumber - Limit.From 1 to 200.
- Cursor
cursortext - Cursor.
- Self only
self_onlytrue/false - When true, returns only items created by the API key's owner. When false (default), returns all items accessible to the team.
Outputs
dataobject- The response from VideoGen.
Example output
{
"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"
}
]
}
}