---
title: "vision.moments-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/vision.moments-request"
updated: null
---

# vision.moments-request@1 · OpenVibe.Services

HTML: [vision.moments-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/vision.moments-request)

# VisionMomentsRequest `vision.moments-request@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: vision
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/vision/moments-request.v1.json`](/docs/contracts/vision.moments-request.json)

vision.moments-request@1: the body of POST /api/v1/moments. Up to 30 timestamped frames are compared with CLIP prompt embeddings; a histogram jump marks a scene change. VOD and stream chapters come from this.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `frames` | array of object | yes |  | - `minItems 1`<br>- `maxItems 30`<br>- `items: no other fields` |
| `frames[].timestamp_ms` | integer | yes |  | - `minimum 0` |
| `frames[].image` | string |  |  | - `pattern ^data:image/` |
| `frames[].image_url` | string |  |  | - `pattern ^https?://`<br>- `format uri` |
| `prompts` | array of string |  |  | - `maxItems 10`<br>- `items: maxLength 120` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: one

~~~~
{
  "frames": [
    {
      "timestamp_ms": 0,
      "image": "data:image/png;base64,iVBORw0KGgo="
    },
    {
      "timestamp_ms": 5000,
      "image_url": "https://example.com/f.jpg"
    }
  ],
  "prompts": [
    "a goal"
  ]
}
~~~~

Rejected: one

~~~~
{
  "frames": [
    {
      "image": "data:image/png;base64,iVBORw0KGgo="
    }
  ]
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('vision.moments-request@1', value);   // { valid, errors: [{ path, message }] }
~~~~
