Zum Inhalt springen
aYOUne
← KI / AI API

AICostTrackers

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

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": "6ac3f9cfc0aedf1dd2dc95e0",
    "period": "weekly",
    "periodStart": "2026-10-05T00:00:00.000Z",
    "alertSent": false,
    "breakdown": [],
    "budgetUsedPercent": 0,
    "createdAt": "2026-10-05T19:26:07.714Z",
    "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.024Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aicosttrackers/6ac3f9cfc0aedf1dd2dc95e0",
        "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": "6ad82e4047835e73f30a9834",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AICOSTTRACKER",
        "href": "https://api.ayoune.app/ai/aicosttrackers/6ac3f9cfc0aedf1dd2dc95e0/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AICOSTTRACKER",
        "href": "https://api.ayoune.app/ai/aicosttrackers/6ac3f9cfc0aedf1dd2dc95e0",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.178.0",
      "core": "2026.387.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9826",
      "reset": "1792556098",
      "resetDate": "Wed Oct 21 2026"
    },
    "responseTime": 37.881939,
    "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