主题
material_request
POST /material/request
接口说明
按需求单产出自制素材(蒙版/遮罩/边框/覆叠/手绘描线)。mtype=stroke_reveal 走另一套字段且是异步:立刻回 task_id,状态查 GET /material/status。手绘描线参数:mode(trace/reveal 必填)、text 或 illustration_url、duration(别名 target_duration)、stroke_color、stroke_width、fill、width/height、fps、shot_id、narration_ref、license。
参数
| 参数 | 必填 | 默认值 | 说明 |
|---|---|---|---|
mtype | 是 | — | mask/matte/frame/overlay/other/stroke_reveal |
name | 否 | — | 素材名 |
mode | 描线必填 | — | trace / reveal |
text | 二选一 | — | 要书写的字符串(≤12 字) |
illustration_url | 二选一 | — | 线稿直链(≤30MB) |
duration | 是 | — | 秒,0.5~30;别名 target_duration |
返回
同步模式回 material_id/url;stroke_reveal 回 task_id + status_url
示例
text
{"mtype": "stroke_reveal", "mode": "trace", "text": "8+5", "target_duration": 4, "shot_id": "s01"}