VizardVideoAvailable now

clip_v1

clip_v1 is a video tool from Vizard that runs in the background and returns video and structured JSON. Pay as you go, with one API key.

Pricing

$0.0325 per minute of source video, whole minutes, at least 1 minute ($0.0407 per minute with the v2 clip model).

Limits

Runs
In the background
Returns
video, json
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
930 minutes
Largest inline input
1 MB
Largest input file
10 GB
Largest output
5 GB
Outputs per run
200

Input

FieldKindDefaultDescription
lang requiredtext—

The lang parameter tells Vizard what spoken language is used in your submitted video. For supported language codes, please refer to https://vizard.readme.io/docs/supported-languages#/

videoUrl requiredURL or file—

URL of your video source.

videoType requirednumber (whole)—

The source of a video. Value can be: - 1: Remote video file - 2: YouTube - 3: Google Drive - 4: Vimeo - 5: StreamYard - 6: TikTok - 7: Twitter(X) - 9: Twitch - 10: Loom - 11: Facebook - 12: LinkedIn - 13: Dropbox - 14: Instagram

preferLength requiredlist—

The parameter preferLength controls how long each output video will be. Value can be: - 0: Automatically chosen - 1: Less than 30 seconds - 2: 30 to 60 seconds - 3: 60 to 90 seconds - 4: 90 seconds to 3 minutes

exttext—

Video file extension. Supported video file extensions are: mp4, 3gp, avi, and mov. This parameter is required only when videoType is set to 1.

keywordstext—

Use the keywords parameter to include content related to specific topics in your clips.

templateIdnumber (whole)—

The templateId parameter allows you to apply a custom template to the generated clips. https://docs.vizard.ai/docs/advanced#/apply-a-template

emojiSwitchnumber (whole)0

Use the emojiSwitch parameter to control whether auto emoji in subtitles is enabled or not.

ratioOfClipnumber (whole)1

The ratioOfClip parameter controls the output video shape for all generated clips. Value can be: - 1(default): 9:16 (Vertical) - 2: 1:1 (Square) - 3: 4:5 (Portrait) - 4: 16:9 (Horizontal)

maxClipNumbernumber (whole)—

Parameter maxClipNumber sets the maximum number of clips to return from a long video (range: 1 to 100). This does not control the exact number of clips—only the upper limit. If this parameter is not included in your request, all clips will be returned.

headlineSwitchnumber (whole)1

Use the headlineSwitch parameter to control whether an AI-generated headline (also called a hook) is added to your clip. Value can be: - 1(default): show headline - 0: no headline

subtitleSwitchnumber (whole)1

Use the subtitleSwitch parameter to control whether subtitles are displayed in the final clips. By default, this is set to 1, meaning subtitles are turned on. When set to 0, subtitles will be set to hidden.

autoBrollSwitchnumber (whole)0

Use the autoBrollSwitch parameter to control whether auto B-roll function is enabled or not.

highlightSwitchnumber (whole)0

Use the highlightSwitch parameter to control whether auto highlight keywords function is enabled or not.

removeSilenceSwitchnumber (whole)0

The removeSilenceSwitch parameter controls whether silent gaps and filler words (like “um”, “uh”) are removed from your final clips. Value can be: - 0(default): disable remove silence - 1: enable remove silence

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "vizard",
    "model": "clip_v1",
    "input": {
      "lang": "<lang>",
      "videoUrl": "<videoUrl>",
      "videoType": 1,
      "preferLength": [
        "<preferLength>"
      ]
    }
  }'