VideoGen

App · 20 actions

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

Actions

ActionWhat it does
Export a video projectStart an MP4 export for a video project that has finished building.
Generate a script videoCreate a narrated video from a script.
Generate a sound effectGenerate a short sound effect from a description.
Generate a video clip from a promptStart building a short AI-generated video clip.
Generate an imageStart a standalone image generation job.
Generate musicStart an instrumental music generation job.
Generate textDraft a script, title or other short text.
Get a fileRead metadata and links for a VideoGen file.
Get a project exportCheck an export job and obtain its video download when ready.
Get a tool executionCheck a standalone job and retrieve its result.
Get a video projectRead a video project’s title, status and editor URL.
Get current accountRead the account and team behind this API key.
Get workflow run statusCheck a workflow run and retrieve its completed output.
List filesBrowse files visible to your VideoGen team.
List narration voicesBrowse voices you can use for narration.
List project exportsBrowse MP4 exports for a video project.
List projectsBrowse video projects in your team.
List supported languagesRead supported narration and translation languages.
List tool executionsBrowse standalone image, sound and video jobs.
List workflow runsBrowse 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 IDproject_idtextRequired
Project to export.
Editable video IDeditable_video_idtext
Video ID from the workflow output. Leave blank to export the first video.
Qualityqualitytext
Resolution of the finished export.One of: STANDARD, HIGH, FULL_HIGH (Full high), ULTRA_HIGH (Ultra high).
Watermark modewatermark_modetext
Whether to add a VideoGen watermark.One of: AUTO, VIDEO_GEN (Video gen), NONE.
End screen modeend_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

ScriptscripttextRequired
Script.
Visual stylevisual_styletextRequired
Visual style for the generated b-roll.One of: STOCK, AI_IMAGE (Ai image).
Visual pacingvisual_pacingtext
How quickly visuals change. FAST shows more, shorter shots; SLOW holds each visual longer. Defaults to MEDIUM.One of: FAST, MEDIUM, SLOW.
Qualityqualitytext
Quality.One of: LOW, STANDARD, HIGH, MAX.
Languagelanguagetext
Output language as a BCP-47 code (e.g. `en`, `es`, `fr`). Defaults to English.
Voicevoice_idtext
Voice id.
Voice speedvoice_speednumber
Speech rate multiplier, between 0.5 (half speed) and 2 (double speed). Defaults to the voice's default speed.
Is output temporaryis_output_temporarytrue/false
Is output temporary.
Auto exportauto_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

PromptprompttextRequired
A text description of the sound effect to generate.
Duration secondsduration_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 influenceprompt_influencenumber
Prompt influence.
Num resultsnum_resultsnumber
Number of output results to generate. Defaults to 1.
Is output temporaryis_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

PromptprompttextRequired
Describe what should appear in the clip.
Duration secondsduration_secondsnumber
Desired length in seconds.From 1 to 30.
Qualityqualitytext
Generation quality.One of: LOW, STANDARD, HIGH, MAX.
Is output temporaryis_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

PromptprompttextRequired
Text prompt describing the image to generate. When reference images are provided, the prompt describes the desired transformation.
Qualityqualitytext
Quality.One of: LOW, STANDARD, HIGH, MAX.
Num resultsnum_resultsnumber
Number of output results to generate. Defaults to 1.
Is output temporaryis_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

PromptprompttextRequired
A text description of the music to generate. Include genre, mood, instrumentation, and tempo for best results.
Duration secondsduration_secondsnumber
Desired track length in seconds, between 3 and 600. Defaults to 180 seconds when omitted or null.
Num resultsnum_resultsnumber
Number of output results to generate. Defaults to 1.
Is output temporaryis_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

PromptprompttextRequired
The instruction or content to generate text from.
Systemsystemtext
Optional system instructions that steer the model's role, tone, and constraints.
Qualityqualitytext
Quality.One of: LOW, STANDARD, HIGH, MAX.
Temperaturetemperaturenumber
Sampling temperature. Higher values produce more varied output. Defaults to the model's default.
Max output tokensmax_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 IDfile_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 IDproject_idtextRequired
The project id (e.g. `vg_proj_...`).
Export IDexport_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 IDtool_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 IDproject_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 IDworkflow_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

Limitlimitnumber
Limit.From 1 to 200.
Cursorcursortext
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

Limitlimitnumber
Limit.From 1 to 200.
Cursorcursortext
Cursor.
Include deprecated voicesinclude_deprecated_voicestrue/false
When true, includes voices that are deprecated but still callable. Defaults to false.
Queryquerytext
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 IDproject_idtextRequired
The project id (e.g. `vg_proj_...`).
Limitlimitnumber
Limit.From 1 to 200.
Cursorcursortext
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

Limitlimitnumber
Limit.From 1 to 200.
Cursorcursortext
Cursor.
Self onlyself_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

Queryquerytext
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

Limitlimitnumber
Limit.From 1 to 200.
Cursorcursortext
Cursor.
Self onlyself_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

Limitlimitnumber
Limit.From 1 to 200.
Cursorcursortext
Cursor.
Self onlyself_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"
      }
    ]
  }
}

On this page