AI 服务/视频生成
火山格式查询视频任务
接口说明:查询火山格式视频生成任务状态,返回结构保持火山任务查询格式。参考火山官方文档:查询视频生成任务。
GET
/
api
/
ai
/
v3
/
contents
/
generations
/
tasks
/
{taskId}
火山格式查询视频任务
curl --request GET \
--url https://aitoearn.cn/api/ai/v3/contents/generations/tasks/{taskId} \
--header 'Authorization: <api-key>'import requests
url = "https://aitoearn.cn/api/ai/v3/contents/generations/tasks/{taskId}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://aitoearn.cn/api/ai/v3/contents/generations/tasks/{taskId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/ai/v3/contents/generations/tasks/{taskId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "6a461da66fe8a12d33daabdd",
"model": "doubao-seedance-2-0-260128",
"status": "succeeded",
"error": null,
"created_at": 1782980006,
"updated_at": 1782980484,
"content": {
"video_url": "https://ark-content-generation-cn-beijing.tos-cn-beijing.volces.com/example/video.mp4",
"last_frame_url": "https://assets.aitoearn.ai/example/last-frame.png"
},
"seed": 9190,
"resolution": "720p",
"ratio": "16:9",
"duration": 8,
"framespersecond": 24,
"generate_audio": true,
"tools": [
{
"type": "web_search"
}
],
"safety_identifier": "user:01JQ8W2M4Y6N7P8R9S0T1U2V3W",
"priority": 0,
"execution_expires_after": 172800,
"usage": {
"completion_tokens": 411300,
"total_tokens": 411300,
"tool_usage": {
"web_search": 1
}
}
}授权
传入从 AiToEarn 获取 API Key。点击前往「API Key 获取教程」。示例:Bearer xxx。
路径参数
任务 ID,由火山格式创建视频生成任务接口返回。
响应
200 - application/json
火山格式原生响应,不使用 AiToEarn 通用响应包裹。
任务ID
模型名称
任务状态
创建时间
更新时间
种子值
分辨率
宽高比
时长
帧率
是否包含同步音频
终端用户标识(原样回显)
任务执行优先级
任务超时阈值(秒)
最后修改于 2026年9月29日
⌘I
火山格式查询视频任务
curl --request GET \
--url https://aitoearn.cn/api/ai/v3/contents/generations/tasks/{taskId} \
--header 'Authorization: <api-key>'import requests
url = "https://aitoearn.cn/api/ai/v3/contents/generations/tasks/{taskId}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://aitoearn.cn/api/ai/v3/contents/generations/tasks/{taskId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/ai/v3/contents/generations/tasks/{taskId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "6a461da66fe8a12d33daabdd",
"model": "doubao-seedance-2-0-260128",
"status": "succeeded",
"error": null,
"created_at": 1782980006,
"updated_at": 1782980484,
"content": {
"video_url": "https://ark-content-generation-cn-beijing.tos-cn-beijing.volces.com/example/video.mp4",
"last_frame_url": "https://assets.aitoearn.ai/example/last-frame.png"
},
"seed": 9190,
"resolution": "720p",
"ratio": "16:9",
"duration": 8,
"framespersecond": 24,
"generate_audio": true,
"tools": [
{
"type": "web_search"
}
],
"safety_identifier": "user:01JQ8W2M4Y6N7P8R9S0T1U2V3W",
"priority": 0,
"execution_expires_after": 172800,
"usage": {
"completion_tokens": 411300,
"total_tokens": 411300,
"tool_usage": {
"web_search": 1
}
}
}
