curl --request POST \
--url https://api.comfy.org/proxy/vidu/img2video \
--header 'Content-Type: application/json' \
--data '
{
"aspect_ratio": "<string>",
"audio": true,
"bgm": true,
"callback_url": "<string>",
"duration": 123,
"enhance": true,
"images": [
"<string>"
],
"is_rec": true,
"meta_data": "<string>",
"model": "<string>",
"off_peak": true,
"payload": "<string>",
"priority": 123,
"prompt": "<string>",
"resolution": "<string>",
"seed": 123,
"voice_id": "<string>",
"watermark": true,
"wm_position": 123,
"wm_url": "<string>"
}
'import requests
url = "https://api.comfy.org/proxy/vidu/img2video"
payload = {
"aspect_ratio": "<string>",
"audio": True,
"bgm": True,
"callback_url": "<string>",
"duration": 123,
"enhance": True,
"images": ["<string>"],
"is_rec": True,
"meta_data": "<string>",
"model": "<string>",
"off_peak": True,
"payload": "<string>",
"priority": 123,
"prompt": "<string>",
"resolution": "<string>",
"seed": 123,
"voice_id": "<string>",
"watermark": True,
"wm_position": 123,
"wm_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({
aspect_ratio: '<string>',
audio: true,
bgm: true,
callback_url: '<string>',
duration: 123,
enhance: true,
images: ['<string>'],
is_rec: true,
meta_data: '<string>',
model: '<string>',
off_peak: true,
payload: '<string>',
priority: 123,
prompt: '<string>',
resolution: '<string>',
seed: 123,
voice_id: '<string>',
watermark: true,
wm_position: 123,
wm_url: '<string>'
})
};
fetch('https://api.comfy.org/proxy/vidu/img2video', 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/img2video",
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([
'aspect_ratio' => '<string>',
'audio' => true,
'bgm' => true,
'callback_url' => '<string>',
'duration' => 123,
'enhance' => true,
'images' => [
'<string>'
],
'is_rec' => true,
'meta_data' => '<string>',
'model' => '<string>',
'off_peak' => true,
'payload' => '<string>',
'priority' => 123,
'prompt' => '<string>',
'resolution' => '<string>',
'seed' => 123,
'voice_id' => '<string>',
'watermark' => true,
'wm_position' => 123,
'wm_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/img2video"
payload := strings.NewReader("{\n \"aspect_ratio\": \"<string>\",\n \"audio\": true,\n \"bgm\": true,\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"enhance\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"meta_data\": \"<string>\",\n \"model\": \"<string>\",\n \"off_peak\": true,\n \"payload\": \"<string>\",\n \"priority\": 123,\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"seed\": 123,\n \"voice_id\": \"<string>\",\n \"watermark\": true,\n \"wm_position\": 123,\n \"wm_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/img2video")
.header("Content-Type", "application/json")
.body("{\n \"aspect_ratio\": \"<string>\",\n \"audio\": true,\n \"bgm\": true,\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"enhance\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"meta_data\": \"<string>\",\n \"model\": \"<string>\",\n \"off_peak\": true,\n \"payload\": \"<string>\",\n \"priority\": 123,\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"seed\": 123,\n \"voice_id\": \"<string>\",\n \"watermark\": true,\n \"wm_position\": 123,\n \"wm_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.comfy.org/proxy/vidu/img2video")
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 \"aspect_ratio\": \"<string>\",\n \"audio\": true,\n \"bgm\": true,\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"enhance\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"meta_data\": \"<string>\",\n \"model\": \"<string>\",\n \"off_peak\": true,\n \"payload\": \"<string>\",\n \"priority\": 123,\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"seed\": 123,\n \"voice_id\": \"<string>\",\n \"watermark\": true,\n \"wm_position\": 123,\n \"wm_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"credits": 123,
"task_id": "<string>",
"aspect_ratio": "<string>",
"bgm": true,
"created_at": "2023-11-07T05:31:56Z",
"duration": 123,
"images": [
"<string>"
],
"model": "<string>",
"off_peak": true,
"payload": "<string>",
"prompt": "<string>",
"resolution": "<string>",
"seed": 123,
"watermark": true
}{
"details": [
"<string>"
],
"message": "<string>"
}{
"details": [
"<string>"
],
"message": "<string>"
}Post proxyviduimg2video
curl --request POST \
--url https://api.comfy.org/proxy/vidu/img2video \
--header 'Content-Type: application/json' \
--data '
{
"aspect_ratio": "<string>",
"audio": true,
"bgm": true,
"callback_url": "<string>",
"duration": 123,
"enhance": true,
"images": [
"<string>"
],
"is_rec": true,
"meta_data": "<string>",
"model": "<string>",
"off_peak": true,
"payload": "<string>",
"priority": 123,
"prompt": "<string>",
"resolution": "<string>",
"seed": 123,
"voice_id": "<string>",
"watermark": true,
"wm_position": 123,
"wm_url": "<string>"
}
'import requests
url = "https://api.comfy.org/proxy/vidu/img2video"
payload = {
"aspect_ratio": "<string>",
"audio": True,
"bgm": True,
"callback_url": "<string>",
"duration": 123,
"enhance": True,
"images": ["<string>"],
"is_rec": True,
"meta_data": "<string>",
"model": "<string>",
"off_peak": True,
"payload": "<string>",
"priority": 123,
"prompt": "<string>",
"resolution": "<string>",
"seed": 123,
"voice_id": "<string>",
"watermark": True,
"wm_position": 123,
"wm_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({
aspect_ratio: '<string>',
audio: true,
bgm: true,
callback_url: '<string>',
duration: 123,
enhance: true,
images: ['<string>'],
is_rec: true,
meta_data: '<string>',
model: '<string>',
off_peak: true,
payload: '<string>',
priority: 123,
prompt: '<string>',
resolution: '<string>',
seed: 123,
voice_id: '<string>',
watermark: true,
wm_position: 123,
wm_url: '<string>'
})
};
fetch('https://api.comfy.org/proxy/vidu/img2video', 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/img2video",
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([
'aspect_ratio' => '<string>',
'audio' => true,
'bgm' => true,
'callback_url' => '<string>',
'duration' => 123,
'enhance' => true,
'images' => [
'<string>'
],
'is_rec' => true,
'meta_data' => '<string>',
'model' => '<string>',
'off_peak' => true,
'payload' => '<string>',
'priority' => 123,
'prompt' => '<string>',
'resolution' => '<string>',
'seed' => 123,
'voice_id' => '<string>',
'watermark' => true,
'wm_position' => 123,
'wm_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/img2video"
payload := strings.NewReader("{\n \"aspect_ratio\": \"<string>\",\n \"audio\": true,\n \"bgm\": true,\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"enhance\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"meta_data\": \"<string>\",\n \"model\": \"<string>\",\n \"off_peak\": true,\n \"payload\": \"<string>\",\n \"priority\": 123,\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"seed\": 123,\n \"voice_id\": \"<string>\",\n \"watermark\": true,\n \"wm_position\": 123,\n \"wm_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/img2video")
.header("Content-Type", "application/json")
.body("{\n \"aspect_ratio\": \"<string>\",\n \"audio\": true,\n \"bgm\": true,\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"enhance\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"meta_data\": \"<string>\",\n \"model\": \"<string>\",\n \"off_peak\": true,\n \"payload\": \"<string>\",\n \"priority\": 123,\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"seed\": 123,\n \"voice_id\": \"<string>\",\n \"watermark\": true,\n \"wm_position\": 123,\n \"wm_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.comfy.org/proxy/vidu/img2video")
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 \"aspect_ratio\": \"<string>\",\n \"audio\": true,\n \"bgm\": true,\n \"callback_url\": \"<string>\",\n \"duration\": 123,\n \"enhance\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"meta_data\": \"<string>\",\n \"model\": \"<string>\",\n \"off_peak\": true,\n \"payload\": \"<string>\",\n \"priority\": 123,\n \"prompt\": \"<string>\",\n \"resolution\": \"<string>\",\n \"seed\": 123,\n \"voice_id\": \"<string>\",\n \"watermark\": true,\n \"wm_position\": 123,\n \"wm_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"credits": 123,
"task_id": "<string>",
"aspect_ratio": "<string>",
"bgm": true,
"created_at": "2023-11-07T05:31:56Z",
"duration": 123,
"images": [
"<string>"
],
"model": "<string>",
"off_peak": true,
"payload": "<string>",
"prompt": "<string>",
"resolution": "<string>",
"seed": 123,
"watermark": true
}{
"details": [
"<string>"
],
"message": "<string>"
}{
"details": [
"<string>"
],
"message": "<string>"
}Body
직접 오디오-비디오 생성 기능 활성화 (q3 모델의 기본값은 참)
오디오가 참일 때 오디오 유형: all (음향 효과 + 보컬), speech_only, sound_effect_only. q3 모델에는 효과 없음
all, speech_only, sound_effect_only 생성된 비디오에 배경 음악 추가 (q3 모델에는 효과 없음)
작업 상태 업데이트를 위한 콜백 URL
비디오 지속 시간(초). viduq3-pro: 1-16, viduq2-pro-fast: 1-10, viduq2-pro/turbo: 1-8
img2video용 이미지 (시작 프레임으로 1개 이미지 허용)
권장 프롬프트 사용 (추가 10 크레딧 소모)
메타데이터 식별, 사용자 정의 메타데이터를 위한 JSON 형식 문자열
모델 이름: viduq3-pro, viduq2-pro-fast, viduq2-pro, viduq2-turbo, viduq1, viduq1-classic, vidu2.0
프레임 내 객체의 이동 진폭 (q2, q3 모델에는 효과 없음)
auto, small, medium, large 오프 피크 모드 (저렴한 비용, 48시간 내 작업 생성)
투명 전송 파라미터 (최대 1048576자)
비디오 생성을 위한 텍스트 프롬프트 (최대 2000자)
해상도: 360p, 540p, 720p, 1080p, 2K (사용 가능 여부는 모델 및 기간에 따라 다름)
랜덤 시드 (지정하지 않으면 랜덤 기본값)
general, anime 오디오용 음성 ID (q3 모델에는 효과 없음)
비디오에 워터마크 추가 (기본값 거짓)
워터마크 위치: 1 (좌측 상단), 2 (우측 상단), 3 (우측 하단, 기본값), 4 (좌측 하단)
워터마크 이미지 URL (제공되지 않으면 기본 워터마크 사용)
Response
성공
created, processing, queueing, success, failed 배경 음악 추가 여부
auto, small, medium, large 비수 모드 상태
투명 전송 파라미터
general, anime 워터마크 추가 여부
Was this page helpful?