Domestic Video Model Generation
curl --request POST \
--url https://octopusx.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"seconds": {},
"duration": 123,
"size": "<string>",
"image": "<string>",
"images": [
"<string>"
],
"input_reference": [
"<string>"
],
"metadata": {}
}
'import requests
url = "https://octopusx.ai/v1/videos"
payload = {
"model": "<string>",
"prompt": "<string>",
"seconds": {},
"duration": 123,
"size": "<string>",
"image": "<string>",
"images": ["<string>"],
"input_reference": ["<string>"],
"metadata": {}
}
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({
model: '<string>',
prompt: '<string>',
seconds: {},
duration: 123,
size: '<string>',
image: '<string>',
images: ['<string>'],
input_reference: ['<string>'],
metadata: {}
})
};
fetch('https://octopusx.ai/v1/videos', 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",
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([
'model' => '<string>',
'prompt' => '<string>',
'seconds' => [
],
'duration' => 123,
'size' => '<string>',
'image' => '<string>',
'images' => [
'<string>'
],
'input_reference' => [
'<string>'
],
'metadata' => [
]
]),
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"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"seconds\": {},\n \"duration\": 123,\n \"size\": \"<string>\",\n \"image\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"input_reference\": [\n \"<string>\"\n ],\n \"metadata\": {}\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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"seconds\": {},\n \"duration\": 123,\n \"size\": \"<string>\",\n \"image\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"input_reference\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://octopusx.ai/v1/videos")
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 \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"seconds\": {},\n \"duration\": 123,\n \"size\": \"<string>\",\n \"image\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"input_reference\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_bodyDomestic Video Model Generation
Submit domestic video tasks using POST /v1/videos.
POST
https://octopusx.ai
/
v1
/
videos
Domestic Video Model Generation
curl --request POST \
--url https://octopusx.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"seconds": {},
"duration": 123,
"size": "<string>",
"image": "<string>",
"images": [
"<string>"
],
"input_reference": [
"<string>"
],
"metadata": {}
}
'import requests
url = "https://octopusx.ai/v1/videos"
payload = {
"model": "<string>",
"prompt": "<string>",
"seconds": {},
"duration": 123,
"size": "<string>",
"image": "<string>",
"images": ["<string>"],
"input_reference": ["<string>"],
"metadata": {}
}
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({
model: '<string>',
prompt: '<string>',
seconds: {},
duration: 123,
size: '<string>',
image: '<string>',
images: ['<string>'],
input_reference: ['<string>'],
metadata: {}
})
};
fetch('https://octopusx.ai/v1/videos', 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",
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([
'model' => '<string>',
'prompt' => '<string>',
'seconds' => [
],
'duration' => 123,
'size' => '<string>',
'image' => '<string>',
'images' => [
'<string>'
],
'input_reference' => [
'<string>'
],
'metadata' => [
]
]),
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"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"seconds\": {},\n \"duration\": 123,\n \"size\": \"<string>\",\n \"image\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"input_reference\": [\n \"<string>\"\n ],\n \"metadata\": {}\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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"seconds\": {},\n \"duration\": 123,\n \"size\": \"<string>\",\n \"image\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"input_reference\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://octopusx.ai/v1/videos")
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 \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"seconds\": {},\n \"duration\": 123,\n \"size\": \"<string>\",\n \"image\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"input_reference\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_bodyDomestic Video Model Generation
Method and Path
POST /v1/videos
Request Example
curl -X POST https://octopusx.ai/v1/videos \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Kling-3.0-Omni",
"prompt": "The camera circles around the building and uses a Hitchcock zoom",
"seconds": "15",
"size": "720x1280",
"metadata": {
"scene_type": "motion_control",
"motion_level": "pro",
"file_infos": [
{
"type": "Url",
"category": "Video",
"url": "https://example.com/motion-ref.mp4"
}
],
"output_config": {
"duration": 15,
"resolution": "720P",
"aspect_ratio": "9:16",
"audio_generation": "Enabled"
}
}
}'
Fields
Model name. You can pass either a base model directly or a bundled billing model.
Prompt.
Duration. The top-level
seconds has the highest priority.Duration compatibility field.
Quick size field, such as
720x1280 or 1280x720.Single reference image or first-frame image.
Multiple reference images.
Reference image input, compatible with URL, base64, data URI, and file upload.
Extended parameters. Commonly used
metadata.output_config, scene_type, motion_level, offpeak, video_url, file_infos, ext_info.Scenarios
| Scenario | Key Fields |
|---|---|
| Text-to-video | prompt + seconds |
| Image-to-video | image / images / input_reference |
| First and last frame | image + metadata.last_frame_url |
| Motion control | metadata.scene_type=motion_control + video reference |
| Digital human | metadata.scene_type=avatar_i2v |
| Lip sync | metadata.scene_type=lip_sync |
| Template effects | metadata.scene_type=template_effect |
Rules
seconds/durationcan be placed at the top level or inmetadata- The top-level duration has the highest priority
scene_type=motion_controlmust provide a video referencescene_type=lip_syncis counted as 5 seconds if it is less than 5 secondsFileInfoscan contain up to 3 items
metadata.output_config
Common fields:
resolutionaspect_ratioaudio_generationdurationperson_generationinput_compliance_checkoutput_compliance_checkenhance_switchframe_interpolatelogo_add
Related Pages
⌘I