Skip to content
aYOUne
← AI API

AICostTrackers

Singular: AICostTracker — Base URL: https://ai.ayoune.app — Access: read-only — Machine-readable spec (JSON · YAML)

Try it now beta

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": "6ac3f9cfc0aedf1dd2dc95e1",
    "_user": "5a76d07e2d8b3270ff6df587",
    "periodStart": "2026-10-05T00:00:00.000Z",
    "period": "weekly",
    "alertSent": false,
    "breakdown": [],
    "budgetUsedPercent": 0,
    "createdAt": "2026-10-05T19:26:07.722Z",
    "embeddingCostUSD": 0,
    "embeddingTokens": 0,
    "imageCostUSD": 0,
    "imageGenerations": 0,
    "periodEnd": "2026-10-12T00:00:00.000Z",
    "shares": [],
    "totalCostUSD": 0.007600000000000001,
    "totalQueries": 3,
    "totalTokensInput": 1388,
    "totalTokensOutput": 44,
    "updatedAt": "2026-10-06T10:14:43.028Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aicosttrackers/6ac3f9cfc0aedf1dd2dc95e1",
        "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": "6adc22b94e25bdc209662400",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AICOSTTRACKER",
        "href": "https://api.ayoune.app/ai/aicosttrackers/6ac3f9cfc0aedf1dd2dc95e1/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AICOSTTRACKER",
        "href": "https://api.ayoune.app/ai/aicosttrackers/6ac3f9cfc0aedf1dd2dc95e1",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.178.0",
      "core": "2026.388.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9831",
      "reset": "1792815292",
      "resetDate": "Sat Oct 24 2026"
    },
    "responseTime": 36.571409,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
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();

See also