Skip to content

Task: Template Video (Recommended)

Overview

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

Authentication

  • Header: Authorization: Bearer <token>

Key Request Body Fields

ParameterTypeRequiredDescription
templatestringYesTemplate type, see table below
imagesarray[string]YesImage URLs or Base64, supports multi-purpose templates
promptstringYesText prompt (<=1500 characters)
seedintegerNoRandom seed, 0 or omit for random
aspect_ratiostringNoAspect ratio 16:9 / 9:16 (default 16:9)
areastringNoParameter for exotic_princess only
beaststringNoParameter for beast_companion only
callback_urlstringNoResult callback URL; see Callback Protocol for details

Template Notes

The original OpenAPI section retains the full template documentation. This page provides a brief overview.


Example Request

bash
curl -X POST "https://api.gpt.ge/task/vidu/template2video" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxx" \
  -d '{
    "template":"sexy_me",
    "images":["https://p1-kling.klingai.com/bs2/...png"],
    "prompt":"Transform into a pink bikini"
  }'

Success Response Example (200)

json
{
  "task_id":"809413373237157888",
  "state":"created",
  "template":"sexy_me",
  "prompt":"Transform into a pink bikini",
  "images":["https://p1-kling.klingai.com/bs2/...png"],
  "seed":0,
  "created_at":"2025-04-14T17:11:41.478717701Z"
}