Developer API · REST & OpenAPI 3.1

Real handwriting, one POST away.

A synchronous handwriting API. Send text, get print-ready PDF, PNG or SVG pages—or raw (x, y) strokes in drawing order for pen plotters. No fonts, no polling queues.

  • ~25 ms renders
  • 1,500+ hands
  • Idempotency-Key retries
  • No credit card to test
curl https://api.inkhand.app/v1/handwriting \
  -H "Authorization: Bearer ink_test_..." \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from the API",
    "hand": "8pafm",
    "format": "svg"
  }'

Two endpoints, one engine

Finished pages or raw pen strokes

Use the same layout engine as our editor for print-ready files, or pull raw single-line pen paths straight into your plotter or canvas.

POST /v1/documentsBilled per page returned

Print-ready pages & cards

Full pagination, margins, 11 papers (plain, college, wide, legal pad, 5 mm squared, dot grid, Seyès, German Lineatur), Markdown styling, tables, LaTeX maths and realism controls (ballpoint, gel, fountain ink, paper grain, crossed-out mistakes).

  • Vector PDF at real A4, A5, Letter or Legal size
  • PNG at 150 dpi, 300 dpi HD or transparent background
  • SVG pages (or ZIP / base64 JSON with Accept: application/json)
Handwritten notes rendered on college ruled paper by the InkHand APIHandwritten card rendered on plain stationery by the InkHand API
POST /v1/handwritingBilled per 150 words

Raw pen paths for plotters

Built for AxiDraw, Bantam NextDraw, iDraw, Cricut and custom robot-pen fleets. Receive ordered pen-down polylines or a clean single-line SVG strip—so your machines write fluid human strokes instead of repeating font shapes.

  • format: "strokes" returns exact (x, y) polylines in drawing order
  • format: "svg" returns single-line vector paths with optional ink flow
  • Deterministic seed per recipient guarantees unique handwriting per card
Paper-cut illustration of a mechanical pen plotter drawing a blue ink curve

Recipes

Ship in five minutes

Plain HTTP with Bearer authentication, predictable JSON or binary responses, and an llms.txt spec your coding assistant can read directly.

POST /v1/documents

Multi-page PDF with real pen ink

Send plain text or Markdown (headings, bold, highlights, tables, maths) and get a vector PDF at exact A4 or US Letter size, ready to print or mail.

curl https://api.inkhand.app/v1/documents \
  -H "Authorization: Bearer ink_live_..." \
  -H "Idempotency-Key: order-8841-letter" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Dear Maya,\n\nThank you for your order. Every card we send is written fresh.\n\nWarmly,\nSam",
    "hand": "br_119",
    "format": "pdf",
    "paper": "plain",
    "page_size": "a5",
    "pen": "fountain",
    "ink_flow": 0.4,
    "ink_texture": 0.35
  }' \
  -o thank-you.pdf

Returnsapplication/pdf · vector strokes at real A5 size · billed per page returned

Why teams switch from fonts

Fonts repeat. Hands don't.

Recipients spot a font-based card the second two “e”s sit next to each other. Our model generates fresh pen trajectories on every word.

A handwriting font“banana”, written 4 times

All four laid on top of each other

One shape, stamped four times.

InkHand“banana”, written 4 times
All four laid on top of each other

Four different words, as a hand writes them.

  • Built for reliabilityRFC 9457 application/problem+json errors, X-Request-Id on every call and 24-hour Idempotency-Key replays.
  • Transparent limitsIETF RateLimit and RateLimit-Policy headers on every response, plus GET /v1/usage for remaining pages.
  • 88 curated + 1,743 totalGET /v1/hands returns vetted print, slanted and cursive hands with preview SVGs; ?all=true unlocks every id.
  • Fast responsesA typical card comes back in well under a second—no cold starts and no polling loop.

API pricing

Predictable pricing, half the cost of font APIs

Start free with test keys. Subscribe for monthly pages and higher throughput, or run live keys pay-as-you-go with prepaid packs that never expire.

Test

Free

Build and verify your integration before paying a cent.

$0/month

Free for good. No card needed.

Create a test key
  • 50 watermarked test pages/mo
  • 10 requests/min, 1 at once
  • Live PAYG unlocked with any top-up (60/min)
  • Full OpenAPI reference & llms.txt

API

4.1¢ / page

Handwriting in your own app, print flow or plotter.

$40.83/month

$490 billed yearly · 2 months free

Get API
  • 1,000 API pages a month
  • 120 requests/min, 4 concurrent
  • Up to 5,000 words per request
  • Includes Pro web editor (all 1,500+ hands)

Scale

3.3¢ / page

For direct-mail agencies, robot-pen shops and high-volume apps.

$165.83/month

$1,990 billed yearly · 2 months free

Get Scale
  • 5,000 API pages a month
  • 300 requests/min, 12 concurrent
  • Up to 10,000 words per request
  • Priority support & commercial licence

Pay-as-you-go top-up packs

Prepaid pages that never expire. Work standalone (60/min) or as overflow after your monthly plan.

Full plan comparison
100 pages12¢/page
Buy for $12
500 pages9¢/page · −25%
Buy for $45
2,000 pages7¢/page · −42%
Buy for $140
10,000 pages5.5¢/page · −54%
Buy for $550

Need 20,000+ pages or an OEM deal?

Custom volume, a handwriting style made for your brand, and dedicated support.

Talk to us

API questions

How do test keys differ from live keys?

Every account can create free test keys (ink_test_...) with 50 pages a month at 10 requests a minute. Test responses carry a small watermark and are never billed. Live keys (ink_live_...) return clean files and work on the API plan, the Scale plan, or with top-up pages.

Can I drive a pen plotter or writing robot from the API?

Yes. Call POST /v1/handwriting with format set to "strokes" (or "svg" for a single-line vector). The model outputs real pen paths as ordered (x, y) polylines in drawing order—with natural variation on every letter, never repeating single-line font glyphs.

Is the API synchronous or queued?

Synchronous. Every POST /v1/documents and POST /v1/handwriting call returns the finished PDF, PNG, SVG, ZIP or strokes directly in the response—no webhook setup or polling loop required.

How are pages counted and billed?

POST /v1/documents bills one page per page returned. POST /v1/handwriting bills one page per 150 words. Failed requests are never charged. Monthly plan pages are used first (1,000 on API, 5,000 on Scale), then prepaid top-up pages that never expire. Pay-as-you-go live keys run at 60 requests/minute (2 concurrent).

Are retries safe?

Yes. Send an Idempotency-Key header (such as a UUID) on any POST request. Retrying with the same key within 24 hours replays the original response without billing again.

Do you offer higher volume or custom handwriting?

Yes. For 20,000+ pages a month, dedicated capacity or a handwriting style made for your brand, write to us from the contact page.

Build with real ink

Create a free test key in thirty seconds.