The Image to Text API detects and extracts text from images using state-of-the-art optical character recognition (OCR) algorithms. It can detect texts of different sizes, fonts, and even handwriting.
https://api.api-ninjas.com/v1/imagetotext
Given an input image, return all detected texts and their bounding boxes.
Plan | Image Size Limit |
---|---|
Free | 200KB per image |
Premium | Up to 5MB per image |
image
requiredImage file to extract text from. Must be either JPEG or PNG format.
X-Api-Key
requiredAPI Key associated with your account.
https://api.api-ninjas.com/v1/imagetotext
Headers
X-Api-Key
Log in or sign up to get your API Key
1
1
2
3
curl -X POST "https://api.api-ninjas.com/v1/imagetotext" \
-H "X-Api-Key: YOUR_API_KEY" \
-F "image=@YOUR_IMAGE.jpeg"
If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.