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
| Field | Kind | Default | Description |
|---|---|---|---|
lang required | text | — | The |
videoUrl required | URL or file | — | URL of your video source. |
videoType required | number (whole) | — | The source of a video. Value can be: - |
preferLength required | list | — | The parameter preferLength controls how long each output video will be. Value can be: - |
ext | text | — | Video file extension. Supported video file extensions are: mp4, 3gp, avi, and mov. This parameter is required only when |
keywords | text | — | Use the |
templateId | number (whole) | — | The |
emojiSwitch | number (whole) | 0 | Use the |
ratioOfClip | number (whole) | 1 | The ratioOfClip parameter controls the output video shape for all generated clips. Value can be: - |
maxClipNumber | number (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. |
headlineSwitch | number (whole) | 1 | Use the |
subtitleSwitch | number (whole) | 1 | Use the |
autoBrollSwitch | number (whole) | 0 | Use the |
highlightSwitch | number (whole) | 0 | Use the |
removeSilenceSwitch | number (whole) | 0 | The |
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>"
]
}
}'