OCR

ocr/ocr/google by Google Cloud
OCRProvider default · Sync · PDF input · Image input
Price from
$1.50 / 1K pages
Tasks
1
OCR
Regions
Mode
sync
Input
PDF, Image
Output
text, bounding_boxes

About Google Cloud OCR

Optical Character Recognition or Reader (OCR) is the electronic or mechanical conversion of images of typed, handwritten or printed text into machine-encoded text. The image can be a scanned document or a photo of a license plate, a road sign or anything else that contains text (type of files allowed: jpg, jpeg, png, tiff) .

Google Cloud OCR is Google Cloud's default model for OCR available on Eden AI for OCR, from $1.50 / 1K pages. Call it with the same API key as every other Eden AI model by sending its model string to the Universal AI endpoint.

Learn more about OCR APIs on Eden AI

Tasks and prices

Google Cloud OCR is available on Eden AI for 1 tasks. Each task has its own model string and price: send that string to the Universal AI endpoint to use the model for that task.

Task
Price
Regions
Mode
Docs
Playground
OCRocr/ocr/google
$1.50 / 1K pages
sync

Parameters

What you send and what you get back when you call Google Cloud OCR through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.

Input

  • file (required): file (PDF, images). PDF or image file ID from /v3/upload or direct file URL
  • language: text. Document language code. Most providers detect the language themselves and ignore this field; providers that cannot detect it reject requests that omit it. Check

Response

  • text
  • bounding_boxes

Estimate your monthly cost

Enter your monthly volume for OCR to compare Google Cloud OCR with its cheapest alternatives.

Call Google Cloud OCR with Eden AI

Send the model string to the Universal AI endpoint. To use another model, copy its string from the table above.

import requests

response = requests.post(
    "https://api.edenai.run/v3/universal-ai",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "ocr/ocr/google",
        "input": {"file": "https://example.com/document.pdf"},
    },
)
print(response.json())

Questions about Google Cloud OCR

On Eden AI, Google Cloud OCR costs $1.50 / 1K pages for OCR. The Tasks and prices table lists the price for each task, and you only pay for what you use.

On Eden AI, Google Cloud OCR is available for: OCR. Input: PDF, Image. Output: text, bounding_boxes.

Eden AI offers OCR from 7 providers, all callable with the same API key. The cheapest models are compared just below.

More from Google Cloud

Other Google Cloud models on Eden AI, for every task.