|Docs

CLI commands and flags

The invideo CLI is one binary that drives invideo from a shell: it generates video, images, voice and music with invideo gen, edits timelines with invideo edit, and exports. Install it, sign in, and check who you are:

curl -fsSL https://agents.invideo.io | shinvideo auth logininvideo auth status

Every command has the same shape: invideo <command> <subcommand> [<url>] [flags]. The URL names what the command acts on, and every answer gives the URLs to use next. Run invideo <command> <subcommand> --help for one command's flags, and invideo help <topic> for a help topic.

Rules for every command

These rules hold on every command. Your agent keeps them and gets clean, repeatable runs.

  • The URL is the handle. Pass the URL of what you act on: a workspace, a project, a page, a sequence or an edit. Give the URLs you make to the person. Each one opens what it names in invideo.
  • Ask for JSON. Add --json to get the whole answer as one JSON object, next included. Set INVIDEO_JSON=1 to do this on every command.
  • Follow jobs with --wait. A command that starts a generation, an export or an upload returns a URL at once. Run invideo status <url> --wait to follow it until it is over. status does not download.
  • Save files with notebook show. Run invideo notebook show <url> --out <dir> on a sequence or an export card to save its file.
  • Name yourself in a project. Run invideo agent register once, then pass --as <name> on every command in that project, or set INVIDEO_AS. Every project command takes --as, so the tables below leave it out.
  • Price before you pay. Run a paid command with --dry-run first, then run it with --max-credits.

These flags work on every command:

FlagWhat it does
--helpHelp for any command.
--jsonThe answer as one JSON object on stdout, with next.
--tsvAn answer's list as tab-separated rows under a header line.
--out <dir>Saves files into the folder on the commands that save them: invideo notebook show (a sequence or an export card), and invideo edit capture and invideo media video.frames (frames). invideo status saves nothing, even with --out.
--waitWaits for a generation, an export or an upload to finish.
--timeout <s>Stops waiting after this many seconds.

The commands come in the order invideo --help lists them.

auth

The auth commands: sign in and out.

auth login

Sign in, in the browser.

It takes no flags of its own.

invideo auth login

auth logout

Forget this machine's sign-in.

It takes no flags of its own.

invideo auth logout

auth status

Who you are signed in as.

It takes no flags of its own.

invideo auth status

workspace

The workspace commands: your workspaces.

workspace list

Your workspaces.

It takes no flags of its own.

invideo workspace list

project

The project commands: list, create, show and rename projects.

project list

Your projects, newest first.

FlagValueWhat it does
--offsetintegerWhere the page starts: the next_offset of the page before.
--querystringOnly projects whose title contains this.
invideo project list [<workspace-url>] --query teaser

project new

Start a project.

FlagValueWhat it does
--titlestringRequired. The project's name, as the person will see it, like "Product teaser".
invideo project new [<workspace-url>] --title "Product teaser"

project show

A project: its notebook, context, briefs and newest files.

It takes no flags of its own.

invideo project show https://invideo.io/@acme/launch-reel

project rename

Rename what a URL names.

FlagValueWhat it does
--namestringRequired. The new name, like "Take 3 · slower, warmer".
invideo project rename <url> --name "Launch"

notebook

The notebook commands: pages, threads and sequences.

notebook show

A page, a thread or a sequence.

It takes no flags of its own.

invideo notebook show <page-url>invideo notebook show <card-url> --out ./out

On a sequence or an export card, --out <dir> saves the file into the folder. An exported video saves as export.mp4, whatever --file-name the export had; rename it after. <card-url> is .sequences[0] in the answer of invideo edit export --json.

notebook new-page

A new notebook page.

FlagValueWhat it does
--titlestringRequired. The page's title, as the person will see it.
invideo notebook new-page <project-url> --title "Ideas"

notebook mark

Approve or reject a sequence.

FlagValueWhat it does
--statusstringRequired. accepted approves it, rejected rejects it. One of accepted, rejected.
--reasonstringWhy, in a sentence the person sees beside the mark.
invideo notebook mark <sequence-url> --status accepted --reason "best take"

context

The context commands: the project's entries and briefs.

context show

A context entry or a brief.

It takes no flags of its own.

invideo context show <project-url>/context

context write

Replace a context entry or a brief.

FlagValueWhat it does
--markdownstringRequired. All of it, as invideo context show shows it (--markdown @entry.md).
--descriptionstringA context entry's line in the context's index; kept when left out.
--revisionintegerThe revision your latest read gave.
invideo context write <entry-url> --markdown @acme.md

context edit

Change part of a context entry or a brief.

FlagValueWhat it does
--newstringRequired. What takes its place.
--oldstringRequired. The exact text to change, as invideo context show shows it.
--allChanges every place it is.
invideo context edit <brief-url> --old "loud" --new "plain"

context new-brief

Start a brief.

FlagValueWhat it does
--descriptionstringRequired. What it is for, in a sentence or two.
--namestringRequired. Its name, like "Launch teaser".
invideo context new-brief <project-url> --name "Launch" \  --description "The launch teaser"

edit

The edit commands: read, change, capture and export an edit.

edit new

A new edit in a project.

FlagValueWhat it does
--fpsintegerFrames per second (default 30).
--heightintegerHeight in pixels (default 1080).
--namestringThe edit's name, from what it is for, like "Product teaser" (default "Timeline").
--widthintegerWidth in pixels (default 1920).
invideo edit new <project-url> --name "Teaser v1"

edit change

Change an edit: a list of operations, all or none.

FlagValueWhat it does
--operationslistRequired. Operations, each an op and its fields, as a JSON list (--operations @ops.json). The file holds a bare list, [ {...} ], with no operations wrapper.
--timelinestringRequired. Which timeline to change, from invideo edit show.
--tokenstringRequired. The state token from your latest read or change of this edit.
--dry-runChecks the operations without applying them.
invideo edit change <edit-url> --timeline T1 --token … --operations @ops.json

<edit-url> comes from invideo edit new. The --token value is the state_token from invideo edit show, and each change returns a fresh one.

edit catalog

The operations, effects and transitions an edit takes.

FlagValueWhat it does
--audio-effectslistAudio effect names whose settings to give.
--effectslistEffect names whose parameters to give.
--guideslistGuide names whose text to give, like custom_shader.
--opslistOp names whose fields to give.
--transitionslistTransition names whose parameters to give.
invideo edit catalog <edit-url> --ops trim_clip,add_text

edit export

Render an edit to a file.

FlagValueWhat it does
--formatstringRequired. video renders a file; premiere, final_cut and davinci make a project file that Premiere Pro, Final Cut Pro or DaVinci Resolve opens; invideo makes an invideo project. One of video, premiere, final_cut, davinci, invideo.
--audio-formatstringFor video: the sound's format. One of aac, opus, wav.
--encode-qualitystringFor video: how hard the encoder works; best is slowest. One of draft, good, best.
--endnumberFor video: where it ends, in seconds.
--file-namestringFor video: the file's name.
--fpsnumberFor video: frames per second; the edit's own when left out.
--idempotency-keystringAny text unique to this export, like a UUID.
--media-packagingstringFor premiere, final_cut and davinci: how the media comes with the project. One of folder, zip, none.
--modestringFor video: a video, its sound alone, or one still image. One of video, audio, image.
--qualitystringFor video: its height in pixels. One of 240, 480, 720, 1080.
--startnumberFor video: where it starts, in seconds (default 0).
--still-atnumberWith --mode image: the time of the still, in seconds.
--target-lufsnumberFor video: the loudness to normalize the sound to, in LUFS.
--timelinestringWhich timeline in the edit to export, from invideo edit show.
invideo edit export <edit-url> --format video --quality 1080 --jsoninvideo status <card-url> --waitinvideo notebook show <card-url> --out ./out

The export returns an export card. <card-url> is .sequences[0] in the JSON answer. invideo status --wait follows the card until it is over and saves nothing. invideo notebook show with --out saves the video as export.mp4; --file-name does not name the saved file. For premiere, final_cut and davinci, completed can arrive before the media package is ready: run invideo notebook show again until the files list is there.

edit import

Replace the branch the URL names with a project from Premiere Pro, Final Cut 7 or DaVinci Resolve. The project file is a Final Cut 7 .xml or a DaVinci .otio. Every sequence in it becomes a timeline. The branch's state is kept as a checkpoint first, so invideo branch restore brings it back. Pass the media as a zip after the project file, or point at a Drive folder. Media arrives in the background: invideo edit show on the branch shows its status. A file the project names that is not in the zip fails alone, and its clips keep their timing.

FlagValueWhat it does
--idempotency-keystringAny text unique to this import, like a UUID. A retry with the same key finds the first import instead of running twice.
--media-drive-linkstringA Google Drive folder anyone with the link can read, holding the media, instead of a zip.
invideo edit import <edit-url> project.xml media.zip --idempotency-key <key>

<edit-url> is the branch to replace, from invideo branch new or invideo edit new. project.xml is the file your NLE exported; media.zip holds its media, stored without compression (zip -0 -r media.zip media/).

edit leave

Leave an edit (your cursor goes).

It takes no flags of its own.

invideo edit leave <edit-url>

edit show

An edit's tracks and clips, and its state token.

FlagValueWhat it does
--collectionstringWith --mode collection, the kind of object to list: timeline, track, clip, transition, gap, audio_track, audio_clip, audio_gap, asset, folder, font, lut, audio_bus, audio_effect, audio_send, marker, keyframe_lane, keyframe, motion_path_handle, guide, effect, shape_path, shape_paint, caption_slide, caption_sticker, color_mask, values. One of timeline, track, clip, transition, gap, audio_track, audio_clip, audio_gap, asset, folder, font, lut, audio_bus, audio_effect, audio_send, marker, keyframe_lane, keyframe, motion_path_handle, guide, effect, shape_path, shape_paint, caption_slide, caption_sticker, color_mask, values.
--end-secondsnumberWith --mode window: where the window ends.
--idslistWith --mode inspect: the ids to read.
--limitintegerThe most objects on one page.
--modestringoverview lists the timelines; window reads tracks and the clips between --start-seconds and --end-seconds; collection lists one kind of object; inspect reads the objects named in --ids. One of overview, inspect, window, collection.
--offsetintegerWhere the page starts: the next_offset of the page before.
--parent-idstringWith --mode collection: only objects that belong to this clip, track, timeline or keyframe lane.
--property-pathstringWith --collection values: where the list sits in the object, like /vertices.
--snapshotstringThe snapshot the first page gave, for the pages after it.
--start-secondsnumberWith --mode window: where the window starts (default 0).
--timelinestringWhich timeline in the edit, from invideo edit show.
invideo edit show <edit-url>

edit inspect

Objects of an edit by id, with every property you can change; a custom shader's source.

FlagValueWhat it does
--idslistRequired. The objects' ids, from invideo edit show.
--limitintegerThe most objects on one page.
--offsetintegerWhere the page starts: the next_offset of the page before.
--snapshotstringThe snapshot the first page gave, for the pages after it.
invideo edit inspect <edit-url> --ids c5,c7

edit check

Check an edit for problems.

It takes no flags of its own.

invideo edit check <edit-url>

edit capture

Render frames of an edit as it looks now.

FlagValueWhat it does
--atlistRequired. Times in the edit, in seconds, up to 12.
--timelinestringWhich timeline in the edit, from invideo edit show.
invideo edit capture <edit-url> --at 1,3.5 --out ./frames

--out <dir> saves the frames into the folder.

edit point

Point at a time or clips, for people watching.

FlagValueWhat it does
--textstringRequired. What to say beside your cursor, in about four words.
--atnumberOne time in the edit, in seconds.
--idslistUp to 10 clip ids from invideo edit show.
--timelinestringWhich timeline in the edit, from invideo edit show.
invideo edit point <edit-url> --at 4 --text "this cut"

branch

The branch commands: an edit's checkpoints and branches.

branch list

Branches and checkpoints, each branch with its URL.

FlagValueWhat it does
--limitintegerThe most checkpoints on one page.
--offsetintegerWhere the page of checkpoints starts.
--snapshotstringThe snapshot the first page gave.
invideo branch list <edit-url>

branch checkpoint

Save a checkpoint on a branch; returns the edits it saved.

FlagValueWhat it does
--titlestringRequired. A short title for the checkpoint.
--tokenstringRequired. The state token from your latest read or change of this edit.
--messagestringA longer note on what changed.
invideo branch checkpoint <edit-url> --title "rough cut" --token …

branch restore

Restore a branch to a checkpoint; returns the edits it changed and the backup.

FlagValueWhat it does
--checkpointstringRequired. A checkpoint, as invideo branch list names it.
--tokenstringRequired. The state token from your latest read or change of this edit.
invideo branch restore <edit-url> --checkpoint … --token …

branch new

Branch off now, or off a checkpoint with --checkpoint.

FlagValueWhat it does
--namestringRequired. The new branch's name.
--tokenstringRequired. The state token from your latest read or change of this edit.
--checkpointstringA checkpoint, as invideo branch list names it.
invideo branch new <edit-url> --name tighter-intro --token …

The answer gives branch_url. Run every later edit change, edit check, edit capture and edit export on that <branch-url>, with a fresh token from invideo edit show <branch-url>. The main timeline's token is stale on the branch.

branch edit-from-here

Open a checkpoint for editing on a branch of its own.

FlagValueWhat it does
--checkpointstringRequired. A checkpoint, as invideo branch list names it.
--tokenstringRequired. The state token from your latest read or change of this edit.
invideo branch edit-from-here <edit-url> --checkpoint … --token …

branch tag

Tag a checkpoint.

FlagValueWhat it does
--checkpointstringRequired. A checkpoint, as invideo branch list names it.
--namestringRequired. The tag's name.
--tokenstringRequired. The state token from your latest read or change of this edit.
invideo branch tag <edit-url> --checkpoint … --name v1 --token …

branch rename

Rename a branch.

FlagValueWhat it does
--namestringRequired. The branch's new name.
--tokenstringRequired. The state token from your latest read or change of this edit.
invideo branch rename <branch-url> --name final --token …

branch archive

Close a branch to edits; it keeps its history.

FlagValueWhat it does
--tokenstringRequired. The state token from your latest read or change of this edit.
invideo branch archive <branch-url> --token …

branch unarchive

Open an archived branch again.

It takes no flags of its own.

invideo branch unarchive <branch-url>

branch default

Make a branch the default.

FlagValueWhat it does
--tokenstringRequired. The state token from your latest read or change of this edit.
invideo branch default <branch-url> --token …

branch final

Declare a branch final.

FlagValueWhat it does
--tokenstringRequired. The state token from your latest read or change of this edit.
invideo branch final <branch-url> --token …

asset

The asset commands: the project's files: upload and add.

asset upload

Upload local files into a project.

FlagValueWhat it does
--timelinestringWith an edit's URL: which timeline's media bin, from invideo edit show.
invideo asset upload <project-url> ./shots/*.mp4

asset add

Bring in media from a link or the stock library.

FlagValueWhat it does
--file-namestringThe file's name with its extension, to name it by.
--media-urlstringA public http(s) link to the file; a file's URL from the project's …/assets; or a sequence's or font's URL (with an edit's URL).
--mime-typestringThe file's media type, like video/mp4.
--stockstringA stock result's id from invideo library search, with the project's URL.
--timelinestringWith an edit's URL: which timeline's media bin, from invideo edit show.
invideo asset add <project-url> --media-url https://…/clip.mp4

asset show

A project's files, a folder or a file.

It takes no flags of its own.

invideo asset show <project-url>/assets

media

Each media subcommand works on one file: a sequence URL, a file under the project's …/assets, or, for reads, a bin asset with --asset. Reads are free and return at once. audio.transcript and the model ops cost credits, so run them with --dry-run first. The tool ops, such as video.trim and image.crop, make a new file without a model. The dry run shows its price before anything starts.

--asset works on the reads only: metadata, video.frames, audio.waveform, audio.loudness, audio.content, audio.onsets, audio.markers, audio.key, audio.sections and audio.beats. Every op that costs credits or makes a file refuses --asset with not_found. Pass the file's sequence URL (…/notebook/seq-N.M) instead. invideo asset upload and invideo asset add return that URL.

In the examples, <price> is the estimated_credits from the same command run with --dry-run.

The examples below come from each command's help. Where a table marks a flag as required, add it to the example before you run it.

Most media subcommands also take some of these shared flags. Each subcommand below names the ones it takes.

FlagWhat it does
--assetA file in the edit's media bin, by its id from invideo edit show. Reads only.
--stockA stock result's id from invideo library search, with the project's URL.
--dry-runPrices it; nothing starts.
--idempotency-keyAny text unique to this one, like a UUID.
--max-creditsThe most it may cost, in the person's credits: nothing starts when it is higher.

media metadata

What a file is: streams, duration, size.

Shared flags: --asset, --stock.

invideo media metadata <sequence-url>

media video.frames

Frames of a file at times in it.

FlagValueWhat it does
--atlistRequired. Times in the file, in seconds, up to 12.

Shared flags: --asset, --stock.

invideo media video.frames <sequence-url> --at 0,2,4 --out ./frames

media audio.waveform

A file's audio levels.

FlagValueWhat it does
--limitintegerThe most points, 16 a second (default 256).
--offsetintegerThe first point, counted in points (16 a second) from the start.

Shared flags: --asset, --stock.

invideo media audio.waveform <sequence-url>

media audio.loudness

A file's loudness: integrated, true peak, range.

Shared flags: --asset, --stock.

invideo media audio.loudness <sequence-url>

media audio.content

Where a file's sound is speech, music, effects or silence.

FlagValueWhat it does
--limitintegerThe most spans (default 256).
--offsetintegerThe first span, counted from the start.

Shared flags: --asset, --stock.

invideo media audio.content <sequence-url>

media audio.onsets

Where each hit or transient in a file starts and peaks.

FlagValueWhat it does
--limitintegerThe most onsets (default 256).
--offsetintegerThe first onset, counted from the start.

Shared flags: --asset, --stock.

invideo media audio.onsets <sequence-url>

media audio.markers

A file's tempo and musical markers.

FlagValueWhat it does
--limitintegerThe most markers (default 256).
--offsetintegerThe first marker, counted from the start.

Shared flags: --asset, --stock.

invideo media audio.markers <sequence-url>

media audio.key

A file's musical key.

Shared flags: --asset, --stock.

invideo media audio.key <sequence-url>

media audio.sections

A file's musical structure, coarse to fine.

Shared flags: --asset, --stock.

invideo media audio.sections <sequence-url>

media audio.beats

Where a file's strong and weak beats fall.

FlagValueWhat it does
--end-secondsnumberOnly beats by this time in the file, in seconds.
--limitintegerThe most beats (default 256).
--offsetintegerThe first beat, counted from the start of the file or of the window --start-seconds and --end-seconds make.
--start-secondsnumberOnly beats at or after this time in the file, in seconds.

Shared flags: --asset, --stock.

invideo media audio.beats <sequence-url>

media audio.transcript

Every word said in a file, with its time and speaker.

FlagValueWhat it does
--end-secondsnumberOnly words that end by this time in the file, in seconds.
--limitintegerThe most words (default 256).
--max-creditsnumberThe most starting it may cost, in the person's credits: nothing starts when it is higher.
--offsetintegerThe first word, counted from the start of the file or of the window --start-seconds and --end-seconds make.
--start-secondsnumberOnly words that start at or after this time in the file, in seconds.

Shared flags: --asset, --dry-run, --stock. Here --asset is refused: pass the file's sequence URL.

invideo media audio.transcript <sequence-url> --max-credits <price>

media document.pages

An image sequence of each page of a PDF or deck.

FlagValueWhat it does
--tostringA page's or thread's URL to put the pages on.
invideo media document.pages <file-url>

<file-url> is the URL that invideo asset upload returns for the PDF or deck.

media audio.separate

Split a file's sound into its stems.

FlagValueWhat it does
--inputsobjectThe model's own extras, as invideo gen model lists them: -i key=value, or --input inputs.json.
--modelstringWhich model runs it, one of: audio_separation.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media audio.separate <sequence-url> --max-credits <price>

media audio.clean

Clean the voice in a file.

FlagValueWhat it does
--inputsobjectThe model's own extras, as invideo gen model lists them: -i key=value, or --input inputs.json.
--modelstringWhich model runs it, one of: clean_voice.clean_audio, clean_voice.clean_video.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media audio.clean <sequence-url> --max-credits <price>

media video.upscale

Upscale a video.

FlagValueWhat it does
--inputsobjectThe model's own extras, as invideo gen model lists them: -i key=value, or --input inputs.json.
--modelstringWhich model runs it, one of: topaz_proteus_natural, pixverse_upscale, topaz_video_upscale, seedvr_video_upscale, flashvsr_video_upscale, bytedance_video_upscale, byteplus_vod_upscale, flux_3_video_upscale, topaz_astra_2, topaz_starlight_precise_26, topaz_gaia_2_animation.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.upscale <sequence-url> --max-credits <price>

media image.upscale

Upscale an image.

FlagValueWhat it does
--inputsobjectThe model's own extras, as invideo gen model lists them: -i key=value, or --input inputs.json.
--modelstringWhich model runs it, one of: clarity_upscaler, crystal_upscaler, topaz_bloom_2, magnific_upscaler_creative, magnific_upscaler_precision_v2, pruna_p_image_upscale, byteplus_ultra_hd.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media image.upscale <sequence-url> --max-credits <price>

media video.removeBackground

Remove a video's background.

FlagValueWhat it does
--inputsobjectThe model's own extras, as invideo gen model lists them: -i key=value, or --input inputs.json.
--modelstringWhich model runs it, one of: bria_video_bg_remove, veed_video_bg_remove.veed_bg_standard, veed_video_bg_remove.veed_bg_fast, pixelcut_video_bg_remove, ben_v2_video_bg_remove.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.removeBackground <sequence-url> --max-credits <price>

media image.removeBackground

Remove an image's background.

FlagValueWhat it does
--inputsobjectThe model's own extras, as invideo gen model lists them: -i key=value, or --input inputs.json.
--modelstringWhich model runs it, one of: bria_bg_remove, birefnet_bg_remove.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media image.removeBackground <sequence-url> --max-credits <price>

media video.trim

Trim a video to a time range.

FlagValueWhat it does
--end-timenumberRequired. End Time (s).
--start-timenumberRequired. Start Time (s).

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.trim <sequence-url>

media video.reverse

Play a video backwards.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.reverse <sequence-url>

media video.changeSpeed

Speed up or slow down a video, or ramp its speed.

FlagValueWhat it does
--start-speednumberRequired. Start Speed.
--end-speednumberEnd Speed.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.changeSpeed <sequence-url>

media video.stitch

Join videos of the same aspect ratio into one.

FlagValueWhat it does
--video-arraylistRequired. Videos.
--aspect-ratiostringAspect Ratio.

Shared flags: --dry-run, --idempotency-key, --max-credits.

invideo media video.stitch <sequence-url>

media video.sceneSplit

Split a video into its scenes.

FlagValueWhat it does
--thresholdnumberThreshold.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.sceneSplit <sequence-url>

media video.loop

Loop a video to a target length.

FlagValueWhat it does
--target-durationnumberRequired. Target Duration (s).

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.loop <sequence-url>

media video.extractFrameFirst

A video's first frame, as an image.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.extractFrameFirst <sequence-url>

media video.extractFrameLast

A video's last frame, as an image.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.extractFrameLast <sequence-url>

media video.extractFrameByNumber

One frame of a video by its number, as an image.

FlagValueWhat it does
--frame-numbernumberRequired. Frame Number.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.extractFrameByNumber <sequence-url>

media video.extractFrameAtTime

The frame of a video at a time, as an image.

FlagValueWhat it does
--time-secondsnumberRequired. Time (seconds).

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.extractFrameAtTime <sequence-url>

media video.extractFrameInterval

Every Nth frame of a video, as images.

FlagValueWhat it does
--frame-intervalnumberRequired. Frame Interval.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.extractFrameInterval <sequence-url>

media video.extractMsInterval

A frame of a video every N milliseconds, as images.

FlagValueWhat it does
--interval-msnumberRequired. Interval (ms).

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.extractMsInterval <sequence-url>

media video.replaceAudio

Replace a video's sound with an audio file.

FlagValueWhat it does
--audio-inputstringRequired. Audio Input.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.replaceAudio <sequence-url>

media video.addAudioTrack

Mix an audio file into a video's sound.

FlagValueWhat it does
--audio-inputstringRequired. Audio Input.
--volumenumberVolume.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.addAudioTrack <sequence-url>

media video.resize

A video as MP4 at a target height.

FlagValueWhat it does
--resolutionstringRequired. Resolution (height).

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.resize <sequence-url>

media audio.toVideo

An audio file as a video with a blank picture.

FlagValueWhat it does
--aspect-ratiostringAspect Ratio.
--fpsnumberFPS.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media audio.toVideo <sequence-url>

media video.contactSheet

One image of frames across a video, in a grid.

FlagValueWhat it does
--columnsintegerRequired. Columns.
--resolutionstringRequired. Resolution (height).
--rowsintegerRequired. Rows.
--stylestringRequired. Style.
--start-offset-msintegerStart offset (ms).

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media video.contactSheet <sequence-url>

media audio.trim

Trim an audio file to a time range.

FlagValueWhat it does
--end-timenumberRequired. End Time (s).
--start-timenumberRequired. Start Time (s).

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media audio.trim <sequence-url>

media audio.extract

A video's sound, as an audio file.

FlagValueWhat it does
--formatstringFormat.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media audio.extract <sequence-url>

media audio.concat

Join audio files into one.

FlagValueWhat it does
--audio-arraylistRequired. Audio Files.
--gap-durationnumberGap Duration (s).

Shared flags: --dry-run, --idempotency-key, --max-credits.

invideo media audio.concat <sequence-url>

media audio.addAudioTrack

Mix an audio file over another.

FlagValueWhat it does
--overlay-audio-inputstringRequired. Overlay Audio.
--start-timenumberStart Time (s).
--volumenumberVolume.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media audio.addAudioTrack <sequence-url>

media image.collage

Combine images into one collage.

FlagValueWhat it does
--image-arraylistRequired. Images.
--aspect-ratiostringAspect Ratio.

Shared flags: --dry-run, --idempotency-key, --max-credits.

invideo media image.collage <sequence-url>

media image.crop

Crop an image.

FlagValueWhat it does
--hnumberRequired. Height.
--wnumberRequired. Width.
--xnumberRequired. X Position.
--ynumberRequired. Y Position.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media image.crop <sequence-url>

media image.resizeAspectRatio

Resize an image to an aspect ratio.

FlagValueWhat it does
--aspect-ratiostringAspect Ratio.
--max-heightnumberMax Height (px).

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media image.resizeAspectRatio <sequence-url>

media image.resizeFit

Resize an image to fit a width and height.

FlagValueWhat it does
--max-heightnumberRequired. Max Height (px).
--max-widthnumberRequired. Max Width (px).

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media image.resizeFit <sequence-url>

media image.rotate

Rotate an image.

Shared flags: --asset, --dry-run, --idempotency-key, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media image.rotate <sequence-url>

media describe

What a video holds, from invideo's media understanding: a summary, chapters and captions. It spends credits, so price it with --dry-run first.

FlagValueWhat it does
--start-secondsnumberOnly captions that start at or after this time in the file, in seconds.
--end-secondsnumberOnly captions that end by this time in the file, in seconds.
--limitintegerThe most captions (default 256).
--offsetintegerThe first caption, counted from the start of the file or of the window the two time flags make.

Shared flags: --asset, --dry-run, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media describe <sequence-url> --max-credits <price>

media ask

A question about a stretch of a video, answered by invideo's media understanding. The stretch is at most a minute long. It spends credits, so price it with --dry-run first.

FlagValueWhat it does
--questionstringRequired. What to answer about the stretch.
--start-secondsnumberRequired. Where the stretch starts in the file, in seconds.
--end-secondsnumberRequired. Where the stretch ends, at most 60 seconds after the start.

Shared flags: --asset, --dry-run, --max-credits. Here --asset is refused: pass the file's sequence URL.

invideo media ask <sequence-url> --start-seconds 120 --end-seconds 150 \  --question "When is the goal scored?" --max-credits <price>

gen

The gen commands: generate with a model.

gen models

Models you can generate with.

FlagValueWhat it does
--outputstringOnly models that make this. One of video, image, audio, three_d.
--querystringWhat to generate or a model's name, like "lip sync" or "seedance".
invideo gen models <project-url> --query "video"

gen model

One model and its inputs.

FlagValueWhat it does
--modelstringRequired. A model id from invideo gen models, as invideo gen run takes it.
invideo gen model <project-url> --model seedance_2_5.r2v

gen run

Generate with a model; its inputs go as -i key=value.

FlagValueWhat it does
--modelstringRequired. A model id from invideo gen models.
--dry-runPrices it and checks the inputs; nothing starts.
--idempotency-keystringAny text unique to this generation, like a UUID.
--inputsobjectThe model's inputs, as invideo gen model lists them: each as -i key=value (-i prompt=@prompt.txt reads a file), or all of them as JSON with --input inputs.json.
--max-creditsnumberThe most the estimate may be, in the person's credits: nothing starts when it is higher.
invideo gen run <page-url> --model seedance_2_5.r2v --dry-run \  -i prompt="slow push on the bottle"invideo gen run <page-url> --model seedance_2_5.r2v \  --max-credits <price> --idempotency-key shot-1 \  -i prompt="slow push on the bottle"

<price> is the estimated_credits in the dry run's answer. Pass the same inputs, the same way, on both runs. The paid run returns a thread URL; follow it with invideo status <thread-url> --wait, then save the result with invideo notebook show <sequence-url> --out <dir>. <page-url> comes from invideo notebook new-page.

Models retire. If a model is not found, your agent runs find_models with the job in words, uses the best match, and tells you.

export

The export commands: export pages.

export add

Add sequences to an export page.

FlagValueWhat it does
--urlslistRequired. Sequence and edit URLs of the project.
--kindstringA new page's layout (default playlist). One of playlist, canvas, doc.
--pagestringAn export page's URL, to add to it; leave it out for a new page.
--titlestringA new page's title.
invideo export add <project-url> --urls <seq-url>,<seq-url>

export edit

Reorder, retitle or trim an export page.

FlagValueWhat it does
--orderlistA playlist page's object ids in the order to show them.
--removelistObject ids to take off the page.
--titlestringThe page's new title.
invideo export edit <export-url> --title "Final cuts"

export share

Share an export page.

FlagValueWhat it does
--permissionsobjectFor each visibility, whether people may comment and download, all three together, as one JSON object with public, shared and private keys, each holding comment and download booleans.
--team-accessstringWhat the workspace may do with the page. One of view, comment, edit.
--visibilitystringpublic: anyone with its URL; shared: the workspace; private: only you. One of public, shared, private.
invideo export share <export-url> --visibility public

agent

The agent commands: agents in a project and their messages.

agent list

Every agent in a project.

It takes no flags of its own.

invideo agent list <project-url>

agent register

Take a name in a project; pass it as --as <name> after.

FlagValueWhat it does
--namestringRequired. Your name: up to 24 lowercase letters, digits, - and _, like scout.
--modelstringThe model you run on, if you know it, like opus.
invideo agent register <project-url> --name scout

agent message

Message an agent; its answer comes to your inbox.

FlagValueWhat it does
--textstringRequired. The message, in plain words.
invideo agent message <agent-url> --text "trim the intro?" --as scout

agent inbox

Your unread messages.

FlagValueWhat it does
--beforeintegerA message id from an earlier inbox: the messages before it.
invideo agent inbox <project-url> --as scout

library

The library commands: search stock video, images, music and voices.

Search a stock library.

FlagValueWhat it does
--librarystringRequired. <model>_voices, stock_video, stock_image or stock_music.
--cursorstringVoices only: the cursor the last answer gave, for its next page.
--querystringWhat to find, like "aerial city at night".
invideo library search <project-url> --library stock_video \  --query "city at night"

status

Where generations, exports and uploads stand; --wait follows them until over.

It takes several URLs at once, from any of your projects. It has no flags of its own: add --wait to follow the jobs until they are over.

invideo status <sequence-url> <thread-url> --wait

feedback

The feedback commands: report a bug or ask for a feature.

feedback bug

Tell invideo something broke.

FlagValueWhat it does
--summarystringRequired. One line: what went wrong.
--what-happenedstringRequired. The command you ran, its arguments, and the full answer.
--expectedstringWhat you expected instead.
--kindstringbroken, confusing or wrong_result. One of broken, confusing, wrong_result.
--toolstringThe command it happened with.
invideo feedback bug <project-url> --summary "…" --what-happened "…"

feedback feature

Ask invideo for something.

FlagValueWhat it does
--summarystringRequired. One line: what is needed.
--detailsstringWhat you were trying to make, and why this was needed.
--workaroundstringWhat you did instead, if anything.
invideo feedback feature <project-url> --summary "…"

update

Update invideo to its latest release.

It updates an install from the script. With Homebrew, it says what to run instead (brew upgrade invideo). It takes no flags.

invideo update

Help topics

The CLI has five help topics. invideo help exit-codes has its own page, Exit codes. The other four follow, in plain words.

arguments

A command's arguments are flags. Write a flag as --name value or --name=value.

  • A true-or-false flag, like --dry-run, takes no value. --dry-run=false turns it off.
  • A list repeats its flag (--at 1 --at 3.5), or takes commas (--at 1,3.5), or takes JSON.
  • An object, like --permissions, takes JSON.
  • @path reads a value from a file, like --operations @ops.json. A - reads it from stdin.
  • --input payload.json gives the whole payload as one JSON object. Flags you add go on top of it. On invideo gen run, the file holds the bare inputs that invideo gen model lists, with no inputs wrapper.

A model's own inputs go with -i, one each, so they never clash with the command's flags. Run invideo gen model --model <id> to list a model's inputs.

invideo gen run <page-url> --model seedance_2_5.r2v \  -i prompt="slow push" -i duration=5

urls

A URL is the handle. Every command takes the URL of what it acts on, and every answer gives the URLs to use next.

A project's URL names its notebook. Under it sit the notebook pages (…/notebook/<page>), threads and sequences, the edits, the context and its entries (…/context), the files (…/assets), and the agents (…/agents). Give the person the URLs you make. Each one opens what it names.

output

An answer is indented key: value text. What to do next comes after it. The text is the same on a terminal and in a pipe, so an agent reads it as a person does.

  • --json prints the whole answer as one JSON object, next included, for jq. INVIDEO_JSON=1 does this on every command.
  • --tsv prints an answer's list as tab-separated rows under a header line. Its other fields and what to do next go to stderr, so grep, cut and awk read the rows.
  • Errors and notices always go to stderr.
invideo branch list <edit-url> --tsv | cut -f2

waiting

A command that starts something (a generation, an export or an upload) returns the URL to follow at once. Run invideo status <url> --wait to check back until the job is over. It follows jobs in any of your projects. --timeout <s> stops the wait after that many seconds.

With --wait, any command also tries again when nothing ran (exit code 7). A retry is the same request, so it never starts anything twice.

invideo status <sequence-url> <thread-url> --wait