Skip to main content
POST
/
api
/
generate
/
submit
curl --request POST \
  --url https://api.vidgo.ai/api/generate/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "wan2.6-text-to-video",
  "callback_url": "https://your-domain.com/callback",
  "input": {
    "prompt": "A cinematic time-lapse of a bustling city street transitioning from day to night.",
    "duration": 5,
    "resolution": "1080p",
    "multi_shots": false
  }
}
'
{
  "code": 200,
  "data": {
    "task_id": "task-unified-1757165031-uyujaw3d",
    "status": "not_started",
    "created_time": "2025-11-12T10:30:00"
  }
}
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the response result through the unified Query Task Status endpoint.

Wan 2.6 Video Generation

Wan 2.6 is Alibaba’s latest video generation model family. It supports text-to-video, image-to-video, and video-to-video workflows with stable character identity, multi-shot composition, and 1080p output.

Available Models

  • wan2.6-text-to-video - Generate videos from text prompts
  • wan2.6-image-to-video - Animate a reference image with a prompt
  • wan2.6-video-to-video - Edit or restyle an input video using a prompt

Key Features

  • Duration: 5, 10, or 15 seconds (video-to-video up to 10 seconds)
  • Resolution: 720p or 1080p
  • Multi-Shots: Toggle multi-shot composition for cinematic transitions
  • Prompt Length: Up to 5,000 characters

Authorizations

Authorization
string
header
required

All API endpoints require Bearer Token authentication

Get your API Key:

Visit the API Key Management Page to get your API Key

Add it to the request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
enum<string>
required

Wan 2.6 model identifier

Available options:
wan2.6-text-to-video,
wan2.6-image-to-video,
wan2.6-video-to-video
callback_url
string<uri>

Webhook callback URL for result notifications

Example:

"https://your-domain.com/callback"

input
object

Input parameters for generation

Response

200 - application/json

Task submitted successfully

code
integer
required

HTTP status code

Example:

200

data
object
required