Zum Inhalt springen
aYOUne
← KI / AI API

VisionModels

Singular: VisionModel — Base-URL: https://ai.ayoune.app — Zugriff: CRUD — 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": "6ac70a70e2c7154a87c92504",
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-10-08T03:13:52.328Z",
    "updatedAt": "2026-10-08T03:13:52.328Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/visionmodels/6ac70a70e2c7154a87c92504",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Products",
        "title": "MODEL_PRODUCT",
        "href": "https://api.ayoune.app/pim/products",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pim.products"
      },
      {
        "rel": "ProductGroups",
        "title": "MODEL_PRODUCTGROUP",
        "href": "https://api.ayoune.app/config/productgroups",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.productgroups"
      }
    ],
    "debugId": "6ac70a702ca1e85363bea564",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_VISIONMODEL",
        "href": "https://api.ayoune.app/ai/visionmodels/6ac70a70e2c7154a87c92504/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_VISIONMODEL",
        "href": "https://api.ayoune.app/ai/visionmodels/6ac70a70e2c7154a87c92504",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.178.0",
      "core": "2026.367.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9763",
      "reset": "1791432814",
      "resetDate": "Thu Oct 08 2026"
    },
    "responseTime": 23.77011,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /visionmodels Liste mit Filtern/Paginierung ai.visionmodels.view
GET /visionmodels/:id Einzelner Datensatz ai.visionmodels.view
POST /visionmodels Neuen Datensatz erstellen ai.visionmodels.new
PUT /visionmodels Datensatz aktualisieren ai.visionmodels.edit
DELETE /visionmodels/:id Datensatz löschen ai.visionmodels.delete

SDK

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

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

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

// Erstellen
const created = await ay.ai.visionModels.create({ name: 'Foo' });

Weiterführend