Generate AI videos using Wan 2.6 Flash with the same capabilities as Wan 2.6 but faster and cheaper. Supports text-to-video, image-to-video, reference-to-video (character consistency), and multi-shot narratives with audio generation.

Model

alibaba/wan-2.6-flash

Modes

Set mode explicitly to select generation type:
  • t2v (default) — text-to-video
  • i2v — image-to-video (requires start_image_url)
  • r2v — reference-to-video (requires video_urls)

Parameters

ParameterTypeRequiredDescription
promptstringYesText description of the video. For R2V, use character1, character2, etc. matching video_urls order
modestringNot2v, i2v, or r2v (default: t2v)
start_image_urlstringNoFirst-frame image URL for I2V mode (JPEG, PNG, BMP, WEBP)
video_urlsarrayNoReference image/video URLs for R2V mode. Up to 5 (max 3 videos). Each = one character
audio_urlstringNoCustom audio URL for audio-video sync (wav/mp3, max 15MB, 3-30s)
multi_promptarrayNoMulti-shot segments [{prompt, duration}]. Auto-sets shot type and calculates total duration
negative_promptstringNoWhat to avoid in the video (max 500 chars). Ignored for R2V
resolutionstringNo720p or 1080p (default: 720p)
durationintegerNoVideo length in seconds, 2-15s (R2V: 2-10s). Overridden by multi_prompt if set (default: 5)
prompt_extendbooleanNoIntelligent prompt rewriting (default: true)
watermarkbooleanNoAdd watermark (default: false)
audiobooleanNoAuto-generate audio. Set false for silent video (default: true)
seedintegerNoSeed for reproducibility. Not supported for R2V

Example - Text-to-Video

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/wan-2.6-flash",
    "input": {
      "prompt": "A cat running on the grass",
      "mode": "t2v",
      "resolution": "720p",
      "duration": 5
    }
  }'

Example - Image-to-Video

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/wan-2.6-flash",
    "input": {
      "prompt": "The camera slowly pans up from below the sea turtle",
      "mode": "i2v",
      "start_image_url": "https://example.com/turtle.jpg",
      "resolution": "720p",
      "duration": 10
    }
  }'

Example - Reference-to-Video

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/wan-2.6-flash",
    "input": {
      "prompt": "character1 gives an enthusiastic product introduction to camera",
      "mode": "r2v",
      "video_urls": ["https://example.com/presenter.mp4"],
      "duration": 5
    }
  }'

Example - Multi-Shot

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/wan-2.6-flash",
    "input": {
      "prompt": "Cinematic detective story",
      "multi_prompt": [
        {"prompt": "Wide shot of rainy New York streets, neon lights", "duration": 5},
        {"prompt": "Close-up of detective walking into an old building", "duration": 5}
      ],
      "resolution": "1080p"
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}