Pixverse V6 API
Vollständige API-Referenz für Pixverse V6 Videoerzeugungsmodelle. Alle Varianten verwenden den einheitlichen Video-Task-Endpunkt.
Modellvarianten
Schnellvergleich
Text-to-video-Modelle unterstützen die Seitenverhältnisse: 21:9, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3.
Pixverse V6 Text to Video
Endpunkt
POST /api/v1/video/task
Request-Parameter
Erforderlich
Optional
Beispiel-Request
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model_name: 'pixverse-v6-text-to-video',
prompt: 'A cinematic street scene at night with neon reflections',
duration: 8,
resolution: '1080p',
aspect_ratio: '16:9',
sound: true,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
Pixverse V6 Image to Video
Request-Parameter
Erforderlich
Optional
Beispiel-Request
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model_name: 'pixverse-v6-image-to-video',
prompt: 'Fluid camera pan; maintain subject identity',
duration: 6,
resolution: '720p',
image_url: 'https://example.com/first-frame.jpg',
sound: true,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
Pixverse V6 Transition
Erzeugt Bewegung zwischen einem ersten und letzten Keyframe-Bild. Unterstützt optionales negative prompting und seeding.
Request-Parameter
Erforderlich
Optional
Beispiel-Request
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model_name: 'pixverse-v6-transition',
prompt: 'Seamless blend with natural lighting continuity',
duration: 6,
resolution: '720p',
image_url: 'https://example.com/start.jpg',
image_end_url: 'https://example.com/end.jpg',
sound: true,
negative_prompt: 'blur, watermark, text overlay',
seed: 0,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
Pixverse V6 Extend
Setzt einen vorhandenen Clip fort. Gib die Quellvideo-URL und einen Prompt an, der beschreibt, wie die Geschichte weitergehen soll.
Request-Parameter
Erforderlich
Optional
Beispiel-Request
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model_name: 'pixverse-v6-extend',
prompt: 'Continue the walk into the forest clearing',
duration: 5,
resolution: '720p',
video_url: 'https://example.com/source-clip.mp4',
sound: false,
negative_prompt: 'low quality, jitter',
seed: 0,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
Initial Response
{
"code": 0,
"message": "success",
"data": {
"task_id": "{task_id}",
"response_url": "https://api.flaq.ai/api/v1/video/{task_id}",
"task_status": "submitted"
}
}
Polling Response
Frage GET /api/v1/video/{taskId} ab, um den Status zu prüfen:
{
"code": 0,
"message": "success",
"data": {
"task_id": "{task_id}",
"response_url": "https://api.flaq.ai/api/v1/video/{task_id}",
"task_status": "succeed",
"task_status_msg": null,
"task_result": {
"videos": [
{
"url": "https://example.com/generated-video.mp4"
}
]
}
}
}
Statuswerte
submitted: Task angenommen und wartet auf Verarbeitung
processing: Videoerzeugung läuft
succeed: Videoerzeugung abgeschlossen
failed: Videoerzeugung fehlgeschlagen
Best Practices
- Extend: Verwende ein sauberes, stabiles Quellvideo, damit das Modell Bewegung ohne Artefakte fortsetzen kann.
- Transition: Kombiniere
negative_prompt mit seed, wenn du wiederholbare Transition-Tests brauchst.
- Resolution: Passe
resolution an dein Auslieferungsziel an; höhere Auflösungen brauchen länger.
- Polling: Frage alle 5–10 Sekunden ab, bis
task_status succeed oder failed ist.