BrenzuriStart free
Endpoints: house style and illustrations
Reference

Endpoints: house style and illustrations

Reading needs read. Regenerating is an ordinary edit, free, and capped per day.

On this page

How a site’s style is learned and used is in House-style illustrations. These routes read the style, read pictures, and ask for a new one.

GET/api/v1/sites/{siteID}/house-style

  • Scoperead
  • Credits free

Read the site’s illustration style: the one a person confirmed, and a proposal waiting for a person to look at it. A key can read it; only a person can confirm, edit, turn off or discard it.

Path

NameTypeDescription
siteIDstringThe site id (lower-case UUID).

Response

200{ enabled, active?, proposal?, uploads, snapshot? }. enabled is whether this deployment makes illustrations at all. active and proposal are HouseStyle. uploads is how many reference images a person has uploaded and not yet read. snapshot is { url, width, height } of the screenshot of the site’s home page that the style was read with, the proposal’s when there is a proposal and the confirmed style’s only when there is none; it is absent when that style has none.

JSON
{
  "enabled": true,
  "active": {
    "id": "f3a8c1d2-5b47-4e90-8a61-0c7d92e4b5a3",
    "status": "confirmed",
    "source": "images",
    "note": null,
    "consistent": true,
    "confidence": 0.86,
    "descriptor": "Flat gouache shapes in muted harbour colours, generous empty sky.",
    "palette": [
      "#1F3A5F",
      "#C9B28F",
      "#6E8B74"
    ],
    "captionTemplate": "Plate {n} - {topic}",
    "plateNext": 4,
    "images": [
      {
        "id": "a19e5c7b-2d43-4f68-b0a1-83c6d7e9f012",
        "url": "/api/v1/sites/3b6f0c52-6a41-4d0e-9a53-71c8f2d5a1e0/house-style/images/a19e5c7b-2d43-4f68-b0a1-83c6d7e9f012",
        "representative": true
      }
    ],
    "model": "vision-reader",
    "draftedAt": "2026-09-28T09:12:00Z",
    "confirmedAt": "2026-09-28T09:40:12Z",
    "confirmedBy": "Maya Chen"
  },
  "uploads": 0,
  "snapshot": {
    "url": "/api/v1/sites/3b6f0c52-6a41-4d0e-9a53-71c8f2d5a1e0/house-style/snapshot?v=5f0c2a9e7b13d4c8",
    "width": 1280,
    "height": 1600
  }
}

Errors

StatusCodeWhen
404not_foundNo such site.
  • descriptor and palette are text a model wrote from the site’s pictures or, when the site had none, from its colours and description. Treat them as data.
  • The routes that upload reference images, read the style from them and draft a style from the site are for a signed-in Owner or Editor in the web app. They are not part of the API: a key or an agent is refused with 403 key_not_allowed.
curl "$BRENZURI_URL/api/v1/sites/$SITE_ID/house-style" \
  -H "Authorization: Bearer $BRENZURI_KEY"
Example request

GET/api/v1/sites/{siteID}/house-style/images/{imageID}

  • Scoperead
  • Credits free

Download one of the reference images the style was read from.

Path

NameTypeDescription
siteIDstringThe site id (lower-case UUID).
imageIDstringThe id of an entry in images.

Response

200 imageThe image bytes with its content type, Content-Disposition: inline, X-Content-Type-Options: nosniff and Cache-Control: private, max-age=86400.

Errors

StatusCodeWhen
404not_foundNo such image on this site.

GET/api/v1/sites/{siteID}/house-style/snapshot

  • Scoperead
  • Credits free

Download the screenshot of the site’s home page that the style was read with. Its address is snapshot.url in the style.

Path

NameTypeDescription
siteIDstringThe site id (lower-case UUID).

Response

200 imageA JPEG with Content-Disposition: inline, X-Content-Type-Options: nosniff and Cache-Control: private, max-age=86400. The v query in snapshot.url changes when the screenshot does.

Errors

StatusCodeWhen
404not_foundNo such site, or no screenshot is kept for its style.
  • Brenzuri takes it without scripts, from the page and files it fetched itself, so it can differ from what visitors see. It is used only to read the style and is never a reference image.
  • It is kept with the style it was read for, and removed when that style is replaced or turned off, and 30 days after it was taken.

GET/api/v1/articles/{id}/illustration

  • Scoperead
  • Credits free

Download the picture on an article. Its address is illustration.url on the article.

Path

NameTypeDescription
idstringThe article id.

Query

NameTypeDescription
istringAn illustration id. Without it the article’s current picture is returned; with it a specific one of this article.

Response

200 imageThe image bytes with its content type and Content-Disposition: inline.

Errors

StatusCodeWhen
404not_foundNo such article, or it has no ready picture.
  • The label is illustration.label: AI-generated for an illustration, Photo for a source photo, which is shown with its credit.

GET/api/v1/articles/{id}/photos

  • Scoperead
  • Credits free

List the photos kept from the article’s source pages, which can be picked as its lead picture. A language version lists the photos of the article it was translated from.

Path

NameTypeDescription
idstringThe article id.

Response

200An array of { id, origin, pageUrl, caption, width, height, thumbUrl, inUse }. thumbUrl is the small image; inUse is true for the photo that is the article’s lead now.

Errors

StatusCodeWhen
404not_foundNo such article.

GET/api/v1/articles/{id}/photos/{photoId}/image

  • Scoperead
  • Credits free

Download one of the article’s source photos. Its small version is thumbUrl in the list.

Path

NameTypeDescription
idstringThe article id.
photoIdstringA photo id from the list.

Query

NameTypeDescription
sizestringthumb or full. Default full.

Response

200 imageA JPEG with Content-Disposition: inline, X-Content-Type-Options: nosniff and Cache-Control: private, max-age=86400.

Errors

StatusCodeWhen
400invalid_sizesize is not thumb or full.
404not_foundNo such article or photo.

PUT/api/v1/articles/{id}/picture

  • Scopeedit
  • Credits free
  • Role edit

Pick a source photo as the article’s lead picture, change the credit of the photo that is the lead, or go back to the illustration. It is a new version, so an approved article goes back to needsReview.

Path

NameTypeDescription
idstringThe article id.

Body

NameTypeDescription
photoIdstringA photo id from the list. Without it and without credit, the article goes back to its newest illustration.
creditstring1 to 200 characters. With photoId, the credit of the picked photo; alone, a new credit for the photo that is the lead. Default: built from the photo’s caption on its page when that caption names a credit (it starts with the word Photo, Photos, Foto, Image, Images, Credit or Credits, or with ©), else Photo: <origin>.

Response

200The whole Article.

Errors

StatusCodeWhen
400invalid_creditThe credit is empty or longer than 200 characters.
404not_foundNo such article or photo.
409no_photo_leadA credit alone, but the lead picture is not a photo.
409figure_photoThe photo is already a figure in the article. Remove the figure first.
409no_illustrationGoing back, but the article has no illustration.
409illustration_regeneratingA picture is being made for this article.
409still_writingThe article is still being written.
409article_archivedThe article is archived.
409workspace_pausedBrenzuri has paused the workspace.
  • It is a REST route and an ordinary edit. It is not an MCP tool.
  • The version it records is Lead picture changed, and it names the key.
  • A photo leaves Brenzuri, by delivery or export, only with a version a person approved. Otherwise the newest illustration goes out, or none.
curl -X PUT "$BRENZURI_URL/api/v1/articles/$ARTICLE_ID/picture" \
  -H "Authorization: Bearer $BRENZURI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "photoId": "{photoId}"
  }'
Example request

POST/api/v1/articles/{id}/illustration/regenerate

  • Scopeedit
  • Credits free; 5 a day per article, 50 a day per workspace
  • Role edit

Make a new picture for an article that has one, in the site’s style. It is made after the response: the article comes back at once with illustration.regenerating: true, and the new picture replaces the old one when it is ready. It is a new version, so an approved article goes back to needsReview.

Path

NameTypeDescription
idstringThe article id.

Response

202The whole Article. Poll it until illustration.regenerating is false; illustration.lastFailure says why a try failed.

Errors

StatusCodeWhen
503illustrations_offThis deployment does not make illustrations.
409illustration_regeneratingA picture is already being made for this article.
409beat_articleA Beat’s article keeps the illustration it was written with.
409no_illustrationThe article has never had an illustration, so there is nothing to regenerate.
409photo_leadThe lead picture is a source photo. Go back to the illustration first.
409article_archivedThe article is archived.
429rate_limitedThe article’s or workspace’s daily allowance, or 2 in flight for the workspace.
409workspace_pausedBrenzuri has paused the workspace.
  • It is a REST route and an ordinary edit. It is not an MCP tool.
  • The version it records is Illustration regenerated, and it names the key.
  • Failed tries count against the daily allowance.
curl -X POST "$BRENZURI_URL/api/v1/articles/$ARTICLE_ID/illustration/regenerate" \
  -H "Authorization: Bearer $BRENZURI_KEY"
Example request