Image OCR
Image OCR Endpoint
POST /v1/image
Use this endpoint to extract text from a public image URL.
#Pricing
- 3 credits
Credits are only deducted for successful requests.
#Request Example
curl -X POST /v1/image \
-H "Authorization: Bearer your-token" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/receipt.png"
}'
#Request Body
{
"url": "https://example.com/receipt.png"
}
#Fields
urlrequired, must be a valid public URL- supported extensions:
.jpg,.jpeg,.png,.webp
#Response
{
"text": "Extracted text from the image"
}
#Typical Use Cases
- extract text from receipts and invoices
- read text from screenshots
- process scanned documents saved as images
- extract captions or labels from product photos
#Errors
422: URL is missing, invalid, or does not point to a supported image extension403: authenticated user has no remaining credits400: image could not be processed