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

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

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

# VisionMomentsResult `vision.moments-result@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-result.v1.json`](/docs/contracts/vision.moments-result.json)

vision.moments-result@1: POST /api/v1/moments answers scene changes and candidate moments (timestamp, matching prompt, score) for up to 30 frames. A moment is a suggestion: the room decides whether it becomes a clip or a chapter.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `answer` | object | yes |  | - `no other fields` |
| `answer.scene_changes` | array of object | yes |  | - `items: no other fields` |
| `answer.scene_changes[].timestamp_ms` | integer | yes |  | - `minimum 0` |
| `answer.scene_changes[].kind` | const | yes |  | - `= "scene_change"` |
| `answer.candidate_moments` | array of object | yes |  | - `maxItems 30`<br>- `items: no other fields` |
| `answer.candidate_moments[].timestamp_ms` | integer | yes |  | - `minimum 0` |
| `answer.candidate_moments[].prompt` | string | yes |  |  |
| `answer.candidate_moments[].score` | number | yes |  |  |
| `answer.receipt` | object | yes |  | - `no other fields` |
| `answer.receipt.engine` | enum | yes |  | - `one of "local", "routed", "local+routed", "local+routed description"` |
| `answer.receipt.model` | string \| null | yes |  |  |
| `answer.receipt.cost_usd` | number | yes |  | - `minimum 0` |
| `answer.receipt.ms` | integer | yes |  | - `minimum 0` |
| `answer.receipt.confidence` | number \| null | yes |  |  |
| `answer.receipt.retention` | string | yes |  |  |

## Examples

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

 Valid: one

~~~~
{
  "answer": {
    "scene_changes": [
      {
        "timestamp_ms": 5000,
        "kind": "scene_change"
      }
    ],
    "candidate_moments": [
      {
        "timestamp_ms": 5000,
        "prompt": "a goal",
        "score": 0.31
      }
    ],
    "receipt": {
      "engine": "local",
      "model": "CLIP ViT-B/32 q8 + histogram",
      "cost_usd": 0,
      "ms": 90,
      "confidence": 0.31,
      "retention": "not stored"
    }
  }
}
~~~~

Rejected: one

~~~~
{
  "answer": {
    "scene_changes": [
      {
        "timestamp_ms": 1,
        "kind": "cut"
      }
    ],
    "candidate_moments": [],
    "receipt": {
      "engine": "local",
      "model": null,
      "cost_usd": 0,
      "ms": 1,
      "confidence": null,
      "retention": "x"
    }
  }
}
~~~~

## Validate

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