Submit Video Tool
submit_videoSubmit a source video url (YouTube, Twitch or Kick past broadcast or clip,
Vimeo, Google Drive, Dropbox, OneDrive, Rumble, or a direct video file) to turn
into viral clips, with an optional title. Returns the new video id (a
hashid) and its status.
Processing is ASYNCHRONOUS: this returns status: "downloading", a
paused pending_credits state, or queued (the team already has a video
over 2 hours processing; a second one over 2 hours starts by itself when
that one finishes, and the result carries a message saying so). Poll get_video_status with the returned id
while processing moves. Do not poll pending_credits: when a failed payment
caused the pause, the result includes payment_required: true, a message,
and billing_url; show that guidance so the user can repair payment.
When get_account shows free_minutes, this video processes free_minutes of its
minutes free, with a watermark and no card, and the result has
free_taste: true. Do not pass start_seconds/end_seconds for it unless
the user names a part: OpenClip picks the free part.
On a free trial, a video longer than the trial minutes left starts the paid
plan right away (the rule the trial checkout states), so the whole video is
processed on plan minutes. Trim it with start_seconds/end_seconds to stay
on the trial. If the card is declined, the plan does not start and the trial
keeps going: the video is processed for the trial minutes left. A video
longer than the plan's own minutes does not start the plan either: the trial
processes the minutes it has left. A trial you cancelled never starts a plan
by itself.
Optionally pass an agent id (a hashid from list_agents) to process the video
with that agent's settings (caption preset, composition defaults, …); omit it to use
the team's defaults.
Optionally pass max_clip_seconds (15 to 90) to cap how long each clip runs
(omit it for automatic lengths, 40 to 90 seconds), and clip_guidance (up to
300 characters) to say which moments to prefer, for example "only the funniest
reactions". Guidance that is too narrow or not about picking moments is
rejected with a reason and a broader suggestion.
Optionally pass content_genre: "gaming" for gameplay or stream VODs (clip
picking favors reactions and action and is tuned to avoid cutscenes and story
reveals, so check story-mode clips before posting; automatic lengths become 30
to 60 seconds), or "general" for the default tuning. Omit it to use the agent's
saved content_genre; when the agent has none, a Twitch or Kick past broadcast
or clip in a game category, a YouTube video in the Gaming category, or a video
whose title names GTA and whose frames show the game runs as gaming.
Optionally pass start_seconds and end_seconds to process only that part
of the source (for example one segment of a long stream). Only that part is
processed and billed. Send both or neither. A whole video that is too long to fetch at 720p or better ends as
download_failed; get_video_status then gives a failure_message naming
the longest part that fits, so submit again with a range of that length.
Safe to retry: submitting the same url + agent + clip preferences (including
content_genre) + range again returns
an existing run for it from the last 24h (still processing, or completed) as
deduped: true instead of starting a second run. Submitting the same url with
a DIFFERENT agent, clip preferences or range starts a new run (so you can re-process a
source with other settings). A previously failed url can be resubmitted to
retry it.
Errors: an unsupported/invalid URL is rejected and an agent not on your team
is rejected. A live stream, a subscriber-only past broadcast, or an
age-restricted video is rejected with the reason; retrying will not help.
A missing subscription or insufficient credits parks the video in
pending_credits; direct the user to OpenClip before checking again.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "submit_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The source video URL to process (a supported provider or a direct video file). | |
| agent | No | Optional agent id (hashid from list_agents) whose settings control processing/rendering. Must be one of your team's agents. Omit to use team defaults. | |
| title | No | Optional title for the video; defaults to the source title. | |
| end_seconds | No | Optional end of the part to process, in seconds into the source. Send it with `start_seconds`; it must be after it. | |
| clip_guidance | No | Optional guidance for which moments to prefer (up to 300 characters). Rejected with a reason and a broader suggestion when too narrow. | |
| content_genre | No | Optional kind of video: "gaming" for gameplay or stream VODs, "general" for the default tuning. Omit to use the agent's saved content_genre, or, when it has none, gaming for a Twitch or Kick game category, a YouTube Gaming video, or a GTA-titled video whose frames show the game. | |
| start_seconds | No | Optional start of the part to process, in seconds into the source. Send it with `end_seconds`; omit both to process the whole video. | |
| max_clip_seconds | No | Optional cap on clip length in seconds (15 to 90). Clips then run between half the cap and the cap. Omit for automatic lengths (40 to 90 seconds). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video | Yes | The video id (hashid). Pass it as `video` to get_video_status, list_clips, get_render_status and render_clip. | |
| status | Yes | The video status. downloading, uploaded and processing are in-flight; pending_credits is paused; queued waits for another video over 2 hours from the same team and starts by itself; waiting_for_replay waits for a live stream to end and starts by itself; completed, failed and download_failed are terminal. | |
| deduped | Yes | True when an existing run for this url + agent + clip preferences from the last 24h was returned instead of starting a new one. | |
| message | No | User-safe explanation of why processing is paused. Present while the video is pending_credits, queued or waiting_for_replay. | |
| free_taste | No | Present and true when part of the video processes free, with a watermark (the free_minutes get_account reported). Its clips come from that part. | |
| billing_url | No | OpenClip billing page where the user can recover. Present with payment_required or subscription_required. | |
| payment_required | No | Present and true when an open failed subscription payment, or a trial card that failed its check, is blocking processing. | |
| subscription_required | No | Present and true when terminal payment failure requires a new subscription. |