MindVideo API
Models / Video generation / wan2-5-preview

Wan 2.5 Preview

Wan 2.5 is the Alibaba Wan series video generation model, making it suitable for general video creation.

General video
1

Calling the API

Submit a task to MindVideo with your platform model slug. The response includes a request ID, task ID, normalized status, and estimated cost.

For production retries, send a unique Idempotency-Key per business request. Reusing the same key with the same payload returns the original task without charging again; reusing it with different input returns 409.

Submit a request

curl -X POST https://api.mindvideo.ai/api/v1/tasks \
  -H "Authorization: Bearer mv_live_xxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: task_$(date +%s)" \
  -d '{
  "model": "wan2-5-preview",
  "input": {
    "prompt": "A cinematic coastal road at sunset with smooth camera movement and realistic lighting.",
    "size": "16:9",
    "resolution": "720p",
    "duration": 5,
    "prompt_extend": true,
    "audio": true
  }
}'
2

Authentication

Every server-side request must include an API key in the Authorization header. Keys can be created, disabled, and deleted from the dashboard.

Keep API keys server-sideDo not expose production API keys in browser code. Route user requests through your own backend before calling MindVideo.
3

Queue and polling

The platform maps runtime states into queued, processing, succeeded, failed, or cancelled so clients do not depend on model-specific fields.

Submit a request

Create an async generation task and poll the task endpoint for terminal status updates.

Fetch status

curl https://api.mindvideo.ai/api/v1/tasks/task_demo_model \
  -H "Authorization: Bearer mv_live_xxx"

Fetch task events

curl https://api.mindvideo.ai/api/v1/tasks/task_demo_model/events \
  -H "Authorization: Bearer mv_live_xxx"

Read the result

{
  "request_id": "req_demo_model",
  "task_id": "task_demo_model",
  "status": "succeeded",
  "cost_estimate": 0.3735,
  "cost_actual": 0.3735,
  "output": {
    "videos": [
      {
        "url": "https://example.com/output/demo.mp4"
      }
    ]
  }
}
4

Files

Inputs can reference hosted files or compact data URIs depending on model constraints. Production apps should prefer stable hosted URLs.

Data URI

Useful for small test assets and local playground experiments.

Hosted URL

Recommended for production workloads, retries, and larger image or video inputs.

5

Schema

Input

{
  "type": "object",
  "required": [],
  "properties": {
    "seed": {
      "type": "integer",
      "title": "Seed",
      "minimum": 0,
      "x-playground": {
        "advanced": true
      }
    },
    "size": {
      "enum": [
        "16:9",
        "9:16",
        "1:1",
        "4:3",
        "3:4"
      ],
      "type": "string",
      "title": "Aspect ratio",
      "default": "16:9",
      "description": "Only valid for text-to-video mode. 480p supports only 16:9, 9:16, and 1:1."
    },
    "audio": {
      "type": "boolean",
      "title": "Audio",
      "default": true,
      "description": "According to docs, this model only supports audio=true."
    },
    "prompt": {
      "type": "string",
      "title": "Prompt",
      "description": "Required for text-to-video, optional for image-to-video.",
      "x-playground": {
        "rows": 6,
        "widget": "textarea"
      }
    },
    "duration": {
      "enum": [
        5,
        10
      ],
      "type": "integer",
      "title": "Duration",
      "default": 5
    },
    "audio_url": {
      "type": "string",
      "title": "Audio URL",
      "description": "Optional custom wav/mp3 audio URL.",
      "x-playground": {
        "accept": "audio/*",
        "widget": "file-upload",
        "advanced": true,
        "uploadKind": "audio"
      }
    },
    "watermark": {
      "type": "boolean",
      "title": "Watermark",
      "default": false
    },
    "image_urls": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "Reference image",
      "maxItems": 1,
      "minItems": 1,
      "description": "Optional single first-frame image URL or base64 data URI. When provided, the model switches to image-to-video mode.",
      "x-playground": {
        "accept": "image/*",
        "widget": "file-upload",
        "advanced": true,
        "uploadKind": "image"
      }
    },
    "resolution": {
      "enum": [
        "480p",
        "720p",
        "1080p"
      ],
      "type": "string",
      "title": "Resolution",
      "default": "720p"
    },
    "prompt_extend": {
      "type": "boolean",
      "title": "Prompt extend",
      "default": true
    },
    "negative_prompt": {
      "type": "string",
      "title": "Negative prompt",
      "maxLength": 500,
      "x-playground": {
        "rows": 3,
        "widget": "textarea",
        "advanced": true
      }
    }
  },
  "additionalProperties": false
}

Output example

{
  "request_id": "req_demo_model",
  "task_id": "task_demo_model",
  "status": "succeeded",
  "cost_estimate": 0.3735,
  "cost_actual": 0.3735,
  "output": {
    "videos": [
      {
        "url": "https://example.com/output/demo.mp4"
      }
    ]
  }
}