OpenAdapterOpenAdapter
Tools

OCR — Image to Text

Extract text from images using OCR. Upload an image file or provide a base64-encoded image.

Base URL & authentication

Base URL: https://api.openadapter.in

All requests need an Authorization: Bearer sk-cv-... header. Generate or copy your API key from the Dashboard → API Keys page.

Endpoint: POST /v1/edge/ocr Cost per call: 0.15 credits Minimum plan: free

Extract text from images using OCR. Upload an image file or provide a base64-encoded image.

Request

curl https://api.openadapter.in/v1/edge/ocr \
  -H "Authorization: Bearer $OPENADAPTER_API_KEY" \
  -F "file=@image.png"
import requests
resp = requests.post(
    "https://api.openadapter.in/v1/edge/ocr",
    headers={"Authorization": f"Bearer {API_KEY}"},
    files={"file": open("image.png", "rb")},
)
print(resp.json())
import fs from 'fs';
const form = new FormData();
form.append('file', new Blob([fs.readFileSync('image.png')]));
const res = await fetch('https://api.openadapter.in/v1/edge/ocr', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.OPENADAPTER_API_KEY}` },
  body: form,
});
console.log(await res.json());

Base64 variant

Send a base64-encoded image instead of multipart upload:

curl https://api.openadapter.in/v1/edge/ocr/base64 \
  -H "Authorization: Bearer $OPENADAPTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image":"<base64>"}'

Pricing

Each call costs 0.15 credits. Available on the free plan and above.

On this page