Image to Text API

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.

/v1/imagetotext POST

Given an input image, return all detected texts and their bounding boxes.


  • image  required

    Image file to extract text from. Must be either JPEG or PNG format.


  • X-Api-Key  required

    API Key associated with your account.

Sample Request Live Demo!

Sample Response


Code Examples

1 2 3 4 5 6 7 import requests api_url = '' image_file_descriptor = open('YOUR_IMAGE.jpeg', 'rb') files = {'image': image_file_descriptor} r =, files=files) print(r.json())

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.