Skip to content

Task: Image-to-Video

Overview

  • Method: POST
  • Path: /task/vidu/img2video
  • Content-Type: application/json
  • Tags: Video Models (Video) / Vidu Video

Authentication

  • Header: Authorization: Bearer <token>

Request Parameters

ParameterTypeRequiredDescription
modelstringYesModel name: vidu2.0 / vidu1.5 / vidu1.0
imagesarray[string]YesFirst-frame image, 1 item, URL or Base64, formats png/jpeg/jpg/webp, aspect ratio 1:4 or 4:1, <=50MB
promptstringNoText prompt, up to 1500 characters
durationintegerYesVideo duration in seconds
seedintegerNoRandom seed, 0 or omit for random
resolutionstringYes360p / 720p / 1080p (vidu1.0 only supports 360p)
movement_amplitudestringNoauto / small / medium / large
callback_urlstringNoCallback URL (POST), status values: processing/success/failed

Example Request

bash
curl -X POST "https://api.gpt.ge/task/vidu/img2video" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxx" \
  -d '{
    "model":"vidu2.0",
    "images":["https://p1-kling.klingai.com/bs2/upload...png"],
    "prompt":"A classical beauty...",
    "duration":4,
    "resolution":"720p",
    "movement_amplitude":"medium"
  }'

Success Response Example (200)

json
{
  "task_id":"809387572068364288",
  "type":"img2video",
  "state":"created",
  "model":"vidu2.0",
  "style":"general",
  "prompt":"A classical beauty, ...",
  "images":["https://p1-kling.klingai.com/bs2/upload...png"],
  "duration":4,
  "seed":66,
  "aspect_ratio":"16:9",
  "resolution":"720p",
  "movement_amplitude":"auto",
  "created_at":"2025-04-14T15:29:10.002012956Z"
}