Pixverse C1 Referenzbild-zu-Video
curl --request POST \
--url https://api.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"images": [
{
"type": "<string>",
"ref_name": "<string>",
"image_url": "<string>"
}
],
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"aspect_ratio": "<string>",
"generate_audio_switch": true
}
'import requests
url = "https://api.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video"
payload = {
"images": [
{
"type": "<string>",
"ref_name": "<string>",
"image_url": "<string>"
}
],
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"aspect_ratio": "<string>",
"generate_audio_switch": True
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
images: [{type: '<string>', ref_name: '<string>', image_url: '<string>'}],
prompt: '<string>',
duration: 123,
resolution: '<string>',
aspect_ratio: '<string>',
generate_audio_switch: true
})
};
fetch('https://api.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video', 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.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video",
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([
'images' => [
[
'type' => '<string>',
'ref_name' => '<string>',
'image_url' => '<string>'
]
],
'prompt' => '<string>',
'duration' => 123,
'resolution' => '<string>',
'aspect_ratio' => '<string>',
'generate_audio_switch' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video"
payload := strings.NewReader("{\n \"images\": [\n {\n \"type\": \"<string>\",\n \"ref_name\": \"<string>\",\n \"image_url\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"generate_audio_switch\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
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.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"images\": [\n {\n \"type\": \"<string>\",\n \"ref_name\": \"<string>\",\n \"image_url\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"generate_audio_switch\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"images\": [\n {\n \"type\": \"<string>\",\n \"ref_name\": \"<string>\",\n \"image_url\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"generate_audio_switch\": true\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Video
Pixverse C1 Referenzbild-zu-Video
POST
/
v3
/
async
/
pixverse-pixverse-c1-reference-to-video
Pixverse C1 Referenzbild-zu-Video
curl --request POST \
--url https://api.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"images": [
{
"type": "<string>",
"ref_name": "<string>",
"image_url": "<string>"
}
],
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"aspect_ratio": "<string>",
"generate_audio_switch": true
}
'import requests
url = "https://api.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video"
payload = {
"images": [
{
"type": "<string>",
"ref_name": "<string>",
"image_url": "<string>"
}
],
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"aspect_ratio": "<string>",
"generate_audio_switch": True
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
images: [{type: '<string>', ref_name: '<string>', image_url: '<string>'}],
prompt: '<string>',
duration: 123,
resolution: '<string>',
aspect_ratio: '<string>',
generate_audio_switch: true
})
};
fetch('https://api.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video', 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.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video",
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([
'images' => [
[
'type' => '<string>',
'ref_name' => '<string>',
'image_url' => '<string>'
]
],
'prompt' => '<string>',
'duration' => 123,
'resolution' => '<string>',
'aspect_ratio' => '<string>',
'generate_audio_switch' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video"
payload := strings.NewReader("{\n \"images\": [\n {\n \"type\": \"<string>\",\n \"ref_name\": \"<string>\",\n \"image_url\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"generate_audio_switch\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
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.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"images\": [\n {\n \"type\": \"<string>\",\n \"ref_name\": \"<string>\",\n \"image_url\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"generate_audio_switch\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/pixverse-pixverse-c1-reference-to-video")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"images\": [\n {\n \"type\": \"<string>\",\n \"ref_name\": \"<string>\",\n \"image_url\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"generate_audio_switch\": true\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Das Pixverse C1 Referenzbild-zu-Video-Tool kann auf Basis von 1–7 Referenzbildern kinoreife Videos generieren. Referenzbilder werden im Prompt über die @ref_name-Syntax referenziert. Unterstützt werden Konsistenz für mehrere Charaktere/Objekte, mehrere Auflösungen (360p–1080p), variable Dauer (1–15 Sekunden) sowie Audiogenerierung.
Dies ist eine asynchrone API, die nur die task_id der asynchronen Aufgabe zurückgibt. Verwenden Sie diese task_id, um über die API zum Abfragen von Aufgabenergebnissen das generierte Ergebnis abzurufen.
Anfrageheader
string
erforderlich
Enum-Wert:
application/jsonstring
erforderlich
Bearer-Authentifizierungsformat: Bearer {{API Key}}.
Anfragetext
object[]
erforderlich
Liste der Referenzbilder (1–7 Bilder)Array-Länge: 1 - 7
Ausblenden properties
Ausblenden properties
string
erforderlich
Typ des Referenzbilds: subject bedeutet, dass die Person/das Objekt im Referenzbild als Hauptmotiv für die Videogenerierung verwendet wird; background bedeutet, dass die Szene/Umgebung im Referenzbild als Hintergrund für die Videogenerierung verwendet wirdOptionale Werte:
subject, backgroundstring
erforderlich
Kurzer Bezeichnername des Referenzbilds, der im prompt über die @ref_name-Syntax verwendet wird, um dieses Referenzbild zu referenzieren; auf @ref_name muss ein Leerzeichen folgen
string
erforderlich
URL-Adresse des Referenzbilds
string
erforderlich
Szenenbeschreibungstext, der hochgeladene Referenzbilder über die @ref_name-Syntax referenziert (z. B. „@hero läuft in @city “); auf @ref_name muss ein Leerzeichen folgen, und der Referenzname muss mit dem ref_name in images übereinstimmen
integer
Standard:5
Dauer des generierten Videos (Sekunden), Bereich 1–15Wertebereich: [1, 15]
string
Standard:"720p"
Auflösung des AusgabevideosOptionale Werte:
360p, 540p, 720p, 1080pstring
Standard:"16:9"
Seitenverhältnis des AusgabevideosOptionale Werte:
16:9, 4:3, 1:1, 3:4, 9:16, 2:3, 3:2, 21:9boolean
Standard:false
Ob gleichzeitig natives Videoaudio generiert werden soll
Antwortinformationen
string
erforderlich
Verwenden Sie die task_id, um über die API zum Abfragen von Aufgabenergebnissen die generierte Ausgabe abzurufen.
⌘I