Developer Guide — Integrate AITranslate API in Minutes

Published on October 2025 · AITranslate Team

Developers can integrate AITranslate in less than 5 minutes. The API uses a simple JSON structure with built-in authentication fields and supports both synchronous text translation and asynchronous file translation with callbacks.

Step 1 — Authenticate

Every request must include your API credentials inside an authentication object:

"authentication": {
  "apiKey": "YOUR_API_KEY",
  "apiSecret": "YOUR_API_SECRET"
}
        

Step 2 — Translate Text Instantly

POST https://aitranslate.in/api/translate/text
Content-Type: application/json

{
  "authentication": {
    "apiKey": "YOUR_API_KEY",
    "apiSecret": "YOUR_API_SECRET"
  },
  "text": "Hello world!",
  "targetLang": "es"
}
        

Step 3 — Translate Files Asynchronously

Large image or PDF files are handled via /api/translate/file using a callback URL.

POST https://aitranslate.in/api/translate/file
Content-Type: application/json

{
  "authentication": {
    "apiKey": "YOUR_API_KEY",
    "apiSecret": "YOUR_API_SECRET"
  },
  "fileUrl": "https://example.com/sample.pdf",
  "targetLang": "de",
  "callbackUrl": "https://yourapp.com/api/receive"
}
        
Pro Tip: Always store your jobId and use /api/translate/status to poll translation progress.

Step 4 — Handle the Callback

Once the translation finishes, AITranslate will POST the result to your callbackUrl. You’ll receive the translated text or download link for the file.

See full implementation samples → Visit AITranslate API Docs