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

# vision.benchmarks@1 · OpenVibe.Services

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

# VisionBenchmarks `vision.benchmarks@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: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/vision/benchmarks.v1.json`](/docs/contracts/vision.benchmarks.json)

vision.benchmarks@1: GET /api/v1/benchmarks aggregates compare samples per task, engine, provider and model with sample counts and mean latency and cost. No subject, image or answer text is included.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `count` | integer | yes |  | - `minimum 0` |
| `benchmarks` | array of object | yes |  | - `items: no other fields` |
| `benchmarks[].task` | string | yes |  |  |
| `benchmarks[].engine` | enum | yes |  | - `one of "local", "ai"` |
| `benchmarks[].provider` | string \| null | yes |  |  |
| `benchmarks[].model` | string \| null | yes |  |  |
| `benchmarks[].samples` | integer | yes |  | - `minimum 0` |
| `benchmarks[].avg_latency_ms` | integer | yes |  | - `minimum 0` |
| `benchmarks[].avg_cost_usd` | number | yes |  | - `minimum 0` |
| `benchmarks[].min_cost_usd` | number | yes |  | - `minimum 0` |
| `benchmarks[].max_latency_ms` | integer | yes |  | - `minimum 0` |

## Examples

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

 Valid: one

~~~~
{
  "count": 1,
  "benchmarks": [
    {
      "task": "ask",
      "engine": "ai",
      "provider": "openai",
      "model": "gpt-4o-mini",
      "samples": 3,
      "avg_latency_ms": 900,
      "avg_cost_usd": 0.0002,
      "min_cost_usd": 0.0001,
      "max_latency_ms": 1200
    }
  ]
}
~~~~

Rejected: one

~~~~
{
  "count": 1,
  "benchmarks": [
    {
      "task": "ask",
      "engine": "cloud",
      "provider": null,
      "model": null,
      "samples": 3,
      "avg_latency_ms": 900,
      "avg_cost_usd": 0.0002,
      "min_cost_usd": 0.0001,
      "max_latency_ms": 1200
    }
  ]
}
~~~~

## Validate

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