curl --request GET \
--url https://api.monid.ai/v1/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.monid.ai/v1/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.monid.ai/v1/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.monid.ai/v1/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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.monid.ai/v1/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.monid.ai/v1/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monid.ai/v1/usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"range": "7d",
"grain": "day",
"from": "2026-11-21T00:00:00.000Z",
"to": "2026-11-27T09:00:00.000Z",
"buckets": [
"2026-11-21",
"2026-11-22"
],
"currency": "USD",
"top": "10",
"totals": {
"runs": 123,
"cost": 123
},
"series": {
"runs": [
123
],
"cost": [
123
]
},
"providerCount": 123,
"endpointCount": 123,
"providers": [
{
"provider": "tinyfish",
"runs": 123,
"cost": 123,
"series": {
"runs": [
123
],
"cost": [
123
]
},
"providerName": "TinyFish"
}
],
"endpoints": [
{
"provider": "tinyfish",
"runs": 123,
"cost": 123,
"series": {
"runs": [
123
],
"cost": [
123
]
},
"endpoint": "/search",
"providerName": "TinyFish"
}
]
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}Workspace usage
Run count and billed cost of the workspace’s finished runs over a range preset, per UTC day or month, per provider and per endpoint. The provider and endpoint lists hold the top N by cost and by runs unless top is all, and the totals always cover every run. Buckets are cut by when the API received each run’s request. Usage is analytics data. A run usually appears within a minute of finishing, and a run can occasionally be missing here while GET /v1/runs still lists it. Resource rent and refunds are not runs and are not included. The response is never cached.
curl --request GET \
--url https://api.monid.ai/v1/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.monid.ai/v1/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.monid.ai/v1/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.monid.ai/v1/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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.monid.ai/v1/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.monid.ai/v1/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monid.ai/v1/usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"range": "7d",
"grain": "day",
"from": "2026-11-21T00:00:00.000Z",
"to": "2026-11-27T09:00:00.000Z",
"buckets": [
"2026-11-21",
"2026-11-22"
],
"currency": "USD",
"top": "10",
"totals": {
"runs": 123,
"cost": 123
},
"series": {
"runs": [
123
],
"cost": [
123
]
},
"providerCount": 123,
"endpointCount": 123,
"providers": [
{
"provider": "tinyfish",
"runs": 123,
"cost": 123,
"series": {
"runs": [
123
],
"cost": [
123
]
},
"providerName": "TinyFish"
}
],
"endpoints": [
{
"provider": "tinyfish",
"runs": 123,
"cost": 123,
"series": {
"runs": [
123
],
"cost": [
123
]
},
"endpoint": "/search",
"providerName": "TinyFish"
}
]
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}Query Parameters
The window, in UTC and up to the request time. 7d (default) and 30d are the last 7 and 30 days, by day. 12m is the last 12 months including the current one, by month. week (from Monday) and month are the current week and month, by day. year is the current year, by month.
7d, 30d, 12m, week, month, year "7d"
How many providers and endpoints to return. 10 (default) and 50 return the top N by cost together with the top N by runs (at most 2N entries), so either ranking is exact for its top N. all returns every one. Totals and series always cover every run.
10, 50, all "10"
Response
Usage of the authenticated workspace