Skip to main content
POST
/
v1
/
generation
/
video-extend
Submit Video Extend Task
curl --request POST \
  --url https://api.weryai.com/v1/generation/video-extend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "video_url": "https://example.com/video.mp4",
  "prompt": "a calm ocean scene",
  "style": "anime",
  "resolution": "720p",
  "duration": 5
}
'
{
  "status": 0,
  "desc": "success",
  "message": "success",
  "data": {
    "batch_id": 123456789,
    "task_ids": [
      "task_abc123"
    ]
  }
}

Authorizations

Authorization
string
header
required

Authenticate using Bearer token. Get your API Key from the WeryAI Console.

Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx

Body

application/json
video_url
string
required

Source video URL

Example:

"https://example.com/video.mp4"

prompt
string
required

Text prompt describing how to extend the video

Example:

"a calm ocean scene"

style
enum<string>

Video style for the extended segment

Available options:
anime,
3d_animation,
cyberpunk,
comic
Example:

"anime"

resolution
enum<string>
default:720p

Output resolution

Available options:
360p,
540p,
720p,
1080p
Example:

"720p"

duration
enum<integer>
default:5

Extension duration in seconds

Available options:
5,
8
Example:

5

Response

Task submitted successfully

status
integer

Business status code (0 indicates success)

Example:

0

desc
string

Status description

Example:

"success"

message
string

Multi-language message

Example:

"success"

data
object