---
title: AI Image Optical Character Recognition (OCR)
slug: extract-text-from-image
url: https://apyverse.com/apyhub/service/extract-text-from-image
provider: ApyHub
categories: [Artificial Intelligence, Data Extraction, Image Processing]
auth: api_key
---

# AI Image Optical Character Recognition (OCR)

Extract text from images sent by URL or file upload. Choose ApyHub OCR or Azure Vision Read and receive structured text data.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `ai/image/ocr/url` | What it does Extracts text from an image fetched from a URL. The request body includes the image ur… | 500 |
| POST | `ai/image/ocr/file` | What it does Uploads an image file and extracts text from it. The response is a JSON object with a… | 500 |

## About

## What it does
Image Text Extraction turns images into text using OCR. Send an image by URL or upload a file, and choose whether to process it with ApyHub OCR or Azure Vision Read API.

Use the `/url` endpoint when the image already lives at a public URI, or `/file` when you have a binary upload. Both endpoints accept an optional `language` field with a BCP-47 code so you can hint at the text language in the image. The URL-based endpoint also supports `requested_service` and an `azure` object for custom Azure credentials, while the file upload endpoint exposes the equivalent Azure fields as `azure_key`, `azure_region`, `azure_endpoint`, `azure_account_id`, and `azure_access_token`.

The response contains a `data` object with `azure` and `apyhub` sections, depending on which extraction service you request. That makes it straightforward to plug into receipt capture, document digitisation, form reading, or any workflow that needs machine-readable text from screenshots and photos.

Use Image Text Extraction when you need to index image content, prefill forms from scans, or pull text out of uploaded assets without building your own OCR pipeline.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/extract-text-from-image
