@genspark/cli 1.15.4-beta.0 → 1.15.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -12
- package/dist/acp-serve.d.ts +2 -2
- package/dist/acp-serve.d.ts.map +1 -1
- package/dist/acp-serve.js +7 -2
- package/dist/acp-serve.js.map +1 -1
- package/dist/client.d.ts +16 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +52 -12
- package/dist/client.js.map +1 -1
- package/dist/commands/aidrive-contract.generated.d.ts.map +1 -1
- package/dist/commands/aidrive-contract.generated.js +62 -9
- package/dist/commands/aidrive-contract.generated.js.map +1 -1
- package/dist/commands/developer-input.d.ts +1 -1
- package/dist/commands/developer-input.d.ts.map +1 -1
- package/dist/commands/developer-input.js +14 -10
- package/dist/commands/developer-input.js.map +1 -1
- package/dist/commands/sb-box-session.d.ts +7 -6
- package/dist/commands/sb-box-session.d.ts.map +1 -1
- package/dist/commands/sb-box-session.js +21 -41
- package/dist/commands/sb-box-session.js.map +1 -1
- package/dist/commands/task-status-follow.d.ts +9 -0
- package/dist/commands/task-status-follow.d.ts.map +1 -1
- package/dist/commands/task-status-follow.js +24 -4
- package/dist/commands/task-status-follow.js.map +1 -1
- package/dist/commands/tts-stream.d.ts +68 -0
- package/dist/commands/tts-stream.d.ts.map +1 -0
- package/dist/commands/tts-stream.js +291 -0
- package/dist/commands/tts-stream.js.map +1 -0
- package/dist/confirm.d.ts.map +1 -1
- package/dist/confirm.js +18 -1
- package/dist/confirm.js.map +1 -1
- package/dist/humanApproval.d.ts +48 -0
- package/dist/humanApproval.d.ts.map +1 -0
- package/dist/humanApproval.js +86 -0
- package/dist/humanApproval.js.map +1 -0
- package/dist/index.js +169 -37
- package/dist/index.js.map +1 -1
- package/dist/mediaSummary.d.ts.map +1 -1
- package/dist/mediaSummary.js +4 -1
- package/dist/mediaSummary.js.map +1 -1
- package/dist/task-shim.d.ts +11 -2
- package/dist/task-shim.d.ts.map +1 -1
- package/dist/task-shim.js +21 -2
- package/dist/task-shim.js.map +1 -1
- package/docs/skills.md +5 -4
- package/gated-skills/gsk-issue/SKILL.md +50 -0
- package/gated-skills/gsk-m365-apps/SKILL.md +197 -0
- package/gated-skills/gsk-m365-apps/references/add-genspark-ai.md +399 -0
- package/gated-skills/gsk-m365-apps/scripts/install-genspark-connector.mjs +548 -0
- package/gated-skills/gsk-m365-apps/scripts/sync-microsoft-guidance.mjs +557 -0
- package/package.json +2 -1
- package/skills/gsk-aidrive/SKILL.md +52 -480
- package/skills/gsk-aidrive/command-reference.md +550 -0
- package/skills/gsk-connector/SKILL.md +5 -3
- package/skills/gsk-get-service-url/SKILL.md +1 -1
- package/skills/gsk-gmail/SKILL.md +17 -17
- package/skills/gsk-google-calendar/SKILL.md +3 -3
- package/skills/gsk-image-generation/SKILL.md +6 -3
- package/skills/gsk-outlook-calendar/SKILL.md +1 -1
- package/skills/gsk-phone-call/SKILL.md +33 -13
- package/skills/gsk-second-brain/SKILL.md +15 -16
- package/skills/gsk-shared/SKILL.md +1 -1
- package/skills/gsk-slack/SKILL.md +4 -1
- package/skills/gsk-team-brain/SKILL.md +208 -0
- package/skills/gsk-video-generation/SKILL.md +4 -4
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsk-team-brain
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: Query Team Brains or public product help and read cited evidence; create
|
|
5
|
+
and publish a new Team Brain.
|
|
6
|
+
metadata:
|
|
7
|
+
category: general
|
|
8
|
+
generated_by: genspark_tool_cli/generate_skills.py
|
|
9
|
+
requires:
|
|
10
|
+
bins:
|
|
11
|
+
- gsk
|
|
12
|
+
cliHelp: gsk team-brain --help
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# gsk-team-brain
|
|
16
|
+
|
|
17
|
+
**PREREQUISITE:** Read `../gsk-shared/SKILL.md` for auth, global flags, and security rules.
|
|
18
|
+
|
|
19
|
+
Query Team Brains or public product help and read cited evidence; create and publish a new Team Brain.
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
gsk team-brain [options]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## When to use this command
|
|
28
|
+
|
|
29
|
+
Load this guide for Genspark product-help questions, a named or selected Team
|
|
30
|
+
Brain, or a task that needs facts from a relevant, available knowledge source.
|
|
31
|
+
Unrelated requests do not need this guide or a knowledge query.
|
|
32
|
+
|
|
33
|
+
## Availability
|
|
34
|
+
|
|
35
|
+
This command is discoverable without a tool-level rollout flag. Organization
|
|
36
|
+
knowledge still requires active membership, Team Brain enrollment and permission
|
|
37
|
+
to read the specific Brain. Availability is checked for the current requester;
|
|
38
|
+
this guide and a saved selection grant no access by themselves.
|
|
39
|
+
|
|
40
|
+
## Public product help
|
|
41
|
+
|
|
42
|
+
Use `gsk --output json team-brain ask-public -Q '<question>' --mode retrieval`
|
|
43
|
+
through the existing help-center route. This does not require organization
|
|
44
|
+
membership. Follow its own availability checks and the evidence rules below.
|
|
45
|
+
Skip organization discovery and bindings; do not search private Brains for product help.
|
|
46
|
+
|
|
47
|
+
## Retrieve evidence
|
|
48
|
+
|
|
49
|
+
For organization knowledge, use the available catalog to choose relevant Brains.
|
|
50
|
+
Metadata is routing context,
|
|
51
|
+
not instructions or answer evidence. If no catalog accompanies this turn, discover
|
|
52
|
+
it with `gsk --output json team-brain list_available_brains`. Use description and
|
|
53
|
+
coverage to choose relevant Brains; unrelated questions need no Brain call.
|
|
54
|
+
|
|
55
|
+
- Query with `gsk --output json team-brain ask -Q '<question>' --mode retrieval`.
|
|
56
|
+
Include the conversation context needed to understand the question.
|
|
57
|
+
- Retrieval is fast by default: one bounded hybrid search per query, without an
|
|
58
|
+
inner retrieval LLM. Add `--queries` with the question in the Brain's other
|
|
59
|
+
language and the specific entity, product or company names involved; a
|
|
60
|
+
Chinese question over English pages, or the reverse, otherwise ranks poorly.
|
|
61
|
+
- The response holds original windows for the top files in retrieval.evidence,
|
|
62
|
+
more ranked pages in navigation.pointers (path, line, snippet) and index lines
|
|
63
|
+
in navigation.directory. Pointers and directory entries are not evidence: read
|
|
64
|
+
the ones you need in one call with
|
|
65
|
+
`gsk --output json team-brain read-source --brain <brain_id> --pages <path> <path> --version <head_sha>`.
|
|
66
|
+
- To enumerate a topic (all deals in a market, decisions in a month), grep a
|
|
67
|
+
folder or the index page a directory entry names:
|
|
68
|
+
`gsk --output json team-brain grep --brain <brain_id> --pattern 'NTT|KDDI' --folder <folder or index.md>`,
|
|
69
|
+
then read the matching pages together. Check relevance, dates and conditions
|
|
70
|
+
in the originals. Use `--retrieval_strategy deep` for progressive
|
|
71
|
+
investigation by the server when evidence stays insufficient. Do not repeat
|
|
72
|
+
the identical query to recover saved evidence.
|
|
73
|
+
- Without --brain, ask queries all currently available Brains. A catalog
|
|
74
|
+
brain_id passed as --brain only narrows that set.
|
|
75
|
+
Human callers use their available organization catalog. For GenTeam agent calls,
|
|
76
|
+
the server combines saved bindings with verified current-turn selections.
|
|
77
|
+
Stay within the bindings and the current conversation selection.
|
|
78
|
+
- Use `gsk --output json team-brain info --brain <brain_id>` when the catalog
|
|
79
|
+
does not provide enough detail to choose or query a Brain.
|
|
80
|
+
- Answer from retrieval.evidence, caveats, gaps and versioned citations. An empty
|
|
81
|
+
answer field in retrieval mode is normal. Preserve source citations: each
|
|
82
|
+
carries brain_id, path, head_sha, lines and a url, and
|
|
83
|
+
`gsk --output json team-brain read-source --brain <brain_id> --page <path> --version <head_sha>`
|
|
84
|
+
returns the cited page. For bounded windows, pass --limit 4000, then
|
|
85
|
+
next_offset as --offset while keeping the same --version.
|
|
86
|
+
- Link each source you name with its citation url, such as
|
|
87
|
+
`[Refund policy](<url>)`, so a reader can open the page; the url opens it on
|
|
88
|
+
the reader's host. Never write a Team Brain link yourself.
|
|
89
|
+
- Report no_access, no_content, incomplete and timed_out accurately; do not
|
|
90
|
+
claim complete coverage or retry in a loop. For access refusals, follow the
|
|
91
|
+
returned hint and the relevant access settings it names.
|
|
92
|
+
- Processed documents may retain only selected parts of the original material.
|
|
93
|
+
Exact published excerpts and selection_complete do not certify complete
|
|
94
|
+
original-file coverage. If a needed fact was not found, limit that statement
|
|
95
|
+
to the published evidence checked unless the relevant original coverage was
|
|
96
|
+
independently verified. Do not infer that the user never supplied it.
|
|
97
|
+
|
|
98
|
+
- For a deck or report, save the first retrieval before inspecting it. Read the
|
|
99
|
+
saved JSON in batches; never repeat an identical ask to recover clipped output.
|
|
100
|
+
Check --help for --save-evidence and the offline `team-brain evidence` reader;
|
|
101
|
+
`task create --evidence-file` carries selected full evidence into a deliverable.
|
|
102
|
+
Retain source_id, full citation (brain_id, owner, repo, path, head_sha, lines, url),
|
|
103
|
+
text, facts and caveats. Keep citation ranges distinct; gaps and warnings are
|
|
104
|
+
retrieval limitations, not statements from source pages.
|
|
105
|
+
selection_complete does not mean exhaustive coverage.
|
|
106
|
+
A gap claiming that the Brain has no source is not proof of absence: honor
|
|
107
|
+
the bounded-coverage warning and describe what was not found in the checked
|
|
108
|
+
evidence. Relevant unread pages remain unverified.
|
|
109
|
+
|
|
110
|
+
## Editing
|
|
111
|
+
|
|
112
|
+
For a user-requested edit, read `gsk team-brain describe --topic edit`. Editing
|
|
113
|
+
requires native write permission and an agent binding that permits edits.
|
|
114
|
+
Prefer `read --start_line N --end_line M` and `patch-page` with `expected_head`:
|
|
115
|
+
pass unique `old_text`/`new_text` excerpts in `edits`, or a contextual single-file
|
|
116
|
+
unified diff in `patch`. Use `--args-file` for JSON arguments. Never replace a
|
|
117
|
+
whole page with the fragment returned by a range read.
|
|
118
|
+
If a read is truncated, continue with `--start_line <next_line>` and
|
|
119
|
+
`--start_column <next_column>`; columns count Unicode characters, one-based.
|
|
120
|
+
This also reads a single line longer than the response limit without gaps.
|
|
121
|
+
In an `apply` batch, `expected_head` is the default read version; each operation
|
|
122
|
+
can override it with its own `expected_head`. All target pages are checked.
|
|
123
|
+
|
|
124
|
+
Keep one `request_id` for an identical retry. Save the returned `task.task_id`;
|
|
125
|
+
on a CLI error the same recovery handle is `data.task_id` with `data.brain`.
|
|
126
|
+
use `edit-status`, `edit-diff`, and `resume-edit` with that ID. Do not split a
|
|
127
|
+
failed merge into unrelated partial edits. One multi-step request should use
|
|
128
|
+
`edit --instruction` or one `apply` batch. Report running, blocked on Review,
|
|
129
|
+
reader sync pending, draft, and completed distinctly. Review is for knowledge
|
|
130
|
+
questions; the task's diff is for inspecting what changed. Resume saved intent
|
|
131
|
+
after its known `review_issue_ids` are resolved. Never claim success before
|
|
132
|
+
checking the task's terminal state and resulting changes.
|
|
133
|
+
|
|
134
|
+
Put related retitle/delete/merge steps in one `apply` batch. Separate
|
|
135
|
+
structural jobs on the same Brain collide with `brain_busy`. Poll the saved
|
|
136
|
+
task and inspect the result; do not ask the user to repeat an authorized step
|
|
137
|
+
just to wait, or promise a timed retry without an active execution. Check the
|
|
138
|
+
actual status of an unrelated busy operation before retrying.
|
|
139
|
+
|
|
140
|
+
## Creating a Brain
|
|
141
|
+
|
|
142
|
+
When the person asks for a new Team Brain, read `gsk team-brain describe --topic create`
|
|
143
|
+
first: it covers the steps (sources, plan, create, build-status, retry, publish), the
|
|
144
|
+
spec passed with `--args-file`, and the two points where the person confirms. The Brain
|
|
145
|
+
belongs to the caller; a GenTeam agent creates one only as a personal agent, on a
|
|
146
|
+
turn its creator started.
|
|
147
|
+
|
|
148
|
+
## Flags
|
|
149
|
+
|
|
150
|
+
| Flag | Required | Description |
|
|
151
|
+
|------|----------|-------------|
|
|
152
|
+
| `-Q`, `--question` | No | For ask and ask-public: the natural-language question. (string) |
|
|
153
|
+
| `-b`, `--brain` | No | Which Brains, by brain_id (such as brain_7k2m9q4x8w1z5v3n) from list_available_brains or a Brain link. GenTeam ask: omit for all available Brains (bindings plus current selections); explicit values only narrow that set. info, read-source and edit actions: exactly one; edit actions may omit it when this conversation selected a single Brain. An 'owner_cogen_id:repo' pair or a repo name still works. (array) |
|
|
154
|
+
| `--scope` | No | For list_available_brains: your Team Brains only. Default 'org'; 'all' is a compatibility alias. (string, one of: org, all) |
|
|
155
|
+
| `--timeout_seconds` | No | For ask and ask-public: server-side deadline, clamped to [5, 570], default 240. Keep the client --timeout above this. (integer) |
|
|
156
|
+
| `--mode` | No | For ask and ask-public: retrieval (default) returns original evidence, facts, caveats and citations without composing a final answer. answer returns a composed response. (string, one of: retrieval, answer, default: `retrieval`) |
|
|
157
|
+
| `--retrieval_strategy` | No | For ask and ask-public in retrieval mode: fast (default) ranks widely without an inner LLM and returns validated original windows for the top files, plus pointers and directory entries to read next. deep progressively searches and selects evidence with an agent; it is slower. The caller checks relevance and expands missing context; neither strategy certifies corpus-wide coverage. (string, one of: fast, deep, default: `fast`) |
|
|
158
|
+
| `--queries` | No | For ask and ask-public with fast retrieval: up to 4 extra search phrasings (each up to 300 characters) searched beside the question, such as the question in the Brain's other language and the specific entity, product or company names involved. (array) |
|
|
159
|
+
| `--pattern` | No | For grep: a regular expression matched case-insensitively against each line of the Brain's published pages, such as 'NTT\|KDDI' or '2026-08\|August 2026'. A pattern starting with its own inline flags, such as (?s), keeps them instead. (string) |
|
|
160
|
+
| `-t`, `--topic` | No | For describe: topic name (ask, public, selection, limits, edit); empty returns the index. (string) |
|
|
161
|
+
| `--page` | No | For read-source, read, edit, edit-page, patch-page, add-page and structural edits: the page path as info, tree or a citation lists it, such as people/jane-doe.md. For history: only the versions that changed this page. (string) |
|
|
162
|
+
| `--start_line` | No | For read: first body line, one-based. (integer) |
|
|
163
|
+
| `--start_column` | No | For read: first Unicode character in start_line, one-based. Continue with next_line/next_column. (integer) |
|
|
164
|
+
| `--end_line` | No | For read: last body line, inclusive. (integer) |
|
|
165
|
+
| `--request_id` | No | Stable ID for one edit request. Reuse identical arguments on retry; use resume-edit for a saved task. (string) |
|
|
166
|
+
| `--task_id` | No | Task ID from a prior edit, for edit-status, edit-diff or resume-edit. (string) |
|
|
167
|
+
| `--instruction` | No | For edit: the complete multi-step intent. One bounded AI plan; returns a tracked task and produces a draft. (string) |
|
|
168
|
+
| `--review_issue_ids` | No | Known open knowledge Review issues that must be resolved before this task proceeds. (array) |
|
|
169
|
+
| `--edits` | No | For patch-page or merge-pages (survivor): unique exact excerpts and replacements, all addressing the original body. (array) |
|
|
170
|
+
| `--patch` | No | For patch-page or merge-pages (survivor): single-file unified diff with context; mutually exclusive with edits. Headers target a/<page> and b/<page>. (string) |
|
|
171
|
+
| `--content` | No | For edit-page and add-page: the complete new page body in Markdown, without frontmatter. An entity page keeps its first '# Title' line. For merge-pages: optionally the merged body of the surviving page. (string) |
|
|
172
|
+
| `--title` | No | For retitle-page: the page's new title. (string) |
|
|
173
|
+
| `--new_page` | No | For move-page: the new file name, such as jane-smith (same folder, lowercase slug). (string) |
|
|
174
|
+
| `--into` | No | For merge-pages: the page that absorbs page and survives. (string) |
|
|
175
|
+
| `--expected_head` | No | For edit-page, patch-page (and apply's default): the head_sha read returned with the page. (string) |
|
|
176
|
+
| `--ops` | No | For apply: the operations, committed together or not at all. (array) |
|
|
177
|
+
| `--issue_id` | No | For resolve-review: the review item id, such as review-0123456789abcdef. (string) |
|
|
178
|
+
| `--note` | No | For resolve-review: how the conflict was settled, kept with the resolution. (string) |
|
|
179
|
+
| `--label` | No | For plan and create: the new Brain's name. For rename-brain: the new Brain name. (string) |
|
|
180
|
+
| `--description` | No | For plan and create: what the Brain is for and who asks it, in a sentence or two; it guides what the build keeps. (string) |
|
|
181
|
+
| `--sources` | No | For plan and create: what the Brain reads, each {"type": ..., fields} as 'describe --topic sources' lists them. Pass label, description and sources with --args-file. (array) |
|
|
182
|
+
| `--spec_hash` | No | For create: the spec_hash plan returned for exactly this spec. (string) |
|
|
183
|
+
| `--build_id` | No | For build-status, retry, publish, set-refresh, access, share and unshare: the build_id create returned. (string) |
|
|
184
|
+
| `--visibility` | No | For publish: personal (only the owner) or team (everyone in the organization who uses Team Brain). (string, one of: personal, team) |
|
|
185
|
+
| `--connector` | No | For sources: whose candidates to list. (string, one of: genteam, microsoft_teams, meetings, box, dropbox, jira, confluence) |
|
|
186
|
+
| `--parent` | No | For sources with box or dropbox: list inside this folder, the parent of an item's list_subfolders; leave out for the top level. (string) |
|
|
187
|
+
| `--cursor` | No | For sources: the next_cursor or next_teams_cursor of the previous page. (string) |
|
|
188
|
+
| `--enabled` | No | For set-refresh: true to refresh on a schedule, false to stop. (boolean) |
|
|
189
|
+
| `--interval_hours` | No | For set-refresh: hours between refreshes; each refresh is a new compile. (integer, one of: 6, 12, 24, 72, 168) |
|
|
190
|
+
| `--agent_id` | No | For bind and unbind: the agent to give the Brain to or take it from (one the person manages). (string) |
|
|
191
|
+
| `--read_only` | No | For bind: true lets the agent only read the Brain; by default it may also edit it. (boolean) |
|
|
192
|
+
| `--email` | No | For share and unshare: the person's address. (string) |
|
|
193
|
+
| `--channel` | No | For share and unshare, instead of --email: a GenTeam channel as access lists it, channel:<server_id>:<channel_id>. (string) |
|
|
194
|
+
| `--role` | No | For share: viewer (reads the Brain) or editor (also edits it; organization members only). (string, one of: viewer, editor) |
|
|
195
|
+
| `--team_id` | No | For sources with microsoft_teams: list this team's channels. (string) |
|
|
196
|
+
| `--folder` | No | For info/tree: list only this folder. For grep: search only under this folder or one page, such as decisions/ or deals/index.md. (string) |
|
|
197
|
+
| `--limit` | No | For info: files per page (default 100, max 500). For read-source: characters per window (default and max 200000; with --pages, per page, default 20000 and at most 200000 in total). For grep: most files (default 20, max 50). For tree: most pages (default 500, max 2000). For history: versions (default 20, max 50). (integer) |
|
|
198
|
+
| `--offset` | No | For info/history/read-source: pass next_offset to continue. (integer) |
|
|
199
|
+
| `--repo` | No | For history: workspace (default, every change) or reader (what people asking the Brain received). (string, one of: workspace, reader) |
|
|
200
|
+
| `--version` | No | For info: expected head_sha when continuing a page. For read-source: a citation's head_sha, to read the page as it saw it; omit for the live page. For read: an earlier page version. For revert: the version to restore. (string) |
|
|
201
|
+
| `--pages` | No | For read-source: up to 8 pages read together at one version, instead of --page. For revert: restore only these pages; omit to roll back every edit since the version. (array) |
|
|
202
|
+
| `--query` | No | For search: literal text to find, case-insensitive. (string) |
|
|
203
|
+
| `--message` | No | For writes: an optional commit message. (string) |
|
|
204
|
+
| `<action>` (positional) | Yes | Action to perform. (string, one of: info, ask, ask-public, read-source, grep, list_available_brains, describe, sources, plan, create, build-status, retry, publish, set-refresh, bind, unbind, access, share, unshare, tree, read, search, review, history, edit-page, patch-page, edit, edit-status, resume-edit, edit-diff, add-page, apply, resolve-review, revert, rename-brain, retitle-page, move-page, merge-pages, delete-page) |
|
|
205
|
+
|
|
206
|
+
## See Also
|
|
207
|
+
|
|
208
|
+
- [gsk-shared](../gsk-shared/SKILL.md) — Authentication and global flags
|
|
@@ -33,7 +33,7 @@ gsk video [options]
|
|
|
33
33
|
| `<query>` (positional) | No | Detailed, self-contained description of the video to generate, written in English. This text is sent to the video model verbatim as the generation prompt, so put all the visual detail here — but NEVER output settings: text like '16:9' or '4 seconds' in the prompt may be rendered literally into the scene. Pass aspect ratio via the `aspect_ratio` parameter and length via `duration`. duration is recommended to be 5 ~ 10 seconds. For image-to-image transitions (user provides start and end frames) e.g., 'A timelapse of a flower blooming in a garden'. Omit when passing the prompt by `query_file` instead. Or omit on a draft_task_id finalize (it reuses the draft's prompt). (string) |
|
|
34
34
|
| `--query_file` | No | Optional. Repo-relative path to a UTF-8 text file containing the prompt, used verbatim in place of `query` (lets you pass a long prompt by path instead of inlining it). Requires `repo_id`. When set, `query` may be omitted. (string) |
|
|
35
35
|
| `--file_name` | No | The name of the video to generate. (string, null) |
|
|
36
|
-
| `-m`, `--model` | No | The model to use for video generation (required for a render; omit only with task_id). kling/v3: Latest Kling V3. Supports native audio, but generates a SILENT video unless audio_enable=true. image_urls are frames, not references: 1 image = first frame (i2v); 2 images = first + last frame (the 2nd is the END frame). No reference mode (use kling/o3 with reference_mode for reference-driven generation). Pro/Standard/Turbo tiers (set via the tier parameter; turbo is the fastest arm but has no audio and no first/last-frame control). Supported ratios: 16:9, 9:16, 1:1. Duration: 3-15s. kling/o3: Kling O3. REQUIRES at least one input image or a video_url (no text-to-video). image_urls are frames (1 = first, 2 = first + last) unless reference_mode=true: style/character references, max 4 total including elements. video_url switches to video-to-video (video_mode 'reference' = motion guide, 'edit' = restyle in footage). Native audio via audio_enable. Pro/Standard tiers. Supported ratios: 16:9, 9:16, 1:1. Duration: 3-15s. gemini/veo3.1: Gemini Veo 3.1 - Latest version with enhanced quality and features. Supports text-to-video and image-to-video generation with improved quality. image_urls are frames unless reference_mode: 1 image = first frame, exactly 2 = first/last frame transition, 3 (or reference_mode=true) = style/character references (max 3, 8s only). video_url (MP4 source) = video EXTENSION mode: continues from the last frame, 7s, up to 1080p. Duration: 4s/6s/8s. Supported ratios: 16:9, 9:16. Supports tier (standard \| fast). Resolution: 720p, 1080p, 4k. minimax/h3: MiniMax H3 2K video model. Supports text-to-video, image-to-video with first/last frame control, and reference-to-video (up to 9 reference images, 3 reference videos, 3 reference audio clips — refer to them in the prompt as 'Image 1', 'Video 1', 'Audio 1', not @-style). Keyframes and references are mutually exclusive. Supported ratios: adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 5-15s. Resolution: 768p or 2K (default). minimax/h3-max: MiniMax H3 Max, a distinct post-trained model with faster generation, stronger prompt adherence, and improved aesthetics. Supports text, first/middle/last frame keyframes, and image/video/audio references — keyframes and references COMBINE on this model (set keyframes via first_frame_url/last_frame_url/middle_image_url + middle_frame_time; the middle frame needs an explicit first_frame_url AND last_frame_url — image_urls are all references here — native 480p/768p, and at least one reference). tier=turbo selects the faster, half-price text/image arm; reference and middle-frame inputs use standard. Duration: 5-15s. Resolution: 480p or 768p. Reference requests also incur a reference-token fee on top of the output charge — a reference video especially can cost more than the output itself. wan/v2.7: Wan v2.7 with enhanced motion smoothness and scene fidelity. Supports text-to-video, image-to-video, reference-to-video, and edit-video. Ratios: 16:9, 9:16, 1:1. Duration: 5s. Resolution: 480p, 720p vidu/q4: Vidu Q4, Vidu's next-generation flagship with native audio. REQUIRES an image (no text-to-video): 1 image_urls entry = first frame (image-to-video, framing follows the image); reference_mode (or 2+ images, or audio_urls) = reference-to-video with up to 12 reference images and 3 voice clips, addressed in the prompt as [@reference_image_1].. / [reference_audio_1].. No end frame, no tiers. Supported ratios (reference mode): 16:9, 9:16, 4:3, 3:4, 1:1. Duration: 3-16s. Resolution: 540p, 720p, 1080p, 2K, 4Krunway/gen4_turbo: A model for generate video with high quality, fast.Supported ratios: 5:3, 3:5. Only support i2v. Duration: 5s, 10spixverse/v6: PixVerse V6 latest model with lifelike motion, richer skin detail, real emotions. Full cinematic control including choreography and camera. Supports text-to-video, image-to-video, transition, and video extend generation. VFX, time-lapse, transformation scenes, product demos, 360° views, multi-shot storytelling. Extend: pass video_url to extend an existing video. Supported ratios: 16:9, 9:16, 4:3, 1:1, 3:4. Duration: 5s, 8s. pixverse/c1: PixVerse C1 with native audio (audio_enable=true), text-to-video, image-to-video, transitions (2 images = first/last frame) and reference-to-video (reference_mode with 1-7 image_urls; address them in the prompt as @image1..@image7). No video extend. Supported ratios: 16:9, 9:16, 4:3, 3:4, 1:1, 3:2, 2:3, 21:9. Duration: 1-15s. Resolution: 360p, 540p, 720p, 1080p. fal-ai/bytedance/seedance-2.0: Bytedance Seedance 2.0 model for highest quality video generation with native audio and lip-sync. Supports text-to-video and image-to-video with first/last frame control. Supported ratios: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 4-15s. Resolution: 480p, 720p, or 1080p on the standard tier (~2.25x cost; fast/mini cap at 720p). tier picks the variant: standard, fast, or mini (cheapest, ~half the standard price). Also supports reference-to-video with up to 9 images, 3 videos, or 3 audio refs via settings.fal-ai/topaz/upscale/video: Topaz Labs Video Upscaler, the preferred upscaler: 2x enhancement of an existing video (source up to 60s) with real detail recovery. Requires video_url parameter. Does NOT generate new videos. Use when user wants to improve quality of existing videos.fal-ai/bytedance-upscaler/upscale/video: ByteDance Video Upscaler for enhancing video quality. Upscales videos to higher resolutions (2k) Requires video_url parameter. Does NOT generate new videos. Use when user wants to improve quality of existing videos.xai/grok-imagine-video: xAI Grok Imagine Video v1.5 for high-quality video generation. Supports text-to-video and image-to-video generation. 2+ image_urls (or reference_mode=true) = style/character references, up to 7 (reference mode caps at 720p). video_url (MP4, 2-15s source) = video EXTENSION mode: continues from the last frame, 2-10s extension, 720p. 480p/720p/1080p output. Supported ratios: 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16. Duration: 1-15s. tier=lite runs the lightweight low-cost 1.5 Lite arm (text-to-video and image-to-video only — no references, no extension). alibaba/happy-horse: Alibaba Happy Horse video model. High-quality generation from text, or image-to-video from a single first-frame image (one image_url without reference_mode). Supported ratios: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21, 5:4, 4:5. Duration: 3-15s. Resolution: 720p, 1080p.alibaba/happy-horse/reference-to-video: Alibaba Happy Horse reference-to-video. Generate video from 1-9 reference images; address subjects in the prompt as character1..character9 (order matches image_urls). Requires image_urls. Supported ratios: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21, 5:4, 4:5. Duration: 3-15s. Resolution: 720p, 1080p.alibaba/happy-horse/video-edit: Alibaba Happy Horse video-edit. Edit a source video using a text prompt; optional 1-5 reference images addressed as @Image1..@Image5. Requires video_url (MP4/MOV, 3-60s). Output preserves source aspect ratio, capped at 15s. Resolution: 720p, 1080p.gemini/omni-flash: Google's multimodal video model with native audio. Supports text-to-video, image-to-video (1 image as first frame), reference-to-video (set reference_mode with image_urls to use images as subject/style references — even a single image; 2+ images are references by default), and video editing (pass video_url to edit an existing clip — restyle, restage, add objects). Bind image roles in the prompt with <FIRST_FRAME> / <IMAGE_REF_0>. Ratios: 16:9, 9:16. Duration: 3-10s. Resolution: 720p. kling/v4: Kling 4.0 — fast 720p/1080p generation. Text-to-video, image-to-video (1 image = start frame, 2 images = start + end frame), reference-to-video (reference_mode or 3+ images: up to 10 image_urls as @Image1.., up to 5 video_urls as @Video1.., up to 7 elements as @Element1..) and video-to-video editing (pass video_url — the prompt is the edit instruction, @Video1 addresses the source clip). No extension mode. Supported ratios: 16:9, 9:16, 1:1, 21:9. Duration: 3-30s. Resolution: 720p, 1080p. bfl/flux-3-preview-high: BFL FLUX 3 video model with native audio. Supports text-to-video and 1-10 ordered keyframes, or continuation from one source video selected with input_mode=start_video. Ratios: auto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 5-20s. Resolution: 720p, 1080p, 2K, 4K (2K/4K not available when continuing a video). Only one input family may be used per request.bfl/flux-3-max: FLUX 3 Max, fal's post-trained FLUX 3 video model: top-ranked image-to-video quality, renders a 10s clip in about 12s, native audio. Text-to-video and 1-10 ordered keyframes (2 images = first and last frame). No video continuation, no draft, no auto duration. Ratios: auto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 5-20s (explicit). Resolution: 720p, 1080p.fal-ai/bytedance/seedance-2.5: Bytedance Seedance 2.5 for native 30-second single-shot video with synchronized audio. Supports text-to-video and image-to-video with first/last frame control. No tier variants. Supported ratios: auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 4-30s, or 0 = auto (needs video refs). Resolution: 480p, 720p, or 1080p (~2.46x cost). Also supports reference-to-video (up to 30 images, 10 videos, 10 audio refs; no image required), video EDITING and EXTENSION — source in video_urls, the prompt describes the change or continuation.wan/v3.0: Alibaba Wan 3.0 — next-gen open-weight Wan with native audio and single-pass clips up to 30s. Supports text-to-video, image-to-video with first/last frame control, and reference-to-video (reference_mode with up to 10 reference images, 5 videos and 5 audio clips, each ref modality <=15s combined — address them positionally in the prompt as 'Image 1', 'Video 1', 'Audio 1'). tier=fast runs the accelerated Prime arm (~1.4x cost). Supported ratios: adaptive, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 2-30s. Resolution: 480p, 720p, 1080p. Duration ranges above are hard caps; out-of-range values are clamped to the nearest supported value. (string, one of: kling/v3, kling/o3, gemini/veo3.1, minimax/h3, minimax/h3-max, wan/v2.7, vidu/q4, runway/gen4_turbo, pixverse/v6, pixverse/c1, fal-ai/bytedance/seedance-2.0, fal-ai/topaz/upscale/video, fal-ai/bytedance-upscaler/upscale/video, xai/grok-imagine-video, alibaba/happy-horse, alibaba/happy-horse/reference-to-video, alibaba/happy-horse/video-edit, gemini/omni-flash, kling/v4, bfl/flux-3-preview-high, bfl/flux-3-max, fal-ai/bytedance/seedance-2.5, wan/v3.0) |
|
|
36
|
+
| `-m`, `--model` | No | The model to use for video generation (required for a render; omit only with task_id). kling/v3: Latest Kling V3. Supports native audio, but generates a SILENT video unless audio_enable=true. image_urls are frames, not references: 1 image = first frame (i2v); 2 images = first + last frame (the 2nd is the END frame). No reference mode (use kling/o3 with reference_mode for reference-driven generation). Pro/Standard/Turbo tiers (set via the tier parameter; turbo is the fastest arm but has no audio and no first/last-frame control). Supported ratios: 16:9, 9:16, 1:1. Duration: 3-15s. kling/o3: Kling O3. REQUIRES at least one input image or a video_url (no text-to-video). image_urls are frames (1 = first, 2 = first + last) unless reference_mode=true: style/character references, max 4 total including elements. video_url switches to video-to-video (video_mode 'reference' = motion guide, 'edit' = restyle in footage). Native audio via audio_enable. Pro/Standard tiers. Supported ratios: 16:9, 9:16, 1:1. Duration: 3-15s. gemini/veo3.1: Gemini Veo 3.1 - Latest version with enhanced quality and features. Supports text-to-video and image-to-video generation with improved quality. image_urls are frames unless reference_mode: 1 image = first frame, exactly 2 = first/last frame transition, 3 (or reference_mode=true) = style/character references (max 3, 8s only). video_url (MP4 source) = video EXTENSION mode: continues from the last frame, 7s, up to 1080p. Duration: 4s/6s/8s. Supported ratios: 16:9, 9:16. Supports tier (standard \| fast). Resolution: 720p, 1080p, 4k. minimax/h3: MiniMax H3 2K video model. Supports text-to-video, image-to-video with first/last frame control, and reference-to-video (up to 9 reference images, 3 reference videos, 3 reference audio clips — refer to them in the prompt as 'Image 1', 'Video 1', 'Audio 1', not @-style). Keyframes and references are mutually exclusive. Supported ratios: adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 5-15s. Resolution: 768p or 2K (default). minimax/h3-max: MiniMax H3 Max, a distinct post-trained model with faster generation, stronger prompt adherence, and improved aesthetics. Supports text, first/middle/last frame keyframes, and image/video/audio references — keyframes and references COMBINE on this model (set keyframes via first_frame_url/last_frame_url/middle_image_url + middle_frame_time; the middle frame needs an explicit first_frame_url AND last_frame_url — image_urls are all references here — native 480p/768p, and at least one reference). tier=turbo selects the faster, half-price text/image arm; reference and middle-frame inputs use standard. Duration: 5-15s. Resolution: 480p or 768p. Reference requests also incur a reference-token fee on top of the output charge — a reference video especially can cost more than the output itself. minimax/h3-highspeed: MiniMax H3 Highspeed — H3 inputs and ratios, 480p/768p, 4-15s, faster and cheaper than minimax/h3. minimax/h3-lite: MiniMax H3 Lite — cheapest H3, same inputs, 480p/768p, 4-15s, no adaptive ratio (omit = 16:9). wan/v2.7: Wan v2.7 with enhanced motion smoothness and scene fidelity. Supports text-to-video, image-to-video, reference-to-video, and edit-video. Ratios: 16:9, 9:16, 1:1. Duration: 5s. Resolution: 480p, 720p vidu/q4: Vidu Q4, Vidu's next-generation flagship with native audio. REQUIRES an image (no text-to-video): 1 image_urls entry = first frame (image-to-video, framing follows the image); reference_mode (or 2+ images, or audio_urls) = reference-to-video with up to 12 reference images and 3 voice clips, addressed in the prompt as [@reference_image_1].. / [reference_audio_1].. No end frame, no tiers. Supported ratios (reference mode): 16:9, 9:16, 4:3, 3:4, 1:1. Duration: 3-16s. Resolution: 540p, 720p, 1080p, 2K, 4Krunway/gen4_turbo: A model for generate video with high quality, fast.Supported ratios: 5:3, 3:5. Only support i2v. Duration: 5s, 10spixverse/v6: PixVerse V6 latest model with lifelike motion, richer skin detail, real emotions. Full cinematic control including choreography and camera. Supports text-to-video, image-to-video, transition, and video extend generation. VFX, time-lapse, transformation scenes, product demos, 360° views, multi-shot storytelling. Extend: pass video_url to extend an existing video. Supported ratios: 16:9, 9:16, 4:3, 1:1, 3:4. Duration: 5s, 8s. pixverse/c1: PixVerse C1 with native audio (audio_enable=true), text-to-video, image-to-video, transitions (2 images = first/last frame) and reference-to-video (reference_mode with 1-7 image_urls; address them in the prompt as @image1..@image7). No video extend. Supported ratios: 16:9, 9:16, 4:3, 3:4, 1:1, 3:2, 2:3, 21:9. Duration: 1-15s. Resolution: 360p, 540p, 720p, 1080p. fal-ai/bytedance/seedance-2.0: Bytedance Seedance 2.0 model for highest quality video generation with native audio and lip-sync. Supports text-to-video and image-to-video with first/last frame control. Supported ratios: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 4-15s. Resolution: 480p, 720p, or 1080p on the standard tier (~2.25x cost; fast/mini cap at 720p). tier picks the variant: standard, fast, or mini (cheapest, ~half the standard price). Also supports reference-to-video with up to 9 images, 3 videos, or 3 audio refs via settings.fal-ai/topaz/upscale/video: Topaz Labs Video Upscaler, the preferred upscaler: 2x enhancement of an existing video (source up to 60s) with real detail recovery. Requires video_url parameter. Does NOT generate new videos. Use when user wants to improve quality of existing videos.fal-ai/bytedance-upscaler/upscale/video: ByteDance Video Upscaler for enhancing video quality. Upscales videos to higher resolutions (2k) Requires video_url parameter. Does NOT generate new videos. Use when user wants to improve quality of existing videos.xai/grok-imagine-video: xAI Grok Imagine Video v1.5 for high-quality video generation. Supports text-to-video and image-to-video generation. 2+ image_urls (or reference_mode=true) = style/character references, up to 7 (reference mode caps at 720p). video_url (MP4, 2-15s source) = video EXTENSION mode: continues from the last frame, 2-10s extension, 720p. 480p/720p/1080p output. Supported ratios: 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16. Duration: 1-15s. tier=lite runs the lightweight low-cost 1.5 Lite arm (text-to-video and image-to-video only — no references, no extension). alibaba/happy-horse: Alibaba Happy Horse video model. High-quality generation from text, or image-to-video from a single first-frame image (one image_url without reference_mode). Supported ratios: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21, 5:4, 4:5. Duration: 3-15s. Resolution: 720p, 1080p.alibaba/happy-horse/reference-to-video: Alibaba Happy Horse reference-to-video. Generate video from 1-9 reference images; address subjects in the prompt as character1..character9 (order matches image_urls). Requires image_urls. Supported ratios: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21, 5:4, 4:5. Duration: 3-15s. Resolution: 720p, 1080p.alibaba/happy-horse/video-edit: Alibaba Happy Horse video-edit. Edit a source video using a text prompt; optional 1-5 reference images addressed as @Image1..@Image5. Requires video_url (MP4/MOV, 3-60s). Output preserves source aspect ratio, capped at 15s. Resolution: 720p, 1080p.gemini/omni-1.2-flash: Gemini Omni 1.2 Flash — Google's multimodal video model with native audio: 3-15s, 16:9/9:16, 360p/720p/1080p/4k; 1 image = first frame, 2 = first + last frame (3-10s), reference_mode = up to 6 reference images + 3 clips (<=3s, describe roles in plain words); video_url = edit that clip (video_mode=extend continues it by 3-10s).kling/v4: Kling 4.0 — fast 720p/1080p generation. Text-to-video, image-to-video (1 image = start frame, 2 images = start + end frame), reference-to-video (reference_mode or 3+ images: up to 10 image_urls as @Image1.., up to 5 video_urls as @Video1.., up to 7 elements as @Element1..) and video-to-video editing (pass video_url — the prompt is the edit instruction, @Video1 addresses the source clip). No extension mode. Supported ratios: 16:9, 9:16, 1:1, 21:9. Duration: 3-30s. Resolution: 720p, 1080p. tier=flash runs Kling 4.0 Flash (cheaper, faster): same modes, 3-20s at 720p only. bfl/flux-3-preview-high: BFL FLUX 3 video model with native audio. Supports text-to-video and 1-10 ordered keyframes, or continuation from one source video selected with input_mode=start_video. Ratios: auto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 5-20s. Resolution: 720p, 1080p, 2K, 4K (2K/4K not available when continuing a video). Only one input family may be used per request.bfl/flux-3-max: FLUX 3 Max, fal's post-trained FLUX 3 video model: top-ranked image-to-video quality, renders a 10s clip in about 12s, native audio. Text-to-video and 1-10 ordered keyframes (2 images = first and last frame). No video continuation, no draft, no auto duration. Ratios: auto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 5-20s (explicit). Resolution: 720p, 1080p.fal-ai/bytedance/seedance-2.5: Bytedance Seedance 2.5 for native 30-second single-shot video with synchronized audio. Supports text-to-video and image-to-video with first/last frame control. No tier variants. Supported ratios: auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 4-30s, or 0 = auto (needs video refs). Resolution: 480p, 720p, or 1080p (~2.46x cost). Also supports reference-to-video (up to 30 images, 10 videos, 10 audio refs; no image required), video EDITING and EXTENSION — source in video_urls, the prompt describes the change or continuation.wan/v3.0: Alibaba Wan 3.0 — next-gen open-weight Wan with native audio and single-pass clips up to 30s. Supports text-to-video, image-to-video with first/last frame control, and reference-to-video (reference_mode with up to 10 reference images, 5 videos and 5 audio clips, each ref modality <=15s combined — address them positionally in the prompt as 'Image 1', 'Video 1', 'Audio 1'). tier=fast runs the accelerated Prime arm (~1.4x cost). Supported ratios: adaptive, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 2-30s. Resolution: 480p, 720p, 1080p. Duration ranges above are hard caps; out-of-range values are clamped to the nearest supported value. (string, one of: kling/v3, kling/o3, gemini/veo3.1, minimax/h3, minimax/h3-max, minimax/h3-highspeed, minimax/h3-lite, wan/v2.7, vidu/q4, runway/gen4_turbo, pixverse/v6, pixverse/c1, fal-ai/bytedance/seedance-2.0, fal-ai/topaz/upscale/video, fal-ai/bytedance-upscaler/upscale/video, xai/grok-imagine-video, alibaba/happy-horse, alibaba/happy-horse/reference-to-video, alibaba/happy-horse/video-edit, gemini/omni-1.2-flash, kling/v4, bfl/flux-3-preview-high, bfl/flux-3-max, fal-ai/bytedance/seedance-2.5, wan/v3.0) |
|
|
37
37
|
| `-i`, `--image_urls` | No | The URLs of the images to use as reference key frames for the video generation. For single image models, provide 1 image. For multi-image models (like kling/v1.6/pro/elements), provide 1-4 images in sequence order. For start-end models (like vidu, pixverse), provide exactly 2 images (start and end frames). (default is [], if the task is based on one or more reference images, it is required) IMPORTANT: without reference_mode, the first image becomes the video's literal opening frame — identity markers visible in it (flags, jerseys, text, logos, faces) persist in the output and the text prompt CANNOT override them. When generating a batch of subject-specific clips (per-country / per-person / per-product), each clip needs an image matching its own subject — never reuse another subject's image. (array) |
|
|
38
38
|
| `--first_frame_url` | No | MiniMax H3 Max keyframe control: image URL the video opens on exactly, ALONGSIDE reference_mode references (the output canvas follows this image). Without reference_mode the first image_urls entry already is the first frame; in reference_mode (including any middle-frame request) it is REQUIRED, because image_urls entries are all subject references. H3 Max only: other models ignore it, and base minimax/h3 rejects it (frames there come from image_urls). (string) |
|
|
39
39
|
| `--middle_image_url` | No | MiniMax H3 Max keyframe control: image the video passes through at middle_frame_time. Requires an explicit first frame (first_frame_url) AND last frame (last_frame_url) — a middle frame forces reference mode, where every image_urls entry is a subject reference — plus native 480p/768p and at least one reference image/video/audio. H3 Max only: other models ignore it, and base minimax/h3 rejects it. (string) |
|
|
@@ -43,15 +43,15 @@ gsk video [options]
|
|
|
43
43
|
| `-d`, `--duration` | No | The duration in seconds. 0 = auto (Seedance 2.5 with video_urls; required for edit prompts — output keeps the source length; extensions: pass the new segment's length). (number, default: `5`) |
|
|
44
44
|
| `-a`, `--audio_url` | No | Audio URL for audio integration in video generation. - Optional for Wan v2.5 model (custom audio: music or speech, WAV/MP3, 3-10s, up to 15MB) - Required for OmniHuman model (audio-driven animation) Leave empty if no audio is needed. (string, default: ``) |
|
|
45
45
|
| `--video_url` | No | Source video URL for video extension or video-to-video. On Grok Imagine Video and Gemini Veo 3.1 it switches to EXTENSION mode; on Kling O3 it switches to video-to-video (see video_mode). Supports both web URLs and AI Drive paths (starting with '/' or 'aidrive://') (string, default: ``) |
|
|
46
|
-
| `--video_mode` | No | How video_url is used. Kling O3: 'reference' (default — motion/camera guide) or 'edit' (restyle inside the source footage); no extend. Gemini Veo 3.1 / Grok Imagine Video: 'extend' only. Ignored without video_url. (string, one of: reference, edit, extend) |
|
|
46
|
+
| `--video_mode` | No | How video_url is used. Kling O3: 'reference' (default — motion/camera guide) or 'edit' (restyle inside the source footage); no extend. Gemini Veo 3.1 / Grok Imagine Video: 'extend' only. Gemini Omni 1.2 Flash: 'edit' (default) or 'extend'. Ignored without video_url. (string, one of: reference, edit, extend) |
|
|
47
47
|
| `--keep_audio` | No | Kling O3 video-to-video only: keep the source video's audio track in the output. (boolean) |
|
|
48
48
|
| `--input_mode` | No | FLUX 3 Video only: set start_video to continue video_url from its final frames. Omit for all other models and for text/image input. (string, one of: start_video) |
|
|
49
49
|
| `--video_urls` | No | Reference video URLs for reference-to-video models. For Wan v2.7 and Seedance 2.0 reference-to-video: provide 1-3 reference videos and refer to them in the prompt as @Video1, @Video2, @Video3. Seedance 2.0 also needs reference_mode plus at least one image_url; combined video duration 2-15s. For Seedance 2.5: up to 10 videos (≤30s combined), no image required; also the edit/extension source (edit: duration=0, output keeps the source length; extension: duration = the new segment's length). For MiniMax H3: up to 3 motion reference videos (each 2-15s, ≤15s combined), referred to in the prompt as 'Video 1' etc. (array, default: `[]`) |
|
|
50
50
|
| `--audio_urls` | No | Reference audio URLs for reference-to-video models. For Seedance 2.0: provide up to 3 audio clips (MP3/WAV) and refer to them in the prompt as @Audio1, @Audio2, @Audio3 (e.g. to drive lip-sync or match a voice). Combined duration must not exceed 15s. Requires reference_mode plus at least one image_url (image_urls is what activates the seedance-2.0/ref route). For Seedance 2.5: up to 10 clips (≤30s combined), no image required. For MiniMax H3: up to 3 audio references (each 2-15s, ≤15s combined; 'Audio 1' prompt style), must be paired with at least one reference image or video. Distinct from audio_url, the single-clip Wan v2.5 / OmniHuman field. (array, default: `[]`) |
|
|
51
51
|
| `--repo_id` | No | Optional. Second Brain repo id (provided in the agent's system prompt). Required only when image_urls / audio_url / video_url / video_urls contain relative paths from a Second Brain project (e.g. 'assets/clip.mp4'). Absolute http(s) URLs and data: URLs do not need this parameter. (string) |
|
|
52
52
|
| `--audio_enable` | No | Set true when the user wants audio, voiceover, or narration. kling/v3 outputs a SILENT video unless true (audio costs more per second). Omit to keep each model's default (kling: off; seedance/veo: on). (boolean) |
|
|
53
|
-
| `--tier` | No | Model tier (options are model-specific — check get_model_info tier_options). Seedance 2.0: standard \| fast (quicker/cheaper, 720p cap) \| mini (cheapest, ~half the standard price, 720p cap). Veo 3 / Veo 3.1 family: standard \| fast (quicker, lower cost). Kling V3: pro \| standard \| turbo (fastest, no audio/frame control). Kling O3/Motion Control: pro \| standard. Vidu Q3: standard \| turbo (half price). Wan 3.0: standard \| fast (the accelerated Prime arm — quicker but ~1.4x the price). MiniMax H3 Max: standard \| turbo (faster, half price; references use standard). MiniMax H3 ignores tier. Models without tiers ignore it. (string, one of: standard, fast, mini, pro, turbo, max) |
|
|
54
|
-
| `--video_size` | No | Output resolution. 'auto' uses the model default (usually 720p). MiniMax H3 defaults to 2K with a cheaper 768p tier; MiniMax H3 Max uses 480p or 768p. Values a model does not publish fall back to its default. Higher tiers bill more per second — see each model's Resolution line. Default: auto. (string, one of: auto, 480p, 720p, 768p, 1080p, 2K, 4k, default: `auto`) |
|
|
53
|
+
| `--tier` | No | Model tier (options are model-specific — check get_model_info tier_options). Seedance 2.0: standard \| fast (quicker/cheaper, 720p cap) \| mini (cheapest, ~half the standard price, 720p cap). Veo 3 / Veo 3.1 family: standard \| fast (quicker, lower cost). Kling V3: pro \| standard \| turbo (fastest, no audio/frame control). Kling O3/Motion Control: pro \| standard. Kling 4.0: standard \| flash (cheaper/faster, 3-20s, 720p only). Vidu Q3: standard \| turbo (half price). Wan 3.0: standard \| fast (the accelerated Prime arm — quicker but ~1.4x the price). MiniMax H3 Max: standard \| turbo (faster, half price; references use standard). MiniMax H3 ignores tier. Models without tiers ignore it. (string, one of: standard, fast, mini, pro, turbo, max, flash) |
|
|
54
|
+
| `--video_size` | No | Output resolution. 'auto' uses the model default (usually 720p). MiniMax H3 defaults to 2K with a cheaper 768p tier; MiniMax H3 Max uses 480p or 768p. Values a model does not publish fall back to its default. Higher tiers bill more per second — see each model's Resolution line. Default: auto. (string, one of: auto, 360p, 480p, 720p, 768p, 1080p, 2K, 4k, default: `auto`) |
|
|
55
55
|
| `--draft` | No | Seedance 2.5 only: render a 480p draft (billed at the 480p rate) to check structure, motion and prompt fit; a delivered draft renders its final 1080p via draft_task_id (same content, no new inputs). Ignored on other models. (boolean, default: `False`) |
|
|
56
56
|
| `--draft_task_id` | No | task_id of a successful Seedance 2.5 draft (within 7 days): renders its final 1080p video, reusing the draft's prompt, references, duration and ratio. Send no other inputs and no draft flag with it; bills the 1080p rate. 1080p is the only final size the draft API accepts (a 720p ask re-renders fresh, no pointer). (string) |
|
|
57
57
|
| `--estimate` | No | Dry run: return the credit estimate for exactly these settings (model, duration, resolution, tier, audio, draft) and generate nothing - nothing is billed. Run it with the same flags before a paid render when you must decide whether to confirm the spend first. (boolean, default: `False`) |
|