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

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

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

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

wiki.images-suggest-request@1: the body of wiki.images.suggest on OpenVibe.Wiki (an editor of the space). POST /api/v1/pages/:id/images/suggest asks the wiki.article.images task for the article's lead picture and figures: Wikimedia Commons and Openverse first, keeping the licence and the author; then OpenVibe.Pics and the page's own Media; an AI illustration only when nothing real exists, never of a real person. Every field is optional; the path names the article.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `query` | string \| null |  | What to look for; defaults to the article's title and summary. | - `maxLength 300` |
| `section` | string \| null |  | A section heading the pictures should illustrate; omitted, the lead picture is suggested first. | - `maxLength 200` |
| `count` | integer |  | At most this many suggestions (default 8). | - `minimum 1`<br>- `maximum 12` |
| `allow_ai` | boolean |  | Whether an illustration may be drawn when no real picture exists (default true; never for an article about a real person). |  |
| `choice` | [ai.choice](/docs/contracts/ai.choice) |  | The search engine (search/commons, search/openverse, …) for the wiki.article.images task; the owner's or person's choice answers when omitted. |  |

## Examples

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

 Valid: commons

~~~~
{
  "query": "OpenVibe Link machine",
  "section": "Setup",
  "count": 6,
  "allow_ai": false,
  "choice": {
    "model": "search/commons",
    "source": "openvibe"
  }
}
~~~~

Rejected: too-many

~~~~
{
  "count": 99
}
~~~~

## Validate

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