aYOUne
← KI / AI API

AICostTrackers

Singular: AICostTracker — Base-URL: https://ai.ayoune.app — Zugriff: read-onlyMaschinenlesbare Beschreibung (JSON · YAML)

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "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"
  },
  "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": "6a8a6b1b216dcd463ba82003",
    "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/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.162.0",
      "core": "2026.315.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9815",
      "reset": "1787459872",
      "resetDate": "Sun Aug 23 2026"
    },
    "responseTime": 21.376569,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /aicosttrackers Liste mit Filtern/Paginierung ai.aicosttrackers.view
GET /aicosttrackers/:id Einzelner Datensatz via ID ai.aicosttrackers.view

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.ai.aICostTrackers.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.ai.aICostTrackers.findById('OBJECT_ID').exec();

Weiterführend