Video Task List
Interface description: Get the video generation task list of the current user in pages.
curl --request GET \
--url https://aitoearn.cn/api/ai/video/generations \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/ai/video/generations"
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', 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"
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": "Request succeeded",
"data": {
"page": 1,
"pageSize": 1,
"totalPages": 1,
"total": 1,
"list": [
{
"id": "string",
"model": "string",
"status": "string",
"input": {
"prompt": "string",
"groupId": "string",
"image": {},
"images": [
{}
],
"audios": [
{}
],
"duration": 1,
"aspectRatio": "string",
"resolution": "string",
"videoUrl": "string",
"videos": [
{}
]
},
"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"
}
]
}
}Authorizations
Need to get API Key from AiToEarn. Click to go to "API Key Obtaining Tutorial".
Query Parameters
Page number, starting from 1, default value 1
1 <= x <= 9007199254740991Number of pages per page. It is recommended to set a reasonable size based on interface restrictions. The default value is 1.
1 <= x <= 1000Response
The request has been processed by the service. Business success is determined by whether the response body has code === 0.
Business status code. 0 means success; non-zero means a business error.
Response message.
Hide child attributes
Hide child attributes
Page number, starting from 1
-9007199254740991 <= x <= 9007199254740991Number of pages per page. It is recommended to set a reasonable size based on interface restrictions.
-9007199254740991 <= x <= 9007199254740991Total pages
-9007199254740991 <= x <= 9007199254740991Total quantity, used in paging scenarios to represent the total number of data that meets the conditions.
-9007199254740991 <= x <= 9007199254740991Data list
Hide child attributes
Hide child attributes
Task ID
Model name
Task status
input parameters
Hide child attributes
Hide child attributes
prompt word
Material group ID
Image URL
Reference image URL list
Reference audio URL list
Duration (seconds)
aspect ratio
resolution
First reference video URL
Reference video URL list
Submission time
start time
Generated video URL
Generate the cover URL of the video
Saved material ID
Asset group ID saved to
completion time
Request ID.
Error response timestamp in Unix milliseconds.
curl --request GET \
--url https://aitoearn.cn/api/ai/video/generations \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/ai/video/generations"
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', 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"
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": "Request succeeded",
"data": {
"page": 1,
"pageSize": 1,
"totalPages": 1,
"total": 1,
"list": [
{
"id": "string",
"model": "string",
"status": "string",
"input": {
"prompt": "string",
"groupId": "string",
"image": {},
"images": [
{}
],
"audios": [
{}
],
"duration": 1,
"aspectRatio": "string",
"resolution": "string",
"videoUrl": "string",
"videos": [
{}
]
},
"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"
}
]
}
}
