curl --request GET \
--url https://api.fiveapi.ai/v1/tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fiveapi.ai/v1/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fiveapi.ai/v1/tasks', 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://api.fiveapi.ai/v1/tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.fiveapi.ai/v1/tasks")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fiveapi.ai/v1/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"data": [
{
"id": "task_01J9X9C2D3E4F5G6H7J8K9L0M1",
"object": "task",
"model": "wan/v3.0-prime-spark/text-to-video",
"task": "text-to-video",
"status": "cancelled",
"input": {
"prompt": "macro shot of rain drops hitting a leaf, slow motion",
"duration": 4,
"resolution": "720p",
"aspect_ratio": "9:16"
},
"error": null,
"credits": {
"estimated": 64
},
"created_at": "2026-10-23T06:30:00.000Z",
"completed_at": "2026-10-23T06:30:21.450Z"
},
{
"id": "task_01J9X7Z0K7Q8W3F2P1N6M5V4R3",
"object": "task",
"model": "wan/v3.0-spark/image-to-video",
"task": "image-to-video",
"status": "completed",
"input": {
"image_url": "https://assets.example.com/inputs/portrait.jpg",
"prompt": "slow push-in, soft morning light, hair moving in the breeze",
"duration": 5,
"resolution": "720p"
},
"output": {
"video": {
"url": "https://openassets.fiveapi.ai/x2v/results/551fe9fa/openapi_1793171336.mp4",
"content_type": "video/mp4",
"file_size": 4823119,
"width": 720,
"height": 1280,
"duration": 5.04,
"fps": 24
}
},
"error": null,
"credits": {
"estimated": 60,
"charged": 60
},
"metadata": {
"order_id": "ord_8812"
},
"created_at": "2026-10-23T06:21:02.127Z",
"started_at": "2026-10-23T06:21:40.512Z",
"completed_at": "2026-10-23T06:23:05.004Z",
"expires_at": "2026-10-30T06:23:05.004Z"
}
],
"has_more": true
}List tasks
Lists the tasks of your account, across all of its API keys, newest first. Filter by status, model and
created_after. To page, pass the id of the last task you received as starting_after while has_more
is true. Requests rejected at submit time (for example with 402) never become tasks and are not listed.
Scope: video:read.
curl --request GET \
--url https://api.fiveapi.ai/v1/tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fiveapi.ai/v1/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fiveapi.ai/v1/tasks', 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://api.fiveapi.ai/v1/tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.fiveapi.ai/v1/tasks")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fiveapi.ai/v1/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"data": [
{
"id": "task_01J9X9C2D3E4F5G6H7J8K9L0M1",
"object": "task",
"model": "wan/v3.0-prime-spark/text-to-video",
"task": "text-to-video",
"status": "cancelled",
"input": {
"prompt": "macro shot of rain drops hitting a leaf, slow motion",
"duration": 4,
"resolution": "720p",
"aspect_ratio": "9:16"
},
"error": null,
"credits": {
"estimated": 64
},
"created_at": "2026-10-23T06:30:00.000Z",
"completed_at": "2026-10-23T06:30:21.450Z"
},
{
"id": "task_01J9X7Z0K7Q8W3F2P1N6M5V4R3",
"object": "task",
"model": "wan/v3.0-spark/image-to-video",
"task": "image-to-video",
"status": "completed",
"input": {
"image_url": "https://assets.example.com/inputs/portrait.jpg",
"prompt": "slow push-in, soft morning light, hair moving in the breeze",
"duration": 5,
"resolution": "720p"
},
"output": {
"video": {
"url": "https://openassets.fiveapi.ai/x2v/results/551fe9fa/openapi_1793171336.mp4",
"content_type": "video/mp4",
"file_size": 4823119,
"width": 720,
"height": 1280,
"duration": 5.04,
"fps": 24
}
},
"error": null,
"credits": {
"estimated": 60,
"charged": 60
},
"metadata": {
"order_id": "ord_8812"
},
"created_at": "2026-10-23T06:21:02.127Z",
"started_at": "2026-10-23T06:21:40.512Z",
"completed_at": "2026-10-23T06:23:05.004Z",
"expires_at": "2026-10-30T06:23:05.004Z"
}
],
"has_more": true
}Authorizations
Your API key from the developer console, sent as Authorization: Bearer sk_live_....
The x-api-key: sk_live_... header is accepted as an alternative.
Query Parameters
Only tasks in this status.
queued → processing → one of the terminal states completed, failed, cancelled.
queued, processing, completed, failed, cancelled Only tasks created on this model id.
"wan/v3.0-spark/image-to-video"
Only tasks created after this instant (ISO 8601 with a time zone, for example 2026-10-23T00:00:00Z).
Page size, 1–100.
1 <= x <= 100Cursor. The id of the last task of the previous page.
"task_01J9X7Z0K7Q8W3F2P1N6M5V4R3"