tai-ai 0.4.0 → 0.4.1

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 CHANGED
@@ -35,6 +35,7 @@ tai skill search "代码审查"
35
35
  tai skill search "代码审查" # 搜索技能
36
36
  tai llm chat "你好" # 大模型对话
37
37
  tai aigc image "日落" # 生成图片
38
+ tai aigc seedance "首尾帧" --mode first_last_frame --first-frame a.jpg --last-frame b.jpg
38
39
  tai asr transcribe <音频地址> # 语音识别
39
40
  tai tts speak "你好" --voice xxx # 语音合成
40
41
  ```
@@ -153,6 +154,59 @@ function out(text, code = 0, t = Date.now()) {
153
154
 
154
155
  ---
155
156
 
157
+ ## Seedance 2.0 视频生成
158
+
159
+ `tai aigc seedance` 直连 `/v1/seedance/videos/generations` 专区端点,支持 6 种生成模式 + 项目密钥的素材库管理。素材自动审核:图片走临时审核渠道,视频/音频直接通过(KDocs 不审视频音频)。
160
+
161
+ ### 素材库(项目密钥)
162
+
163
+ ```bash
164
+ tai aigc asset upload ./ref.jpg # 上传图片,立即返回 asset_id
165
+ tai aigc asset upload ./scene.mp4 # 上传视频,自动通过审核
166
+ tai aigc asset list --status approved --type video
167
+ tai aigc asset get asset_xxx # 查素材详情
168
+ tai aigc asset wait asset_xxx # 阻塞直到审核终态
169
+ ```
170
+
171
+ ### 生成(6 种模式)
172
+
173
+ ```bash
174
+ # 文生视频
175
+ tai aigc seedance "城市夜景延时" --duration 8 --ratio 16:9
176
+
177
+ # 图生视频(单帧驱动)
178
+ tai aigc seedance "她转头微笑" --mode image_to_video --image ./portrait.jpg
179
+
180
+ # 首尾帧(双图过渡)
181
+ tai aigc seedance "推门进入房间" --mode first_last_frame --first-frame ./a.jpg --last-frame ./b.jpg
182
+
183
+ # 全能参考(图+视频+音频混合)
184
+ tai aigc seedance "保持节奏" --mode omni_reference --image asset_abc --video ./scene.mp4 --audio ./bgm.mp3
185
+
186
+ # 视频续写(接上一段视频继续生成)
187
+ tai aigc seedance "继续推镜" --mode video_extend --source-video asset_xyz
188
+
189
+ # 多帧序列(≥2 张关键帧)
190
+ tai aigc seedance "起身离开" --mode multi_frame --frame ./f1.jpg --frame ./f2.jpg --frame ./f3.jpg
191
+ ```
192
+
193
+ 参数(任意 mode 可叠加):
194
+ - `--model dreamina-seedance-2-0-260128`(默认)/ `dreamina-seedance-2-0-fast-260128`(更快、不支持 1080p)
195
+ - `--duration 4..15`、`--ratio 21:9|16:9|4:3|1:1|3:4|9:16`、`--resolution 480p|720p|1080p`
196
+ - `--no-audio`(默认生成音频)、`--no-watermark`(默认即无水印)
197
+
198
+ `--image / --video / --audio / --first-frame / --last-frame / --source-video / --frame` 都接受 **本地路径或 asset_id**:
199
+ - 已存在的 `asset_xxx` → 直接复用
200
+ - 本地路径 → 自动调 `/seedance/assets/upload`,再轮询 `/seedance/assets/{id}` 直到审核通过
201
+
202
+ ### 状态查询
203
+
204
+ ```bash
205
+ tai aigc seedance-status task_xxx
206
+ ```
207
+
208
+ ---
209
+
156
210
  ## 三个手段的递进关系
157
211
 
158
212
  ```