Google OCR

When calling the API described on this page, the ID of a specific model is not provided. The request is made solely by specifying the correct method URL and valid parameters.

Model Overview

This API provides a feature to extract characters from images.

Setup your API Key

If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.

API Schema

Extract text from images using OCR.

post

Performs optical character recognition (OCR) to extract text from images, enabling text-based analysis, data extraction, and automation workflows from visual data.

Authorizations
AuthorizationstringRequired

Bearer key

Body
modelundefined · enumOptionalPossible values:
documentany ofRequired

The document file to be processed by the OCR model.

string · uriOptional
or
stringOptional
mimeTypestring · enumOptional

The MIME type of the document.

Possible values:
pagesany ofOptional

Specific pages you wants to process

or
or
or
Responses
post
/v1/ocr
201

Successfully processed document with OCR

Last updated

Was this helpful?