Skip to main content
POST
/
ocr
Extract text from image
curl --request POST \
  --url https://nanostudio.cloud/api/ocr \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image": "<string>",
  "language": "auto",
  "outputFormat": "text"
}
'
{
  "success": true,
  "data": {
    "text": "<string>",
    "confidence": 123,
    "processingTime": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
image
string
required

Base64 encoded image data

language
string
default:auto

Language code for text recognition

outputFormat
enum<string>
default:text

Output format for extracted text

Available options:
text,
json,
csv

Response

Text extracted successfully

success
boolean
data
object