Handwriting to Text

Handwriting to Text API

Content

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.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

10 requests per minute

Endpoints

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=exact keeps the writing word for word, slips included. mode=tidy fixes obvious spelling mistakes and rejoins lines that only broke for lack of room, without rewording.
  • Words the model cannot read are written as [illegible], and illegibleCount counts them per photo.
  • truncated: true means 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

POST
https://opentools.ca/api/v1/tools/handwriting-to-text
Transcribe handwriting from one to five photos

Request Body

Content-Type: multipart/form-data

ParameterTypeRequiredDescription
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

400
Bad Request - Invalid mode, no file, more than 5 files, or an image that could not be decoded
401
Unauthorized - Invalid or missing API key
403
Forbidden - API key inactive or expired, or IP not allowed for this key
413
Payload Too Large - A photo is over 12 MB
415
Unsupported Media Type - A file is not an image
422
Unprocessable Entity - No readable handwriting was found in any photo
429
Too Many Requests - Per-minute or daily limit reached
500
Internal Server Error

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"

Ready to get started?

Create an API key to start using the Handwriting to Text API.

Rather use it in your browser? Open the Handwriting to Text