
Handwriting to Text API
Turn photos of handwritten notes, letters and lists into typed text with AI, cursive included. Exact transcription or a light tidy-up, then copy or download.
All API requests require a valid API key passed in the Authorization header as a Bearer token.
10 requests per minute
1 endpoint available
Overview
Transcribes handwriting (print or cursive, plus any printed text on the page) in one to five photos with an AI vision model and returns the text of each photo, plus all of it joined together.
Input
Send multipart/form-data. Put each photo in a file field; repeat the field to send up to five, for example the pages of one note. Each photo can be up to 12 MB. JPEG, PNG, WebP, GIF, AVIF and TIFF are read; other formats return 400.
Behavior
mode=exactkeeps the writing word for word, slips included.mode=tidyfixes obvious spelling mistakes and rejoins lines that only broke for lack of room, without rewording.- Words the model cannot read are written as
[illegible], andillegibleCountcounts them per photo. truncated: truemeans the reply hit the length limit and the end of that photo's text may be missing.- If no photo has any readable writing, the response is 422.
- Photos are sent to the model inline and are not stored.
Limits
10 requests per minute and 200 requests per day per API key. AI tools share these limits.
Endpoints
https://opentools.ca/api/v1/tools/handwriting-to-textRequest Body
Content-Type: multipart/form-data
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Required | Photo of handwriting. Repeat the field for up to 5 photos, 12 MB each. Results keep upload order. |
| mode | string Enum: exact, tidy | Optional | "exact" copies every word as written, mistakes included. "tidy" fixes obvious spelling mistakes and rejoins wrapped lines.Default: exact |
Response Example
{
"success": true,
"mode": "exact",
"pages": [
{
"text": "Groceries\n- milk\n- eggs\n- [illegible] bread\n- call Sam re: Saturday",
"empty": false,
"truncated": false,
"illegibleCount": 1
}
],
"text": "Groceries\n- milk\n- eggs\n- [illegible] bread\n- call Sam re: Saturday"
}Error Codes
Code Examples
curl -X POST https://opentools.ca/api/v1/tools/handwriting-to-text \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@note-page1.jpg" \
-F "file=@note-page2.jpg" \
-F "mode=tidy"Rather use it in your browser? Open the Handwriting to Text