← All APIs Text

OCR Text Extractor API

Pulls readable text out of a picture.

Send a picture, either as a public web address or as base64-encoded image data, and get back the plain text found inside it.

POSThttps://ocr.underscoredone.com/read
Pricing

$0.01 per request — pay via x402/USDC. No account needed.

How to use

Provide either image_url or image_base64, never both. Use this when you have a picture (screenshot, scanned document, receipt, sign) and need the text inside it as plain text. Check the confidence score before trusting the result for critical decisions; low confidence means the image may be blurry or low quality.

Input parameters
NameTypeRequiredDescription
image_urlstring/nullnoA public web address pointing to the picture. Leave this out if you are sending the picture as text instead.
image_base64string/nullnoThe picture encoded as text. Leave this out if you are sending a web address instead.
langstring/nullnoThe language of the words in the picture. Only English ('eng') is supported right now.
Example response
{
  "api_version": "1.0.0",
  "text": "TOTAL 24.50\nTHANK YOU",
  "word_count": 4,
  "confidence": 91.4,
  "lang": "eng",
  "source": "image_url"
}
Error responses
StatusMeaning
400Bad request — your input failed validation or could not be processed. Check the detail field for specifics.
402Payment required. Send a signed USDC payment on Base Mainnet or Solana Mainnet using the x402 protocol.
422Unprocessable — a required field is missing or the wrong type. Check the detail field for specifics.
Links