Video
wan2.7-i2v-nsfw API
Use the exact wan2.7-i2v-nsfw model ID through Modelflare asynchronous video routing.
Use the exact model ID wan2.7-i2v-nsfw. The model field must match this page exactly.
Parameters: duration=5resolution=1080pratio=16:9Input image
Prompt: One continuous take, no cuts. Keep the woman, the white bikini, the tortoiseshell glasses, the striped towel and the poolside exactly as in the first frame. She pushes up off her forearms and turns slowly onto her side and then square to the lens, settling back on one hip; as she comes round she runs one hand back through her damp hair and lets it fall over one shoulder, then faces the camera front on, chin slightly up, still looking over the top of her glasses with a relaxed smile. The camera holds its low close position and eases back a little as she turns, keeping her framed from shoulders to hips. Warm midday sun stays from the left, bright bounce off the pale deck. 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.
{ "model": "wan2.7-i2v-nsfw", "prompt": "One continuous take, no cuts. Keep the woman, the white bikini, the tortoiseshell glasses, the striped towel and the poolside exactly as in the first frame. She pushes up off her forearms and turns slowly onto her side and then square to the lens, settling back on one hip; as she comes round she runs one hand back through her damp hair and lets it fall over one shoulder, then faces the camera front on, chin slightly up, still looking over the top of her glasses with a relaxed smile. The camera holds its low close position and eases back a little as she turns, keeping her framed from shoulders to hips. Warm midday sun stays from the left, bright bounce off the pale deck. Real weight and inertia, natural hair and fabric movement, no text.", "seconds": "5", "duration": 5, "resolution": "1080p", "ratio": "16:9", "aspect_ratio": "16:9", "image": "https://example.com/input-image.png"}Authentication and endpoint
Section titled “Authentication and endpoint”Use a Modelflare API key with https://modelflare.dev/v1. The gateway entry point is POST /v1/videos.
Authorization: Bearer YOUR_MODELFLARE_API_KEYCreate a task
Section titled “Create a task”curl https://modelflare.dev/v1/videos \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wan2.7-i2v-nsfw", "input": {"prompt": "The camera moves closer as the lanterns begin to glow in time with the music.", "media": [{"type": "first_frame", "url": "https://example.com/first-frame.png"}]}, "parameters": {"resolution": "1080P", "duration": 5, "prompt_extend": false, "watermark": false} }'Poll and download
Section titled “Poll and download”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.
curl https://modelflare.dev/v1/videos/TASK_ID \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"Request notes
Section titled “Request notes”Wan commonly uses input and parameters; frame-guided and reference-media modes must not be mixed.
Request parameters
Section titled “Request parameters”Wan2.7 I2V uses input.prompt and input.media. Follow the documented combinations for first/last frames, driving audio, and an initial clip.
| Field | Required | Notes |
|---|---|---|
model |
Yes | wan2.7-i2v-nsfw |
input.prompt |
Yes | Motion and scene description |
input.media[] |
Yes | first_frame, last_frame, driving_audio, or first_clip |
parameters.resolution |
No | 720P / 1080P (default 1080P) |
parameters.duration |
No | Total duration; includes the input clip for continuation |
parameters.prompt_extend |
No | Set false when this dedicated model contract requires it |
parameters.watermark |
No | Whether to add a watermark |
Input and output limits
Section titled “Input and output limits”I2V media must follow a supported combination such as first_frame, first_frame + last_frame, first_frame + driving_audio, or first_clip with the documented optional end frame. Each media type appears at most once; output is 720P or 1080P.
Documented workflow examples
Section titled “Documented workflow examples”curl https://modelflare.dev/v1/videos \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wan2.7-i2v-nsfw", "input": {"prompt": "镜头从第一帧推进到最后一帧", "media": [ {"type": "first_frame", "url": "https://example.com/first.png"}, {"type": "last_frame", "url": "https://example.com/last.png"} ]}, "parameters": {"resolution": "1080P", "duration": 8, "prompt_extend": false} }'Errors and failed tasks
Section titled “Errors and failed tasks”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.
Supported scope
Section titled “Supported scope”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.
Pricing and billing
Section titled “Pricing and billing”This model uses per-second video billing. See the model pricing page for the current customer price, reference list price, and complete specification.
Variants
Section titled “Variants”| Model ID | Difference |
|---|---|
wan2.7-i2v-nsfw |
The model documented on this page. |
wan2.7-i2v |
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
Official source: Alibaba Cloud Model Studio
Contract parameters
| Intent field | Control | Options |
|---|---|---|
resolution | select | 720p / 1080p |
duration | select | 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15 |
Supported capability
allowed_values·resolution· 720p, 1080pallowed_values·duration· 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15required_assets·reference_asset_idsmax_assets·reference_asset_ids· 3prompt_optional_with_reference·prompt
Structured request example
reference
Intent
{
"duration": 2,
"prompt": "A red paper kite over a quiet harbour at dusk.",
"reference_asset_ids": [
"asset_example"
],
"resolution": "720p"
}Provider request
{
"input": {
"media": [
{
"type": "first_frame",
"url": "https://example.com/reference.png"
}
],
"prompt": "A red paper kite over a quiet harbour at dusk."
},
"model": "wan2.7-i2v-nsfw",
"parameters": {
"duration": 2,
"resolution": "720P"
}
}