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
| Parameter | Type | Required | Description |
|---|---|---|---|
| template | string | Yes | Template type, see table below |
| images | array[string] | Yes | Image URLs or Base64, supports multi-purpose templates |
| prompt | string | Yes | Text prompt (<=1500 characters) |
| seed | integer | No | Random seed, 0 or omit for random |
| aspect_ratio | string | No | Aspect ratio 16:9 / 9:16 (default 16:9) |
| area | string | No | Parameter for exotic_princess only |
| beast | string | No | Parameter for beast_companion only |
| callback_url | string | No | Result 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"
}