Get daily usage
curl --request GET \
--url https://api.fiveapi.ai/v1/account/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fiveapi.ai/v1/account/usage"
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/account/usage', 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/account/usage"
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/account/usage")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fiveapi.ai/v1/account/usage",
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",
"from": "2026-10-21",
"to": "2026-10-23",
"data": [
{
"day": "2026-10-21",
"model": "video-fast/v1.0/text-to-video",
"tasks_submitted": 18,
"tasks_completed": 18,
"tasks_failed": 0,
"tasks_cancelled": 0,
"charged_credit": 162
},
{
"day": "2026-10-22",
"model": "wan/v3.0-spark/image-to-video",
"tasks_submitted": 42,
"tasks_completed": 40,
"tasks_failed": 1,
"tasks_cancelled": 1,
"charged_credit": 2400
}
]
}Account
Get daily usage
Returns one row per UTC day and model between from and to (both inclusive). Without parameters it covers
the last 30 days. Counters are recomputed hourly, so the current day can lag by up to an hour.
Scope: account:read.
GET
/
v1
/
account
/
usage
Get daily usage
curl --request GET \
--url https://api.fiveapi.ai/v1/account/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fiveapi.ai/v1/account/usage"
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/account/usage', 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/account/usage"
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/account/usage")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fiveapi.ai/v1/account/usage",
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",
"from": "2026-10-21",
"to": "2026-10-23",
"data": [
{
"day": "2026-10-21",
"model": "video-fast/v1.0/text-to-video",
"tasks_submitted": 18,
"tasks_completed": 18,
"tasks_failed": 0,
"tasks_cancelled": 0,
"charged_credit": 162
},
{
"day": "2026-10-22",
"model": "wan/v3.0-spark/image-to-video",
"tasks_submitted": 42,
"tasks_completed": 40,
"tasks_failed": 1,
"tasks_cancelled": 1,
"charged_credit": 2400
}
]
}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
First day (YYYY-MM-DD, UTC).
Example:
"2026-10-01"
Last day (YYYY-MM-DD, UTC).
Example:
"2026-10-23"