Skip to content
Open CastalyConsole

Video

wan2.7-t2v-nsfw API

Use the exact wan2.7-t2v-nsfw model ID through Modelflare asynchronous video routing.

Use the exact model ID wan2.7-t2v-nsfw. The model field must match this page exactly.

Sample outputwan2.7-t2v-nsfwPOST /v1/videos5.0s

Parameters: duration=5resolution=1080pratio=16:9

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.

This sample is deliberately mild. It is not the content limit of this model ID.

Request that produced this sample
{
"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"
}

Use a Modelflare API key with https://modelflare.dev/v1. The gateway entry point is POST /v1/videos.

HTTP
Authorization: Bearer YOUR_MODELFLARE_API_KEY
Terminal windowbash
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": "A white cat runs through a neon-lit street in the rain, cinematic tracking shot"},
"parameters": {"resolution": "1080P", "duration": 5, "prompt_extend": false}
}'

Save the task ID. Poll GET /v1/videos/{task_id} and download with GET /v1/videos/{task_id}/content. Result URLs may expire, so transfer the file promptly.

Terminal windowbash
curl https://modelflare.dev/v1/videos/TASK_ID \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"

Wan commonly uses input and parameters; frame-guided and reference-media modes must not be mixed.

Wan2.7 T2V centers on input.prompt and optionally accepts input.audio_url. Describe shot changes in the prompt; do not send shot_type.

Field Required Notes
model Yes wan2.7-t2v-nsfw
input.prompt Yes Use the limit documented on the official page
input.negative_prompt No Negative prompt
input.audio_url No Public WAV/MP3; omit to let the model generate audio
parameters.resolution No 720P / 1080P (default 1080P)
parameters.ratio No 16:9 / 9:16 / 1:1 / 4:3 / 3:4
parameters.duration No Video duration in seconds
parameters.prompt_extend No Set false when this dedicated model contract requires it
parameters.watermark No Whether to add a watermark
parameters.seed No Optional random seed

T2V outputs 720P or 1080P for 2–15 seconds. Omit input.audio_url to generate synchronized audio; a supplied WAV/MP3 is trimmed or leaves silence to match the requested duration. Describe multi-shot timing in the prompt and do not send shot_type.

Terminal windowbash
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}
}'

Invalid model parameters return a 4xx with a request ID. An asynchronous task can also enter failed after creation succeeds; use error_code and error_message from the poll response as the final task reason. Do not retry the same request with a different JSON shape.

This page covers Modelflare model generation and editing calls. Search or map enrichment, voice management, and element-library management are resource APIs outside this public model-call surface and are not required request fields.

This model uses per-second video billing. See the model pricing page for the current customer price, reference list price, and complete specification.

Model ID Difference
wan2.7-t2v-nsfw The model documented on this page.
wan2.7-t2v The base model. Same endpoint, request contract, and billing unit; only the model ID changes — see its own page, and the pricing page for price and availability.
Media contract · v1

Contract ID: media.wan2-7-t2v-nsfw.v1Adapter: video.wan.t2v.v1@v1Fingerprint: 3fc6f058793b880a8cdd5fc86d992ae4ff1388a6e7500bd0f6a117734fbdc4db

Official source: Alibaba Cloud Model Studio

Contract parameters

Intent fieldControlOptions
ratioselect16:9 / 9:16 / 1:1 / 4:3 / 3:4
resolutionselect720p / 1080p
durationselect2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15

Supported capability

  • allowed_values · ratio · 16:9, 9:16, 1:1, 4:3, 3:4
  • allowed_values · resolution · 720p, 1080p
  • allowed_values · duration · 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

Structured request example

text

Intent

{
  "duration": 2,
  "prompt": "A red paper kite over a quiet harbour at dusk.",
  "ratio": "16:9",
  "resolution": "720p"
}

Provider request

{
  "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"
}