House-style illustrations
On this page
How a style is learned #
At the site read, Brenzuri collects the images that the pages it reads show, up to six, and asks one vision model what they have in common: a one-sentence description, up to six hex colours, a caption pattern such as Plate {n} - {topic}, and a confidence. The images are the share image and the pictures in the page’s content (srcset,picturesources and lazy-loaded images included; logos, icons, avatars, vector images and anything under 200 pixels are left out). They may be served from any public host, such as a CDN (i0.wp.com,cdn.shopify.com,res.cloudinary.com), over https on port 443, after that host’srobots.txt; at most three come from one outside host and each is at most 4 MB. The model is sent the four smallest.When no article image can be used, the style is read from the site’s design. If fewer than two usable images are found, the read looks at how the site looks: its share images ( og:image,twitter:image), hero and background images and large icons, fetched the same guarded way, and its design tokens: fonts, corner style (sharp, soft or pill), shadows, inline SVG and whether stroke or fill dominates, an icon library, a light or dark ground and its colours (thetheme-color, the web manifest and the brand colours in its CSS). One vision call, with at most four of the images, writes a style that would look native on the site. The draft hassource: "design". Real artwork among the assets (not icons) is kept as its reference images when there are two or more; otherwise it has none and is drawn with the generic image model.If that gives nothing there is still a draft. The last resort is a draft from the site’s colours and description ( source: "site"), with no images. The reasons no article image was used are counted in the read’s step report, for example6 candidates · 3 too large · 3 not an image.The result is a draft. Nothing is drawn from a draft. A person confirms it. An Owner or Editor confirms, edits, turns off or discards the style in Setup › Illustration style. Only then is it used. It is not re-derived per article. Reading the site again proposes a new draft beside the confirmed style and never overwrites it.
What Brenzuri looks at #
GET /sites/{siteID}/house-style/snapshot returns it. 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.
Upload your own reference images #
source: "uploads" from them, exactly like the read of a site, and never confirms it. A site that has no style at all can also ask for “Draft a style from the site”, made from what Brenzuri already stored and a fresh screenshot of its home page, without reading the other pages again: from the design tokens of the last read and the screenshot (source: "design", no images) or, when they say nothing, from its colours and description (source: "site"). A read of uploaded images is sent the screenshot of the current style too, when there is one. Reads and drafts are limited to 5 a day per site (UTC) and cost no credits.
curl "$BRENZURI_URL/api/v1/sites/$SITE_ID/house-style" \
-H "Authorization: Bearer $BRENZURI_KEY"When a picture is made #
A brief with illustration: "generate"adds theillustratestep to the job. It is optional: if it fails it can be skipped and the article still finishes.A column of a site with a confirmed style asks for an illustration; the site brief page offers it under the same condition. A Beat’s articles are written without one. The step has a budget of 150 seconds. If it cannot finish inside it, the step is skipped and says why. Making a picture costs no credits.
illustration: "generate" for a site with no confirmed style gets a picture in the generic style.
What an article carries #
{
"id": "b7d1f4a2-3c58-4e90-a6b1-5f08c2e9d374",
"status": "ready",
"url": "/api/v1/articles/9f3b1c2a-6d4e-4b7a-8c15-2e0a7d91b3f4/illustration?i=b7d1f4a2-3c58-4e90-a6b1-5f08c2e9d374",
"altText": "Flat shapes of a ferry crossing a calm blue strait under a pale sky.",
"caption": "Plate 4 - Ferry timetables",
"label": "AI-generated",
"styleLabel": "House style",
"regenerating": false,
"regenerationsLeft": 4
}| Field | Notes |
|---|---|
status | ready, skipped, generating or failed. url exists only when ready. |
label | AI-generated. |
styleLabel | House style or Abstract editorial: which style made it. |
caption | {topic}, at most 200 characters; otherwise the topic. A {n} plate number counts up per style, and a regenerated picture keeps its plate number while the style is the same. |
altText |
GET on url, using the same key. The label in exports is one of two sentences, depending on the style: “AI-generated, in the site’s house style. No real people, places or logos.” or “AI-generated, abstract editorial. No real people, places or logos.”
Ask for a new picture #
POST /articles/{id}/illustration/regenerate needs an API key with the edit scope. It is an ordinary edit, like adding a source. It is not an MCP tool. It replaces a picture the article already has; an article that has never had one answers 409 no_illustration.
curl -X POST "$BRENZURI_URL/api/v1/articles/$ARTICLE_ID/illustration/regenerate" \
-H "Authorization: Bearer $BRENZURI_KEY"illustration.regenerating: true. The new picture is made after the response. Read the article until illustration.regenerating is false.
const url = `${process.env.BRENZURI_URL}/api/v1/articles/${articleId}`;
const headers = { Authorization: `Bearer ${process.env.BRENZURI_KEY}` };
await fetch(`${url}/illustration/regenerate`, { method: 'POST', headers });
let article;
do {
await new Promise((r) => setTimeout(r, 3000));
article = await (await fetch(url, { headers })).json();
} while (article.illustration?.regenerating);
console.log(article.illustration?.status, article.illustration?.lastFailure ?? '');| Limit | Value |
|---|---|
The new picture is a new version, Illustration regenerated, and it names the key. An approved article goes back toneedsReview, and the label with it.An article that has never had a picture: 409 no_illustration. A language version never has one, so asking for a new picture of a version answers the same.A Beat’s article keeps the picture it was written with: 409 beat_article.Only one at a time per article: 409 illustration_regenerating.If this deployment has no image service, GET /sites/{siteID}/house-stylesaysenabled: falseand regenerating answers 503illustrations_off.
In exports and on your site #
| Where | The picture | The label |
|---|---|---|
illustration: the bytes when small, and always a signed address for them | label and styleLabel |