← AI API
AICostTrackers
Singular: AICostTracker — Base URL: https://ai.ayoune.app — Access: read-only — Machine-readable spec (JSON · YAML)
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"payload": {
"_id": "6a7d2a0a27464b321e999d48",
"period": "daily",
"periodStart": "2026-08-13T00:00:00.000Z",
"alertSent": false,
"breakdown": [],
"budgetUsedPercent": 0,
"createdAt": "2026-08-13T02:20:58.596Z",
"embeddingCostUSD": 0,
"embeddingTokens": 0,
"imageCostUSD": 0,
"imageGenerations": 0,
"isDraft": true,
"periodEnd": "2026-08-14T00:00:00.000Z",
"totalCostUSD": 0.0063100000000000005,
"totalQueries": 1,
"totalTokensInput": 1199,
"totalTokensOutput": 21,
"updatedAt": "2026-08-13T02:20:58.596Z",
"shares": []
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ai.ayoune.app/aicosttrackers/6a7d2a0a27464b321e999d48",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "AIAgents",
"title": "MODEL_AIAGENT",
"href": "https://api.ayoune.app/ai/aiagents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aiagents"
}
],
"debugId": "6aa0cf091d5f163b722c85a2",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AICOSTTRACKER",
"href": "https://api.ayoune.app/ai/aicosttrackers/6a7d2a0a27464b321e999d48/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AICOSTTRACKER",
"href": "https://api.ayoune.app/ai/aicosttrackers/6a7d2a0a27464b321e999d48",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.172.0",
"core": "2026.334.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "9827",
"reset": "1788927245",
"resetDate": "Wed Sep 09 2026"
},
"responseTime": 58.883797,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /aicosttrackers |
List with filters/pagination | ai.aicosttrackers.view |
| GET | /aicosttrackers/:id |
Single record by ID | ai.aicosttrackers.view |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ai.aICostTrackers.find().limit(10).exec();
// Single record
const one = await ay.ai.aICostTrackers.findById('OBJECT_ID').exec();