# Whet

> Whet is an agentic design tool for print: an editor with layers, type, vectors and masks, and an agent that takes a job in plain words, does it in the file within print rules, and checks the result before it reports.

Whet runs in the browser and is made by lptrdigital in the Netherlands. A person gives Whet a job — “make this print-ready for DTF”, “take the date out”, “do a logo exploration for a bakery” — and Whet's agent carries it out: it plans the steps, does what a designer does by hand in Illustrator with the editor's own tools, checks every step against the print rules, and reports what it measured. The person can work by hand on the same file at any time; nothing Whet makes is locked. Sign up at [https://whet.design/sign-up](https://whet.design/sign-up).

## What Whet does

- **The editor.** A canvas of frames (a print page, a gang sheet, a frame inside a frame), layers and groups, 16 blend modes, layer masks, live text in open-licence fonts, vector shapes, gradients and a brush. Opens PNG, JPEG, WebP and PDF. Exports PNG, TIFF, JPEG, PDF and SVG in sRGB; in PDF and SVG, text and vector layers stay vectors.
- **The agent.** Whet takes a job, not a command. It shows its plan, then works in the document the way a person would: it selects, masks, separates, redraws, retypes, recolours, places and arranges, through the same operations as the editor's tools. Each step is checked before it counts. It never overwrites a person's layers: it works on a copy and hides the original. When a choice belongs to the person, it stops and asks, then carries on. Several chats can run at once, and a run can be stopped at any point. Every number it reports is measured by Whet, not written by the model.
- **Print rules.** A frame can have an output target; today that is DTF transfer (300 dpi, lines at least 0.5 mm, type at least 8 pt). Whet checks the print against it, fixes what it can — soft glows and halos, lines too thin to print, stray specks, low resolution, AI artwork without clean edges — and says what it could not. A soft proof shows the frame as it prints in Coated FOGRA39.
- **Create.** New design work from the chat, built as frames of ordinary layers: logo explorations, posters and layouts, and ad campaigns from a brand kit Whet reads from a website.
- **Proofs.** A frozen proof of a frame, shared by link. The customer approves it or asks for a change, without an account.

Not built today: PSD, TIFF and SVG import; PDF/X-4, CMYK and spot-colour export; print targets other than DTF; two editors with presence in one document; designs for websites and app screens.

## For agents

- The public API below covers font identification and jobs (a file Whet makes print-ready with nobody at the screen). The editor and Create have no public API and no MCP server yet: send a person to https://whet.design for those.
- Don't call an endpoint that is not in [openapi.json](https://whet.design/api/v1/openapi.json).
- Every docs page is also Markdown at its own address plus `.md`; see [Docs for agents](https://whet.design/docs/agents.md).

## API

- Base URL: https://whet.design/api/v1
- OpenAPI 3.1 spec: [openapi.json](https://whet.design/api/v1/openapi.json) — the full contract, with examples
- Auth: `Authorization: Bearer whet_sk_…`. Keys belong to an organisation; owners and admins create them in the Whet app under [Developers](https://whet.design/dashboard/developers). A key is shown once; keep it server-side.
- Limits per key: 30 requests per rolling minute, 4 in flight, 1000 successful identifications per rolling 24 h. Over a limit: 429 with `Retry-After` (seconds).
- Every response has `X-Request-Id` (and `request_id` in JSON bodies).

## Endpoints

- `POST /api/v1/fonts/identify` (scope `fonts:identify`): which font a word in an image is set in.
  - Body, either `multipart/form-data`: `image` (file), `text`, optional `box` (`x,y,w,h`), optional `color` (`#rrggbb`); or `application/json`: `{"image": "<base64>", "text": "…", "box": [x, y, w, h], "color": "#rrggbb"}`.
  - Image: PNG, JPEG or WebP, at most 10 MB. No image URLs. `text`: the word exactly as printed, 1 to 64 characters. One word per request; crop or `box` tightly.
  - Takes 9 to 14 s per word: use a client timeout of at least 70 s.
  - Answer: `{text, decision, match?, shortlist, reason?, request_id}`.
    - `decision: "same"`: confident identification; `match` is the font (as far as an open catalogue can say).
    - `decision: "closest"`: `match` is the nearest open font — a substitute, not the font itself.
    - `decision: "none"`: no font fits; no `match`; `shortlist` still lists the nearest families.
  - Only open-licence fonts are matched: 1,478 Google Fonts families. `licence` is given per font.

```sh
curl https://whet.design/api/v1/fonts/identify \
  -H "Authorization: Bearer $WHET_API_KEY" \
  -F image=@word.png -F text=Drukbaas
```

- `POST /api/v1/jobs` (scope `jobs:run`): queue a file for Whet to make print-ready. Answers 202 at once with the job.
  - Body, `multipart/form-data` (`file` and fields as text) or `application/json` (`file` base64): `action` (default `print_ready`), `instructions`, `target` (default `dtf`), `name`, `max_usd`, `metadata` (your object, given back untouched).
  - File: PDF, PNG, JPEG, WebP or SVG, at most 50 MB. No URLs.
- `GET /api/v1/jobs/{id}`: the job. Poll every 5 to 10 s until `status` is `done` (print-ready), `needs_review` (`reasons` says why; `document_url` opens it in Whet) or `failed` (`error`). Whet retries its own faults (`attempts`, at most 3) and never waits on a question: it becomes a reason.
- `GET /api/v1/jobs?status=&limit=`: the organisation's jobs, newest first.

### Automations

An automation is set up in the Whet app (Automations): what Whet does with each file, and an event URL on your own system. Files reach it by mail to its own address, or here. Whet sends no mail of its own: outcomes go to your event URL.

- `POST /api/v1/automations/{id}/runs`: start a run. Sign the raw body with the automation's secret (`X-Whet-Timestamp: <unix s>`, `X-Whet-Signature: sha256=<hex HMAC-SHA256 of "<timestamp>.<body>">`) or send an API key with `jobs:run`. Body as for jobs (`file` and `metadata`), or JSON `{"file_url": "https://…", "metadata": {…}}` (public https only, no redirects). The automation's settings decide the rest. Answers 202 with the run.
- `GET /api/v1/automations/{id}/runs/{run}` (API key): where a run stands.
- `GET /api/v1/automations/{id}/events?before=&limit=` (API key): the events Whet sent, newest first, to catch up.
- Events: `POST` to your event URL, signed the same way with the automation's secret, header `X-Whet-Event`. Types `run.done`, `run.needs_review`, `run.failed`, `test`. Body `{id, type, created_at, automation, run: {id, status, summary, reasons, document_url, files: [{name, bytes, url}], source, metadata}}`; file URLs work for 7 days without a login. Answer 2xx within 10 s; otherwise Whet tries again (1 min, 5 min, 30 min, 2 h, 6 h, then every 12 h, 10 tries). Events can arrive twice: dedupe on `id`.

```sh
curl https://whet.design/api/v1/jobs \
  -H "Authorization: Bearer $WHET_API_KEY" \
  -F file=@artwork.pdf -F target=dtf -F 'metadata={"order":"1042"}'
```

## Plans

Details: [Pricing](https://whet.design/pricing) ([Markdown](https://whet.design/pricing.md)). Prices are in US dollars, before tax. API limits don't depend on the plan.

- Free: $0. The editor, every Whet edit and one Create run.
- Pro: $19 a month. 100 Create credits a month: about 12 logo explorations or campaigns, or up to 50 posters and layouts.
- Ultra: $59 a month. 400 Create credits a month: about 50 logo explorations or campaigns, or up to 200 posters and layouts.

A logo exploration or campaign is 8 credits; a poster or layout is 2. Credits are taken once work reaches the canvas, and unused credits don't carry over.

## Errors

JSON: `{"error": {"code", "message", "docs_url"}, "request_id"}`. Branch on `code`; retry only the codes marked retry (after `Retry-After`, or with exponential backoff, at most 3 tries).

- `missing_api_key` (401): No `Authorization: Bearer whet_sk_…` header.
- `invalid_api_key` (401): The key is malformed, unknown or revoked.
- `insufficient_scope` (403): The key does not carry the scope this endpoint needs.
- `invalid_request` (400): A field is missing or invalid; the message names it.
- `unsupported_media_type` (415): The body is not multipart/form-data or application/json.
- `unsupported_image` (415): The image is not a PNG, JPEG or WebP Whet can read.
- `unsupported_file` (415): The file is not a PDF, PNG, JPEG, WebP or SVG Whet can open.
- `payload_too_large` (413): The file is larger than the endpoint allows (10 MB for images to identify, 50 MB for jobs).
- `not_found` (404): No such object for this key's organisation.
- `invalid_signature` (401): The X-Whet-Signature does not match the body, or the timestamp is more than 5 minutes off.
- `automation_paused` (409): The automation is paused; resume it in the dashboard.
- `rate_limited` (429, retry): Too many requests for this key right now; wait `Retry-After` seconds.
- `daily_limit_exceeded` (429, retry): The key's 24-hour quota is used up; `Retry-After` says when a slot frees.
- `upstream_timeout` (504, retry): Identification took longer than 60 s. Retry once; crop to the word if it repeats.
- `upstream_error` (502, retry): Whet's identification service failed. Retry with backoff.
- `service_unavailable` (503, retry): Whet's identification service is not reachable. Retry with backoff.
- `internal_error` (500, retry): Something failed inside the API gateway. Retry with backoff.

## Optional

- [Home](https://whet.design): the product, with demos.
- [Terms](https://whet.design/terms), [Privacy](https://whet.design/privacy), [Acceptable use](https://whet.design/acceptable-use), [Imprint](https://whet.design/imprint).

## Docs pages (Markdown)

- [Whet API](https://whet.design/docs.md): Whet's print tools over HTTP, starting with font identification. One key per organisation, a scope per API, the same errors everywhere.
- [Identify a font](https://whet.design/docs/fonts/identify.md): Send one word from an artwork and the text it reads. Whet answers with a decision, a single match and a shortlist of the closest open font families.
- [Errors](https://whet.design/docs/api/errors.md): Every error is JSON with a stable code. Branch on the code, never on the message.
- [Docs for agents](https://whet.design/docs/agents.md): Written for the agent that calls Whet, then for you. Give a coding agent one address and it gets the endpoint, the fields, every error code and the rules for telling a customer what Whet found.
