---
title: "OCR Extraction"
method: POST
path: "/v1/ocr"
tags: ["Vision"]
---

# OCR Extraction

`POST /v1/ocr`

## Request

- Base URL: `https://api.neosantara.xyz`
- URL: `https://api.neosantara.xyz/v1/ocr`
- Auth: HTTP bearer

Extract text from images using advanced OCR models.

## Request body

- object
  - `model` string
  - `image` string, required
  - `image_type` 'url' | 'base64'
  - `return_image` boolean
  - `prompt` string
  - `async` boolean

## Response `200`

Successful OCR extraction

## Other responses

- `400`: Invalid image or model

---

[API](https://skmtc.dev/neosantara/apis/neosantara-ai-api.md) - [All operations](https://skmtc.dev/neosantara/apis/neosantara-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neosantara/apis/neosantara-ai-api/revisions/f87af696a63e?raw)
