视频remix
curl --request POST \
--url https://octopusx.ai/v1/videos/{video_id}/remix \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"model": "<string>"
}
'import requests
url = "https://octopusx.ai/v1/videos/{video_id}/remix"
payload = {
"prompt": "<string>",
"model": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>', model: '<string>'})
};
fetch('https://octopusx.ai/v1/videos/{video_id}/remix', 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://octopusx.ai/v1/videos/{video_id}/remix",
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([
'prompt' => '<string>',
'model' => '<string>'
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://octopusx.ai/v1/videos/{video_id}/remix"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"model\": \"<string>\"\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://octopusx.ai/v1/videos/{video_id}/remix")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"model\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://octopusx.ai/v1/videos/{video_id}/remix")
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 \"prompt\": \"<string>\",\n \"model\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "video_456",
"object": "video",
"model": "veo_3_1-extend",
"status": "queued",
"progress": 0,
"created_at": 1712698600,
"size": "720x1280",
"seconds": "8",
"remixed_from_video_id": "video_123",
"quality": ""
}
OpenAI 格式
视频remix
使用 POST /v1/videos/{video_id}/remix 基于已有 Veo 视频任务提交 remix 扩展。
POST
https://octopusx.ai
/
v1
/
videos
/
{video_id}
/
remix
视频remix
curl --request POST \
--url https://octopusx.ai/v1/videos/{video_id}/remix \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"model": "<string>"
}
'import requests
url = "https://octopusx.ai/v1/videos/{video_id}/remix"
payload = {
"prompt": "<string>",
"model": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>', model: '<string>'})
};
fetch('https://octopusx.ai/v1/videos/{video_id}/remix', 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://octopusx.ai/v1/videos/{video_id}/remix",
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([
'prompt' => '<string>',
'model' => '<string>'
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://octopusx.ai/v1/videos/{video_id}/remix"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"model\": \"<string>\"\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://octopusx.ai/v1/videos/{video_id}/remix")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"model\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://octopusx.ai/v1/videos/{video_id}/remix")
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 \"prompt\": \"<string>\",\n \"model\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "video_456",
"object": "video",
"model": "veo_3_1-extend",
"status": "queued",
"progress": 0,
"created_at": 1712698600,
"size": "720x1280",
"seconds": "8",
"remixed_from_video_id": "video_123",
"quality": ""
}
视频remix
在已完成或可用的 Veo 视频任务基础上,通过POST /v1/videos/{video_id}/remix 提交新的 remix 任务。对外仍返回 OpenAI 风格 video 对象。
- 路径参数
video_id为原视频任务 ID。 - 请求体需同时提供
prompt与model。 - Remix 常用模型示例为
veo_3_1-extend,以当前渠道实际可用模型为准。 - 新任务响应中的
remixed_from_video_id会指向源视频 ID。
方法与路径
POST /v1/videos/{video_id}/remix
请求示例
curl -X POST https://octopusx.ai/v1/videos/video_fafb00cb-5475-4882-8714-57df146c6dbe/remix \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"prompt": "牛飞到海里去了",
"model": "veo_3_1-extend"
}'
import requests
video_id = "video_fafb00cb-5475-4882-8714-57df146c6dbe"
resp = requests.post(
f"https://octopusx.ai/v1/videos/{video_id}/remix",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
"Accept": "application/json",
},
json={
"prompt": "牛飞到海里去了",
"model": "veo_3_1-extend",
},
timeout=60,
)
print(resp.json())
const videoId = "video_fafb00cb-5475-4882-8714-57df146c6dbe";
const response = await fetch(
`https://octopusx.ai/v1/videos/${videoId}/remix`,
{
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({
prompt: "牛飞到海里去了",
model: "veo_3_1-extend",
}),
}
);
console.log(await response.json());
响应示例
{
"id": "video_456",
"object": "video",
"model": "veo_3_1-extend",
"status": "queued",
"progress": 0,
"created_at": 1712698600,
"size": "720x1280",
"seconds": "8",
"remixed_from_video_id": "video_123",
"quality": ""
}
id。
认证
Authorization: Bearer YOUR_API_KEY
Path Parameters
Body
Remix 提示词,描述希望如何改写或延续原视频内容。
Remix 使用的模型名称,例如
veo_3_1-extend。Response
新 remix 任务 ID。
固定为
video。实际使用的 remix 模型。
任务状态,常见值包括
queued、processing、completed、failed。任务进度百分比。
创建时间(Unix 时间戳)。
输出尺寸。
输出时长(秒)。
源视频任务 ID,即请求路径中的
video_id。画质相关字段,部分响应可能返回空字符串。
相关接口
⌘I