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

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

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

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

vision.alt-result@1: POST /api/v1/alt answers one short, editable alt-text sentence about the scene, objects and action, never about a person. The text has passed noLooks; the receipt says which engine answered and at what cost.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `answer` | object | yes |  | - `no other fields` |
| `answer.alt_text` | string | yes |  | - `maxLength 240` |
| `answer.editable` | const | yes |  | - `= true` |
| `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": {
    "alt_text": "A kitchen counter with a bowl and a spoon.",
    "editable": true,
    "receipt": {
      "engine": "routed",
      "model": "gpt-4o-mini",
      "cost_usd": 0.0002,
      "ms": 900,
      "confidence": null,
      "retention": "not stored"
    }
  }
}
~~~~

Rejected: one

~~~~
{
  "answer": {
    "alt_text": "x",
    "editable": false,
    "receipt": {
      "engine": "routed",
      "model": null,
      "cost_usd": 0,
      "ms": 1,
      "confidence": null,
      "retention": "x"
    }
  }
}
~~~~

## Validate

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