← AI API
VisionModels
Singular: VisionModel — Base URL: https://ai.ayoune.app — Access: CRUD — 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": "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
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /visionmodels |
List with filters/pagination | ai.visionmodels.view |
| GET | /visionmodels/:id |
Single record | ai.visionmodels.view |
| POST | /visionmodels |
Create new record | ai.visionmodels.new |
| PUT | /visionmodels |
Update record | ai.visionmodels.edit |
| DELETE | /visionmodels/:id |
Delete record | ai.visionmodels.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ai.visionModels.find().limit(10).exec();
// Single record
const one = await ay.ai.visionModels.findById('OBJECT_ID').exec();
// Create
const created = await ay.ai.visionModels.create({ name: 'Foo' });