查询视频详情
curl --request GET \
--url https://api.maxapi.ai/v1/videos/{id} \
--header 'Content-Type: multipart/form-data' \
--form 'model=veo3,veo3-pro,veo3.1' \
--form 'prompt=画面动起来' \
--form input_reference='@example-file'import requests
url = "https://api.maxapi.ai/v1/videos/{id}"
files = { "input_reference": ("example-file", open("example-file", "rb")) }
payload = {
"model": "veo3,veo3-pro,veo3.1",
"prompt": "画面动起来"
}
response = requests.get(url, data=payload, files=files)
print(response.text)const form = new FormData();
form.append('model', 'veo3,veo3-pro,veo3.1');
form.append('prompt', '画面动起来');
form.append('input_reference', '{
"fileName": "example-file"
}');
const options = {method: 'GET'};
options.body = form;
fetch('https://api.maxapi.ai/v1/videos/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/v1/videos/{id}"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\nveo3,veo3-pro,veo3.1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n画面动起来\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_reference\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("GET", url, payload)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maxapi.ai/v1/videos/{id}")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\nveo3,veo3-pro,veo3.1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n画面动起来\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_reference\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();{
"id": "video_a4d01f08-7806-475c-b735-4e5d8239aa33",
"object": "video",
"model": "sora-2",
"status": "queued",
"progress": null,
"created_at": 1760856798,
"completed_at": null,
"expires_at": null,
"size": "720x720",
"seconds": null,
"remixed_from_video_id": "video_e26591dd-7f89-410e-94ac-622d2007c206",
"error": null
}GET
https://api.maxapi.ai
/
v1
/
videos
/
{id}
查询视频详情
curl --request GET \
--url https://api.maxapi.ai/v1/videos/{id} \
--header 'Content-Type: multipart/form-data' \
--form 'model=veo3,veo3-pro,veo3.1' \
--form 'prompt=画面动起来' \
--form input_reference='@example-file'import requests
url = "https://api.maxapi.ai/v1/videos/{id}"
files = { "input_reference": ("example-file", open("example-file", "rb")) }
payload = {
"model": "veo3,veo3-pro,veo3.1",
"prompt": "画面动起来"
}
response = requests.get(url, data=payload, files=files)
print(response.text)const form = new FormData();
form.append('model', 'veo3,veo3-pro,veo3.1');
form.append('prompt', '画面动起来');
form.append('input_reference', '{
"fileName": "example-file"
}');
const options = {method: 'GET'};
options.body = form;
fetch('https://api.maxapi.ai/v1/videos/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/v1/videos/{id}"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\nveo3,veo3-pro,veo3.1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n画面动起来\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_reference\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("GET", url, payload)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maxapi.ai/v1/videos/{id}")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"model\"\r\n\r\nveo3,veo3-pro,veo3.1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n画面动起来\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_reference\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();{
"id": "video_a4d01f08-7806-475c-b735-4e5d8239aa33",
"object": "video",
"model": "sora-2",
"status": "queued",
"progress": null,
"created_at": 1760856798,
"completed_at": null,
"expires_at": null,
"size": "720x720",
"seconds": null,
"remixed_from_video_id": "video_e26591dd-7f89-410e-94ac-622d2007c206",
"error": null
}路径参数
请求体
multipart/form-data
示例:
"veo3,veo3-pro,veo3.1"
示例:
"画面动起来"
示例:
"10"
["file:///Users/Downloads/RHTtTcBrlY5wGxop9ux8DqRckyIKxd.png","file:///Users/Downloads/ee98a7ba980b3f48ae52f3af65179a.webp"]
宽x高,会忽略具体数据 宽>高 为横屏,宽<高为竖屏
示例:
"9x16"
是否需要水印,不传默认无水印
示例:
"false"
示例:
"true"
响应
200 - application/json
返回视频任务详情。
任务id
模型名
任务状态
任务进度
角色名
角色头像
视频
创建时间
完成时间
过期时间
分辨率
时长
remix的视频id
错误信息