neatviz docs

neatviz turns words into on-brand images. You send blocks (a title, a kicker, a visual), pick a layout and a format, and get back a PNG drawn in your brand kit, with a fit report your agent can act on.

Quickstart

  1. Sign in with your email. Your first organization gets 25 free credits and a starter brand kit.
  2. Set your colours, fonts and logos under Brand kits.
  3. Make an API key under API keys and MCP.
  4. Render:
curl {origin}/v1/renders \
  -H "Authorization: Bearer $NEATVIZ_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "layout": "side", "format": "1.91:1",
        "blocks": { "kicker": "Field notes", "title": "Why AI never quotes your blog" } }'

The answer has the image URL. Images are public at that URL and cached for a year; the id is long and random.

Connect an agent (MCP)

The MCP server is at {origin}/mcp (Streamable HTTP).

Claude Code, Cursor, Windsurf and scripts

Send an API key in the Authorization header. The key decides the organization.

claude mcp add --transport http neatviz {origin}/mcp \
  --header "Authorization: Bearer nv_live_…"
{ "mcpServers": { "neatviz": { "url": "{origin}/mcp",
  "headers": { "Authorization": "Bearer nv_live_…" } } } }

Claude.ai and ChatGPT

Add a custom connector with the URL {origin}/mcp. The client opens a neatviz page: sign in, pick the organization, allow. No key is needed; you can revoke access by removing the connector.

Tools

ToolWhat it doesCost

A good loop: list_layouts and list_brands once, then render_frame, look at the image and its report, and revise_frame until nothing shrank or dropped. render_frame and revise_frame return the image itself, so the agent sees it.

REST API

Base URL {origin}/v1. Send Authorization: Bearer nv_live_… on every call except GET /v1/layouts. Bodies are JSON.

Method and pathWhat it does
GET /v1/layoutsLayouts, formats, blocks and visual kinds.
GET /v1/brandsThe organization’s brand kits.
POST /v1/rendersRender one image. 1 credit. Answers 201 with the render.
POST /v1/renders/{id}/reviseRender a new version with changes. The first two are free, then 1 credit.
GET /v1/renders/{id}One render, with its stored input and report.
GET /v1/renders?limit=20Recent renders.
POST /v1/imagesUpload a picture (a screenshot, a chart). Multipart file, raw bytes, or JSON { "data": "<base64>" }. Answers with an img_ id.
GET /v1/creditsThe balance.

A render answer

{
  "id": "rnd_8Kq3vT0wL2mN4pQ1",
  "url": "{origin}/i/rnd_8Kq3vT0wL2mN4pQ1.png",
  "width": 1200, "height": 628,
  "layout": "side", "format": "1.91:1", "brand": "brand_…",
  "report": { "fits": { "kicker": 1, "title": 0.92, "dek": 1 }, "dropped": [], "unused": [], "hints": [] },
  "credits": { "used": 1, "left": 23, "free_revisions_left": 2 },
  "photo_credits": [],
  "parent_id": null
}

Render input

FieldTypeNotes
layoutstringOne of the layouts below. Default hero.
formatstring1:1, 4:5, 1.91:1, 16:9 or 9:16. Default 1.91:1.
blocksobjectText blocks; see the limits below. Layouts with a title need one.
brandstringA brand kit id. Default: the organization’s default kit.
modestringlight or dark. Default: the kit’s mode.
visual, visual2objectPictures for the visual slots. See Visuals. Default: dither art.
seedintegerChanges the dither pattern. Same input and seed, same image.
scale1 or 22 doubles the pixel size, for retina screens.

Blocks

BlockMax charactersNotes

Layouts and formats

Every layout places its blocks on the format’s grid of cells. Wide formats and tall formats each have their own arrangement, so one layout works at every size.

LayoutWhat it isBlocksVisuals
FormatPixelsGridUse it for

Visuals, photos and screenshots

VisualExampleNotes
Dither art{ "kind": "dither" }Drawn from the brand colours. The default.
Stock photo{ "kind": "stock", "query": "warehouse workers" }Searched on Pexels, then Unsplash, in the frame’s orientation. The credit line comes back in photo_credits. When the kit has stock off, you get dither art and a hint.
Your image{ "kind": "image", "image": "img_…" }An upload from POST /v1/images, the app’s Images page, or an MCP upload.
Image by URL{ "kind": "image", "url": "https://…" }A public PNG, JPEG, WebP or GIF up to 8 MB.
Page screenshot{ "kind": "screenshot", "url": "https://…" }neatviz captures the public page at 1440×900 and frames it in a browser bar.

Pictures take fit (cover fills and crops, contain shows all of it) and chrome (browser adds a browser bar, good for screenshots). The picture layout shows the picture alone with a short caption.

Pictures from a chat

An agent in a chat app often cannot send the bytes of a picture you pasted. It calls create_upload_link and gives you a link. Drop or paste the picture there, then the agent calls list_images and uses the id.

Faces on quote cards

Add a photo, a name and a role to the brand kit. The quote layout shows them next to the quote. Override per render with blocks.name and blocks.role.

Fit report and revisions

Text never gets cut off. Each text block starts at its full size and shrinks until it fits its cells. The report says how far:

To revise, send only the changes to POST /v1/renders/{id}/revise (or revise_frame). null removes a block or a visual. The new render keeps the old one as parent_id. The first two revisions of an image are free, so an agent can look and improve without paying for each try.

Brand kits

A kit holds ground and ink colours for light and dark frames, two accents, a default mode, a title font and weight, a body font (Google Fonts), the corner radius, the background (flat, noise, dither or your image), a logo for light grounds and one for dark grounds, a person’s photo, name and role, and whether stock photos are allowed. Edit kits in the app; the preview there is drawn by the same engine as the API.

Organizations and keys

An organization holds brand kits, images, API keys, credits, members and usage. Run one per client or product. A person can belong to several and switch in the app.

RoleCan
OwnerEverything, including deleting the organization.
AdminEverything else: keys, billing, members.
MemberRender, edit brand kits, see usage.

The Usage page breaks renders and credits down by day, API key, brand kit, source (REST, MCP, app) and format.

Credits and billing

One render costs one credit. Its first two revisions are free; after that a revision costs one credit. A chain of revisions shares the two free ones, and the answer says how many are left in credits.free_revisions_left. A failed render gives back its credit or its free revision. view_render and every list call are free. Credits belong to the organization and do not expire.

PackCreditsPer render

Stripe takes the payment and saves the card for auto top up. Turn auto top up on in the app: when the balance falls under your limit, neatviz charges the pack you chose. If a charge fails, auto top up turns off. Every purchase gets an invoice by email.

Errors and limits

Errors come back as { "error": { "code", "message" } }. The message is written for the agent to act on.

StatusCodeMeaning
400invalid_inputThe input did not pass. errors lists each problem.
401unauthenticatedNo key, or the key is revoked.
402insufficient_creditsAdd credits or turn on auto top up.
404brand_not_found, image_not_found, render_not_foundThe id is not in this organization.
413, 415, 422too_large, bad_type, bad_urlA picture was over 8 MB, not an image, or not a public URL.
502render_failedThe render failed and the credit was returned. Try again.

Images up to 8 MB. SVG is accepted for logos only. Machine-readable summary: /llms.txt.