调用 ID
在请求体的「model」字段里填这个值 —— 不是上面的展示名。
by other · 智能剪辑:口播音频 + 图片/视频素材 + 模板 → 自动配字幕/包装的成片(异步任务)。按成片时长计费。
POST /v1/videos/generationshttps://api.dflop.top/v1curl https://api.dflop.top/v1/videos/generations \
-H "Authorization: Bearer sk-gpushare-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "clip-mixcut",
"style_id": "<GET /v1/videos/clip-templates 选一个模板 id>",
"audio_url": "https://example.com/voice.mp3",
"materials": [
{"type": "image", "file_url": "https://example.com/a.jpg"},
{"type": "video", "file_url": "https://example.com/b.mp4", "sound_switch": false}
],
"duration": 60
}'
# 返回 {"id": "...", "status": "queued"}
# style_id / audio_url / materials[] 三者都是必填,缺任一直接 400
# 成片长度由口播音频决定;duration 仅供计费参考,不下发上游
# ⚠️ 外部 key 的预扣取「300 秒地板」与你传的 duration 的较大者curl https://api.dflop.top/v1/videos/generations/$TASK_ID \
-H "Authorization: Bearer sk-gpushare-xxxxxxxx"
# status: queued -> running -> succeeded / failed / expired / cancelled
# 建议 5-10 秒轮询一次。轮询免费。这是异步任务:提交拿到任务 id,再轮询到终态。轮询本身免费。
按成片秒数计费:分辨率分档的 SKU 按交付分辨率取对应档单价。
登录后,若你的账号有专属折扣会显示在这里。 去登录
这类模型按张 / 按秒 / 按次真实计费,而且多为异步任务,所以本页不提供一键测试。用上方的示例代码调用,或去对应工作台生成(工作台带参数面板与费用预估)。
打开工作台404 model_not_found你填的是展示名,不是调用 ID。✗ 智能剪辑 · 素材混剪→✓ clip-mixcut
→ 复制本页顶部的「调用 ID」
402 quota_exceeded账户余额不足。余额由你名下全部 API Key 共享。
→ 去账户页充值
401 / 403API Key 无效,或该 Key 设了模型白名单且不含这个 ID。
→ 检查 Key 的状态与允许模型
400 invalid_requestLite(-lite)SKU 的 resolution 是必填,词表仅 720p / 1080p;传其它档同样 400。
→ 对照上方示例代码检查请求体
价格单位是积分(60 积分 = ¥1)。 本页的 Markdown 版本:/models/clip-mixcut.md