GET
/ocr_translate
Requires Auth
Perform OCR and translate the text
Extract text from an image URL and translate it to the specified language
Parameters
url
*
query
string
URL of the image to process
dest
*
query
string
Target language code for translation
Example:
es
Code Examples
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
'https://nexus-api.dhurgham.dev/api/ocr-extract-text/ocr_translate?dest=es'
Example cURL Request
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexus-api.dhurgham.dev/api/ocr-extract-text/ocr_translate?dest=es'
frontend.example_response
{
"text": "string",
"original_text": "string"
}