视频
wan2.7-t2v-nsfw API
通过 Modelflare 异步视频入口使用精确的 wan2.7-t2v-nsfw 模型 ID。
使用精确模型 ID wan2.7-t2v-nsfw。请求中的模型名必须与本页完全一致。
请求参数:duration=5resolution=1080pratio=16:9
提示词:One continuous take, no cuts. A sunlit poolside deck at midday. A blonde woman with a curvy full figure, in a white bikini and tortoiseshell glasses. She lies on her front on a striped towel close to the lens, propped on her forearms, then pushes up, turns slowly onto her side and comes round square to the camera, running one hand back through her damp hair and letting it fall over one shoulder, ending front on to the lens with a relaxed smile. Warm midday sun from the left, bright bounce off the pale deck. Low camera close to her, easing back as she turns and keeping her framed from shoulders to hips, shallow depth of field. Real weight and inertia, natural hair and fabric movement, no text.
该示例为刻意选取的温和素材,不代表该模型 ID 的内容尺度上限。
{ "model": "wan2.7-t2v-nsfw", "prompt": "One continuous take, no cuts. A sunlit poolside deck at midday. A blonde woman with a curvy full figure, in a white bikini and tortoiseshell glasses. She lies on her front on a striped towel close to the lens, propped on her forearms, then pushes up, turns slowly onto her side and comes round square to the camera, running one hand back through her damp hair and letting it fall over one shoulder, ending front on to the lens with a relaxed smile. Warm midday sun from the left, bright bounce off the pale deck. Low camera close to her, easing back as she turns and keeping her framed from shoulders to hips, shallow depth of field. Real weight and inertia, natural hair and fabric movement, no text.", "seconds": "5", "duration": 5, "resolution": "1080p", "ratio": "16:9", "aspect_ratio": "16:9"}使用 Modelflare API Key,通过 https://modelflare.dev/v1 发送请求。网关入口为 POST /v1/videos。
Authorization: Bearer YOUR_MODELFLARE_API_KEYcurl https://modelflare.dev/v1/videos \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wan2.7-t2v-nsfw", "input": {"prompt": "一只白猫在雨夜霓虹街道上奔跑,电影感跟拍"}, "parameters": {"resolution": "1080P", "duration": 5, "prompt_extend": false} }'任务查询与下载
Section titled “任务查询与下载”提交成功后保存任务 ID。使用 GET /v1/videos/{task_id} 轮询,完成后使用 GET /v1/videos/{task_id}/content 下载;结果地址可能过期,应及时转存。
curl https://modelflare.dev/v1/videos/TASK_ID \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"Wan 通常使用 input 与 parameters;帧引导和 reference media 不能混用。
Wan2.7 T2V 以 input.prompt 为主,可用 input.audio_url 提供驱动音频;多镜头直接写在提示词中,不发送 shot_type。
| 字段 | 必填 | 说明 |
|---|---|---|
model |
是 | wan2.7-t2v-nsfw |
input.prompt |
是 | 最长限制以官方页面为准 |
input.negative_prompt |
否 | 负向提示词 |
input.audio_url |
否 | 公开 WAV/MP3;省略时由模型生成音频 |
parameters.resolution |
否 | 720P / 1080P(默认 1080P) |
parameters.ratio |
否 | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 |
parameters.duration |
否 | 视频秒数 |
parameters.prompt_extend |
否 | 该独立模型按模型契约设为 false |
parameters.watermark |
否 | 是否添加水印 |
parameters.seed |
否 | 可选随机种子 |
输入与输出限制
Section titled “输入与输出限制”T2V 输出为 720P/1080P、2–15 秒。省略 input.audio_url 时生成同步音频;提供 WAV/MP3 时按请求时长截取或留空。多镜头直接写进提示词,不发送 shot_type。
官方工作流示例
Section titled “官方工作流示例”curl https://modelflare.dev/v1/videos \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wan2.7-t2v-nsfw", "input": {"prompt": "从文字生成一段稳定的电影镜头"}, "parameters": {"resolution": "1080P", "duration": 8, "prompt_extend": false} }'错误与失败任务
Section titled “错误与失败任务”参数不符合模型契约时,创建接口会返回带 request ID 的 4xx。异步任务也可能在创建成功后进入 failed;轮询响应中的 error_code 和 error_message 才是该任务的最终原因。不要把同一请求改成另一种 JSON 结构重试。
本页只覆盖 Modelflare 的模型生成/编辑调用。搜索或地图增强、声音管理、元素库管理等资源型接口不属于本页的公开调用范围,也不需要作为模型请求字段传入。
本模型按视频秒计费。请查看模型价格页查看当前销售价、参考原价和完整规格。
| 模型 ID | 差异 |
|---|---|
wan2.7-t2v-nsfw |
本页说明的模型。 |
wan2.7-t2v |
基础模型。入口、请求结构和计费单位与本页相同,只需替换模型 ID;详见该模型页,价格与可用性见价格页。 |
媒体契约 · v1
官方来源: Alibaba Cloud Model Studio
契约参数
| Intent 字段 | 控件 | 选项 |
|---|---|---|
ratio | select | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 |
resolution | select | 720p / 1080p |
duration | select | 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15 |
支持能力
allowed_values·ratio· 16:9, 9:16, 1:1, 4:3, 3:4allowed_values·resolution· 720p, 1080pallowed_values·duration· 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
结构化请求示例
text
Intent
{
"duration": 2,
"prompt": "A red paper kite over a quiet harbour at dusk.",
"ratio": "16:9",
"resolution": "720p"
}上游请求
{
"duration": 2,
"model": "wan2.7-t2v-nsfw",
"prompt": "A red paper kite over a quiet harbour at dusk.",
"ratio": "16:9",
"resolution": "720p",
"seconds": "2"
}