---
title: "Extract Text Ocr"
method: POST
path: "/v1/convert/ocr"
tags: ["v1", "v1-convert"]
---

# Extract Text Ocr

`POST /v1/convert/ocr`

## Request

- Base URL: `https://api.enconvert.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enconvert.com/v1/convert/ocr`
- Auth: none declared

Extract text from image or PDF using OCR

Args:
    file: Image or PDF file to extract text from
    output_filename: Optional custom output filename. If not provided, uses input filename with .txt extension.
    direct_download: If True (default), return file directly. Set to False for JSON metadata.

## Headers

- `X-API-Key` string, nullable
- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/enconvert/apis/conversion-api.md) · [All operations](https://skmtc.dev/enconvert/apis/conversion-api/llms.txt) · [OpenAPI document](https://skmtc.dev/enconvert/apis/conversion-api/revisions/b8c820393569?raw)
