Skip to content

Request and response ​

POST https://api.handwriting-ai.com/v1/renders

Content-Type: application/json

Authorization: Bearer hw_live_...

The machine-readable description is openapi.yaml. This page lists the same fields in one place. Guides for each group are Render, Page setup, and Handwriting.

Request ​

Only text is required. Omitted fields use the defaults below.

FieldTypeDefaultConstraint
textstring1–20,000 characters for JPEG or PNG. 1–40,000 for PDF.
font_idstringcaveatA catalog id, or a private id enabled on the key.
font_size_ptnumber or "auto"228–72.
max_font_size_ptnumber368–72. Used when the size is auto.
page_sizestringa4See Page setup.
orientationstringportraitportrait or landscape.
paperstringplainSee Page setup.
tintstringwhitewhite, cream, aged, dark.
grid_sizestringsmallsmall or large, for grid and dots.
alignmentstringleftleft, center, right.
directionstringautoauto, ltr, rtl.
margins_mmobjectpaper defaulttop, right, bottom, left, each 0–80.
line_heightnumber1.30.8–3.
paragraph_spacing_mmnumber00–30.
letter_spacing_mmnumber0-0.5–3.
word_spacing_mmnumber00–10.
pen_weightnumber10–5.
inkstring#000000# plus six hex digits.
realismstringnaturaloff, subtle, natural, realistic, lifelike.
realism_advancedobjectpresetSlider overrides. See Handwriting.
page_lookobjectnoneTexture, shading, and focus. Enabled per key.
seedintegernew variation0–2147483647.
output.formatstringjpegjpeg, png, pdf.
output.dpiinteger150150, 300, 600.
output.backgroundstringpaperpaper, or transparent for PNG.

realism_advanced accepts word_placement, line_starts, line_spacing, ink_flow, ink_texture, letterform_variation, and tilt_each_letter.

page_look accepts paper_texture (0–100), paper_texture_style (fine, fiber, laid), shading (0–100), and soft_focus (0–100).

Response ​

FieldTypeMeaning
request_idstringId for support and your logs.
seedintegerVariation that was drawn.
font_idstringFont that was used.
font_size_ptnumberSize that was used.
page_countintegerPages in the result.
unsupported_charactersstring arrayCharacters the font could not draw.
expires_atstringISO 8601 time when the links expire.
pagesarrayJPEG or PNG files. Absent for PDF.
fileobjectPDF file. Absent for JPEG and PNG.

Each page has page, width, height, media_type (image/jpeg or image/png), and url.

file has media_type (application/pdf) and url.

Status ​

GET https://api.handwriting-ai.com/v1/status

No API key. The response is { "status": "ok", "version": "1.0.0" }.

Keys are enabled after you request access.