cURL
curl --request POST \
--url https://api.comfy.org/proxy/vidu/extend \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"callback_url": "<string>",
"duration": 123,
"images": [
"<string>"
],
"payload": "<string>",
"prompt": "<string>",
"resolution": "<string>",
"video_creation_id": "<string>",
"video_url": "<string>"
}
'import requests
url = "https://api.comfy.org/proxy/vidu/extend"
payload = {
"model": "<string>",
"callback_url": "<string>",
"duration": 123,
"images": ["<string>"],
"payload": "<string>",
"prompt": "<string>",
"resolution": "<string>",
"video_creation_id": "<string>",
"video_url": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
callback_url: '<string>',
duration: 123,
images: ['<string>'],
payload: '<string>',
prompt: '<string>',
resolution: '<string>',
video_creation_id: '<string>',
video_url: '<string>'
})
};
fetch('https://api.comfy.org/proxy/vidu/extend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.comfy.org/proxy/vidu/extend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => '<string>',
'callback_url' => '<string>',
'duration' => 123,
'images' => [
'<string>'
],
'payload' => '<string>',
'prompt' => '<string>',
'resolution' => '<string>',
'video_creation_id' => '<string>',
'video_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.comfy.org/proxy/vidu/extend"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"images\": [\n \"<string>\"\n ],\n \"payload\": \"<string>\",\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"video_creation_id\": \"<string>\",\n \"video_url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.comfy.org/proxy/vidu/extend")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"images\": [\n \"<string>\"\n ],\n \"payload\": \"<string>\",\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"video_creation_id\": \"<string>\",\n \"video_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.comfy.org/proxy/vidu/extend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"images\": [\n \"<string>\"\n ],\n \"payload\": \"<string>\",\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"video_creation_id\": \"<string>\",\n \"video_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"credits": 123,
"task_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"duration": 123,
"images": [
"<string>"
],
"model": "<string>",
"payload": "<string>",
"prompt": "<string>",
"resolution": "<string>",
"video_creation_id": "<string>",
"video_url": "<string>"
}{
"details": [
"<string>"
],
"message": "<string>"
}{
"details": [
"<string>"
],
"message": "<string>"
}API Nodes
Post proxyviduextend
POST
/
proxy
/
vidu
/
extend
cURL
curl --request POST \
--url https://api.comfy.org/proxy/vidu/extend \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"callback_url": "<string>",
"duration": 123,
"images": [
"<string>"
],
"payload": "<string>",
"prompt": "<string>",
"resolution": "<string>",
"video_creation_id": "<string>",
"video_url": "<string>"
}
'import requests
url = "https://api.comfy.org/proxy/vidu/extend"
payload = {
"model": "<string>",
"callback_url": "<string>",
"duration": 123,
"images": ["<string>"],
"payload": "<string>",
"prompt": "<string>",
"resolution": "<string>",
"video_creation_id": "<string>",
"video_url": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
callback_url: '<string>',
duration: 123,
images: ['<string>'],
payload: '<string>',
prompt: '<string>',
resolution: '<string>',
video_creation_id: '<string>',
video_url: '<string>'
})
};
fetch('https://api.comfy.org/proxy/vidu/extend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.comfy.org/proxy/vidu/extend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => '<string>',
'callback_url' => '<string>',
'duration' => 123,
'images' => [
'<string>'
],
'payload' => '<string>',
'prompt' => '<string>',
'resolution' => '<string>',
'video_creation_id' => '<string>',
'video_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.comfy.org/proxy/vidu/extend"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"images\": [\n \"<string>\"\n ],\n \"payload\": \"<string>\",\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"video_creation_id\": \"<string>\",\n \"video_url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.comfy.org/proxy/vidu/extend")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"images\": [\n \"<string>\"\n ],\n \"payload\": \"<string>\",\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"video_creation_id\": \"<string>\",\n \"video_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.comfy.org/proxy/vidu/extend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"images\": [\n \"<string>\"\n ],\n \"payload\": \"<string>\",\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"video_creation_id\": \"<string>\",\n \"video_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"credits": 123,
"task_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"duration": 123,
"images": [
"<string>"
],
"model": "<string>",
"payload": "<string>",
"prompt": "<string>",
"resolution": "<string>",
"video_creation_id": "<string>",
"video_url": "<string>"
}{
"details": [
"<string>"
],
"message": "<string>"
}{
"details": [
"<string>"
],
"message": "<string>"
}Body
application/json
Model name (viduq2-pro or viduq2-turbo)
Callback URL for task status updates
Extended duration in seconds (1-7, default 5)
Extended reference image to the end frame (only accepts 1 image)
Transparent transmission parameters (max 1048576 characters)
Text prompt for video generation (max 2000 characters)
Resolution (540p, 720p, 1080p)
Vidu video_creation_id, required with video_url
Any video URL, required with video_creation_id
Response
OK
Available options:
created, processing, queueing, success, failed Was this page helpful?
⌘I