File Translation api
API for translating PDF, DOCX, DOC, TXT, and image files. Supports both synchronous and asynchronous processing modes, bilingual translation (original + translated text), file uploads, and localized web UI (English/Arabic).
Subscription Plans
Basic
Basic plan
$5,000.00 /month
- ✔ 1,000 requests/month
- ✔ 100 requests/hour
- ✔ 20 requests/minute
Reviews (0)
Login to write a review
/
Beautiful web interface for file translation with support for file uploads, URL input, bilingual mode, and localization (English/Arabic).
Requires Authenticationcurl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexus-api.dhurgham.dev/api/file-translation-api/?lang=en'
/dl/{token}
Download a translated file using its download token
Requires Authenticationcurl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexus-api.dhurgham.dev/api/file-translation-api/dl/abc123'
/translate/chunks/{job_id}
Get list of all translated chunks for a PDF translation job
Requires Authenticationcurl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexus-api.dhurgham.dev/api/file-translation-api/translate/chunks/'
/translate/file
Translates a file from URL synchronously. Returns HTML page by default or JSON if format=json. Use this for small files (< 10MB). Supports bilingual mode to keep original text alongside translation.
Requires Authenticationcurl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexus-api.dhurgham.dev/api/file-translation-api/translate/file?file=https%3A%2F%2Fexample.com%2Fdocument.pdf&target=ar&format=html&async=false&bilingual=false'
/translate/file/async
Starts an asynchronous translation job. Returns immediately with job_id. Use this for large files (> 10MB) or when you need non-blocking processing.
Requires Authenticationcurl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexus-api.dhurgham.dev/api/file-translation-api/translate/file/async?file=https%3A%2F%2Fexample.com%2Flarge-document.pdf&target=ar&bilingual=false'
/translate/result/{job_id}
Get the result of a completed translation job. Returns download URL or HTML page.
Requires Authenticationcurl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexus-api.dhurgham.dev/api/file-translation-api/translate/result/a1b2c3d4?format=json'
/translate/status/{job_id}
Check the status and progress of an asynchronous translation job
Requires Authenticationcurl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexus-api.dhurgham.dev/api/file-translation-api/translate/status/a1b2c3d4'
/translate/file
Upload and translate a file. Supports both sync and async modes. Use POST for direct file uploads instead of URLs. Supports bilingual mode to keep original text alongside translation.
Requires Authenticationcurl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{}' \
'https://nexus-api.dhurgham.dev/api/file-translation-api/translate/file'