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
- Sign in with your email. Your first organization gets 25 free credits and a starter brand kit.
- Set your colours, fonts and logos under Brand kits.
- Make an API key under API keys and MCP.
- 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
| Tool | What it does | Cost |
|---|
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 path | What it does |
|---|---|
GET /v1/layouts | Layouts, formats, blocks and visual kinds. |
GET /v1/brands | The organization’s brand kits. |
POST /v1/renders | Render one image. 1 credit. Answers 201 with the render. |
POST /v1/renders/{id}/revise | Render 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=20 | Recent renders. |
POST /v1/images | Upload a picture (a screenshot, a chart). Multipart file, raw bytes, or JSON { "data": "<base64>" }. Answers with an img_ id. |
GET /v1/credits | The 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
| Field | Type | Notes |
|---|---|---|
layout | string | One of the layouts below. Default hero. |
format | string | 1:1, 4:5, 1.91:1, 16:9 or 9:16. Default 1.91:1. |
blocks | object | Text blocks; see the limits below. Layouts with a title need one. |
brand | string | A brand kit id. Default: the organization’s default kit. |
mode | string | light or dark. Default: the kit’s mode. |
visual, visual2 | object | Pictures for the visual slots. See Visuals. Default: dither art. |
seed | integer | Changes the dither pattern. Same input and seed, same image. |
scale | 1 or 2 | 2 doubles the pixel size, for retina screens. |
Blocks
| Block | Max characters | Notes |
|---|
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.
| Layout | What it is | Blocks | Visuals |
|---|
| Format | Pixels | Grid | Use it for |
|---|
Visuals, photos and screenshots
| Visual | Example | Notes |
|---|---|---|
| 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:
fits: the scale each block was drawn at. 1 is full size. Under about 0.75 the words are too long for the frame.dropped: blocks left out. The dek goes first, when it would fall under 0.7.unused: blocks you sent that this layout does not show.hints: plain advice, for example how many words to cut.
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.
| Role | Can |
|---|---|
| Owner | Everything, including deleting the organization. |
| Admin | Everything else: keys, billing, members. |
| Member | Render, 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.
| Pack | Credits | Per 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.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_input | The input did not pass. errors lists each problem. |
| 401 | unauthenticated | No key, or the key is revoked. |
| 402 | insufficient_credits | Add credits or turn on auto top up. |
| 404 | brand_not_found, image_not_found, render_not_found | The id is not in this organization. |
| 413, 415, 422 | too_large, bad_type, bad_url | A picture was over 8 MB, not an image, or not a public URL. |
| 502 | render_failed | The 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.