File Translation api

0.0 (0)

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
Login to Subscribe
No reviews yet. Be the first to review this API!
GET /
| View Details

Beautiful web interface for file translation with support for file uploads, URL input, bilingual mode, and localization (English/Arabic).

Requires Authentication
curl -X GET \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  'https://nexus-api.dhurgham.dev/api/file-translation-api/?lang=en'
GET /dl/{token}
| View Details

Download a translated file using its download token

Requires Authentication
curl -X GET \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  'https://nexus-api.dhurgham.dev/api/file-translation-api/dl/abc123'
GET /translate/chunks/{job_id}
| View Details

Get list of all translated chunks for a PDF translation job

Requires Authentication
curl -X GET \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  'https://nexus-api.dhurgham.dev/api/file-translation-api/translate/chunks/'
GET /translate/file
| View Details

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 Authentication
curl -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'
GET /translate/file/async
| View Details

Starts an asynchronous translation job. Returns immediately with job_id. Use this for large files (> 10MB) or when you need non-blocking processing.

Requires Authentication
curl -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'
GET /translate/result/{job_id}
| View Details

Get the result of a completed translation job. Returns download URL or HTML page.

Requires Authentication
curl -X GET \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  'https://nexus-api.dhurgham.dev/api/file-translation-api/translate/result/a1b2c3d4?format=json'
GET /translate/status/{job_id}
| View Details

Check the status and progress of an asynchronous translation job

Requires Authentication
curl -X GET \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  'https://nexus-api.dhurgham.dev/api/file-translation-api/translate/status/a1b2c3d4'
POST /translate/file
| View Details

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 Authentication
curl -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'