AI 服务/视频生成
视频任务状态
接口说明:根据 taskId 查询视频生成任务的执行状态与结果。
GET
/
api
/
ai
/
video
/
generations
/
{taskId}
视频任务状态
curl --request GET \
--url https://aitoearn.cn/api/ai/video/generations/{taskId} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/ai/video/generations/{taskId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://aitoearn.cn/api/ai/video/generations/{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/video/generations/{taskId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": {
"id": "string",
"model": "string",
"status": "string",
"input": {
"prompt": "string",
"groupId": "string",
"image": "string",
"images": [
"string"
],
"audios": [
"string"
],
"duration": 1,
"aspectRatio": "string",
"resolution": "string",
"videoUrl": "string",
"videos": [
"string"
]
},
"submittedAt": "2026-07-02T12:00:00.000Z",
"startedAt": "2026-07-02T12:00:00.000Z",
"videoUrl": "string",
"coverUrl": "string",
"mediaId": "string",
"groupId": "string",
"error": {
"message": "string"
},
"finishedAt": "2026-07-02T12:00:00.000Z"
}
}
授权
需要从 AiToEarn 获取 API Key。点击前往「API Key 获取教程」。
响应
200 - application/json
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
Hide child attributes
Hide child attributes
输入参数
Hide child attributes
Hide child attributes
⌘I
视频任务状态
curl --request GET \
--url https://aitoearn.cn/api/ai/video/generations/{taskId} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/ai/video/generations/{taskId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://aitoearn.cn/api/ai/video/generations/{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/video/generations/{taskId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": {
"id": "string",
"model": "string",
"status": "string",
"input": {
"prompt": "string",
"groupId": "string",
"image": "string",
"images": [
"string"
],
"audios": [
"string"
],
"duration": 1,
"aspectRatio": "string",
"resolution": "string",
"videoUrl": "string",
"videos": [
"string"
]
},
"submittedAt": "2026-07-02T12:00:00.000Z",
"startedAt": "2026-07-02T12:00:00.000Z",
"videoUrl": "string",
"coverUrl": "string",
"mediaId": "string",
"groupId": "string",
"error": {
"message": "string"
},
"finishedAt": "2026-07-02T12:00:00.000Z"
}
}

