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

# wiki.images-suggest-result@1 · OpenVibe.Services

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

# WikiImagesSuggestResult `wiki.images-suggest-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: wiki
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/wiki/images-suggest-result.v1.json`](/docs/contracts/wiki.images-suggest-result.json)

wiki.images-suggest-result@1: what wiki.images.suggest answers. Each suggestion says where a picture came from and keeps its licence and author (Commons and Openverse), the OpenVibe.Pics page and its uploader, the page's own Media object, or — only when nothing real exists and the subject is not a real person — an AI illustration labelled 'Illustration made with <model>'. A suggestion is a candidate, not an attachment: the editor chooses one, the file goes to Media, and only then does it become a page attachment.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `article_id` | string | yes |  | - `pattern ^pg_[0-9A-HJKMNP-TV-Z]{26}$` |
| `task` | const | yes | The AI task that found the pictures. | - `= "wiki.article.images"` |
| `query` | string |  |  | - `maxLength 300` |
| `subject_is_person` | boolean |  | True when the article is about a real person: no AI illustration is suggested. |  |
| `run_id` | string \| null |  |  | - `maxLength 200` |
| `note` | string \| null |  | Why nothing more was suggested (no licensed picture found, the AI is not configured, the subject is a person). | - `maxLength 300` |
| `suggestions` | array of object | yes |  | - `maxItems 12`<br>- `items: no other fields` |
| `suggestions[].provider` | enum | yes |  | - `one of "commons", "openverse", "pics", "media", "ai"` |
| `suggestions[].role` | enum | yes |  | - `one of "lead", "figure"` |
| `suggestions[].media_id` | string \| null |  | Set for provider media, or once a chosen suggestion is in Media. | - `pattern ^med_[0-9A-HJKMNP-TV-Z]{26}$` |
| `suggestions[].url` | string \| null |  | The picture file to fetch (https) or to show when Media already serves it. | - `maxLength 2048` |
| `suggestions[].page_url` | string \| null |  | The picture's page at its source (Commons' file page, Openverse's result, the Pics picture, the Media object). | - `maxLength 2048` |
| `suggestions[].title` | string \| null |  |  | - `maxLength 300` |
| `suggestions[].author` | string \| null |  | The author or uploader, kept for the credit line. | - `maxLength 200` |
| `suggestions[].license` | string \| null |  |  | - `maxLength 200` |
| `suggestions[].license_url` | string \| null |  |  | - `maxLength 2048` |
| `suggestions[].width` | integer \| null |  |  | - `minimum 1` |
| `suggestions[].height` | integer \| null |  |  | - `minimum 1` |
| `suggestions[].alt` | string \| null |  |  | - `maxLength 400` |
| `suggestions[].caption` | string \| null |  |  | - `maxLength 400` |
| `suggestions[].credit` | string \| null |  | The line a figure shows: author, licence, or 'Illustration made with <model>' for an AI image. | - `maxLength 400` |
| `suggestions[].ai` | boolean |  |  |  |
| `suggestions[].model` | string \| null |  |  | - `maxLength 200` |
| `suggestions[].data_url` | string \| null |  | An AI illustration's bytes as a data: URL when the provider returned no hosted URL. | - `maxLength 8000000` |

## Examples

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

 Valid: mixed

~~~~
{
  "article_id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "task": "wiki.article.images",
  "query": "OpenVibe Link machine",
  "subject_is_person": false,
  "run_id": "run_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "note": null,
  "suggestions": [
    {
      "provider": "commons",
      "role": "lead",
      "media_id": null,
      "url": "https://upload.wikimedia.org/wikipedia/commons/8/8a/OpenVibe_Link.jpg",
      "page_url": "https://commons.wikimedia.org/wiki/File:OpenVibe_Link.jpg",
      "title": "OpenVibe Link running on a laptop",
      "author": "Ada Example",
      "license": "CC BY-SA 4.0",
      "license_url": "https://creativecommons.org/licenses/by-sa/4.0/",
      "width": 1280,
      "height": 800,
      "alt": "The OpenVibe Link window on a laptop",
      "caption": "OpenVibe Link running on a laptop",
      "credit": "Picture: Ada Example, CC BY-SA 4.0",
      "ai": false
    },
    {
      "provider": "ai",
      "role": "figure",
      "media_id": null,
      "url": null,
      "title": "A diagram of the relay",
      "author": null,
      "license": null,
      "license_url": null,
      "width": 1024,
      "height": 1024,
      "alt": "An illustration of a relay between two machines",
      "caption": "An illustration of the relay",
      "credit": "Illustration made with anthropic/claude-opus-5-5",
      "ai": true,
      "model": "anthropic/claude-opus-5-5",
      "data_url": "data:image/png;base64,iVBORw0KGgo="
    }
  ]
}
~~~~

Rejected: no-provider

~~~~
{
  "article_id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "task": "wiki.article.images",
  "suggestions": [
    {
      "role": "lead"
    }
  ]
}
~~~~

## Validate

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