Image-to-Text (OCR)
Technical documentation for dryAPI APIs, integration guides, and operational references.
Endpoint for requesting image2text (OCR) inference
NOTE
Prerequisite: To ensure a successful request, you must first consult the Model Selection endpoint to identify a valid model
slug, check specific limits and features, and verify LoRA availability.
OpenAPI
Request Img2 Txt
Authorization
bearerAuth In: header
Header Parameters
"application/json""application/json"Request Body
multipart/form-data
Image to text conversion parameters
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.dryapi.dev/api/v1/client/img2txt" \ -H "Accept: application/json" \ -F image="string" \ -F model="Nanonets_Ocr_S_F16"{
"data": {
"request_id": "c08a339c-73e5-4d67-a4d5-231302fbff9a"
}
}{
"data": {},
"message": "string",
"errors": [
null
],
"statusCode": 0
}{
"data": {},
"message": "string",
"errors": [
null
],
"statusCode": 0
}{
"message": "The selected model does not support Text To Image.",
"errors": {
"model": [
"The selected model does not support Text To Image."
]
}
}{
"message": "Too Many Attempts."
}