curl --request POST \
--url https://api.modellix.ai/api/v1/pixverse/v6-fl2v \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_frame_image": "https://example.com/start.png",
"last_frame_image": "https://example.com/end.png",
"prompt": "Smooth transition from day to night",
"duration": 5,
"quality": "720p"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_frame_image: 'https://example.com/start.png',
last_frame_image: 'https://example.com/end.png',
prompt: 'Smooth transition from day to night',
duration: 5,
quality: '720p'
})
};
fetch('https://api.modellix.ai/api/v1/pixverse/v6-fl2v', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/pixverse/v6-fl2v"
payload = {
"first_frame_image": "https://example.com/start.png",
"last_frame_image": "https://example.com/end.png",
"prompt": "Smooth transition from day to night",
"duration": 5,
"quality": "720p"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.modellix.ai/api/v1/pixverse/v6-fl2v"
payload := strings.NewReader("{\n \"first_frame_image\": \"https://example.com/start.png\",\n \"last_frame_image\": \"https://example.com/end.png\",\n \"prompt\": \"Smooth transition from day to night\",\n \"duration\": 5,\n \"quality\": \"720p\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.modellix.ai/api/v1/pixverse/v6-fl2v")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"first_frame_image\": \"https://example.com/start.png\",\n \"last_frame_image\": \"https://example.com/end.png\",\n \"prompt\": \"Smooth transition from day to night\",\n \"duration\": 5,\n \"quality\": \"720p\"\n}")
.asString();const url = 'https://api.modellix.ai/api/v1/pixverse/v6-fl2v';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_frame_image: 'https://example.com/start.png',
last_frame_image: 'https://example.com/end.png',
prompt: 'Smooth transition from day to night',
duration: 5,
quality: '720p'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.modellix.ai/api/v1/pixverse/v6-fl2v",
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([
'first_frame_image' => 'https://example.com/start.png',
'last_frame_image' => 'https://example.com/end.png',
'prompt' => 'Smooth transition from day to night',
'duration' => 5,
'quality' => '720p'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.modellix.ai/api/v1/pixverse/v6-fl2v")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"first_frame_image\": \"https://example.com/start.png\",\n \"last_frame_image\": \"https://example.com/end.png\",\n \"prompt\": \"Smooth transition from day to night\",\n \"duration\": 5,\n \"quality\": \"720p\"\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"first_frame_image": "https://example.com/start.png",
"last_frame_image": "https://example.com/end.png",
"prompt": "Smooth transition from day to night",
"duration": 5,
"quality": "720p"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.modellix.ai/api/v1/pixverse/v6-fl2v")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.modellix.ai/api/v1/pixverse/v6-fl2v' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"first_frame_image": "https://example.com/start.png",
"last_frame_image": "https://example.com/end.png",
"prompt": "Smooth transition from day to night",
"duration": 5,
"quality": "720p"
}'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-pixverse-fl2v-001",
"model_id": "pixverse/v6-fl2v",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-pixverse-fl2v-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'image' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}V6 FL2V
[Core Function] PixVerse v6 first-last-frame generates a video that transitions from a start frame to an end frame, guided by a prompt. [Strengths] Controlled start/end composition with smooth interpolation. [Best For] Morphs, scene transitions, before/after motion. [Limitations] Do NOT use this if you only have a single image (use Image-to-Video) or lack an end frame; it requires exactly two images (a first and a last frame) and supports up to 1080p and a maximum of 15s. [Routing] Use when the user provides a start image AND an end image. For one image use Image-to-Video. The v6 and c1 first-last-frame variants accept identical parameters; choose the version the user requests.
curl --request POST \
--url https://api.modellix.ai/api/v1/pixverse/v6-fl2v \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_frame_image": "https://example.com/start.png",
"last_frame_image": "https://example.com/end.png",
"prompt": "Smooth transition from day to night",
"duration": 5,
"quality": "720p"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_frame_image: 'https://example.com/start.png',
last_frame_image: 'https://example.com/end.png',
prompt: 'Smooth transition from day to night',
duration: 5,
quality: '720p'
})
};
fetch('https://api.modellix.ai/api/v1/pixverse/v6-fl2v', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/pixverse/v6-fl2v"
payload = {
"first_frame_image": "https://example.com/start.png",
"last_frame_image": "https://example.com/end.png",
"prompt": "Smooth transition from day to night",
"duration": 5,
"quality": "720p"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.modellix.ai/api/v1/pixverse/v6-fl2v"
payload := strings.NewReader("{\n \"first_frame_image\": \"https://example.com/start.png\",\n \"last_frame_image\": \"https://example.com/end.png\",\n \"prompt\": \"Smooth transition from day to night\",\n \"duration\": 5,\n \"quality\": \"720p\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.modellix.ai/api/v1/pixverse/v6-fl2v")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"first_frame_image\": \"https://example.com/start.png\",\n \"last_frame_image\": \"https://example.com/end.png\",\n \"prompt\": \"Smooth transition from day to night\",\n \"duration\": 5,\n \"quality\": \"720p\"\n}")
.asString();const url = 'https://api.modellix.ai/api/v1/pixverse/v6-fl2v';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_frame_image: 'https://example.com/start.png',
last_frame_image: 'https://example.com/end.png',
prompt: 'Smooth transition from day to night',
duration: 5,
quality: '720p'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.modellix.ai/api/v1/pixverse/v6-fl2v",
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([
'first_frame_image' => 'https://example.com/start.png',
'last_frame_image' => 'https://example.com/end.png',
'prompt' => 'Smooth transition from day to night',
'duration' => 5,
'quality' => '720p'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.modellix.ai/api/v1/pixverse/v6-fl2v")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"first_frame_image\": \"https://example.com/start.png\",\n \"last_frame_image\": \"https://example.com/end.png\",\n \"prompt\": \"Smooth transition from day to night\",\n \"duration\": 5,\n \"quality\": \"720p\"\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"first_frame_image": "https://example.com/start.png",
"last_frame_image": "https://example.com/end.png",
"prompt": "Smooth transition from day to night",
"duration": 5,
"quality": "720p"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.modellix.ai/api/v1/pixverse/v6-fl2v")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.modellix.ai/api/v1/pixverse/v6-fl2v' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"first_frame_image": "https://example.com/start.png",
"last_frame_image": "https://example.com/end.png",
"prompt": "Smooth transition from day to night",
"duration": 5,
"quality": "720p"
}'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-pixverse-fl2v-001",
"model_id": "pixverse/v6-fl2v",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-pixverse-fl2v-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'image' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
PixVerse first-last-frame request. Generates a video transitioning from a start frame to an end frame. Used by both v6 and c1 (the path determines the model version).
Start frame image URL.
1"https://example.com/start.png"
End frame image URL.
1"https://example.com/end.png"
Description of the transition / motion.
1 - 5000"Smooth transition from day to night"
Video duration in seconds (required).
1 <= x <= 155
Output resolution (required).
360p, 540p, 720p, 1080p "720p"
Random seed (omit for random).
0 <= x <= 21474836470
Whether to generate audio.
false