Experience our video translation technology in action by exploring our interactive demo on GitHub: AKool Video Translation Demo.
API Endpoints
Translation Operations
- Create Video Translation - Translate videos into multiple languages and lip-sync
- Get Translation Result - Check processing status and retrieve translated video URLs
Resource Management
- Get Language List - Get supported languages for translation
Getting Started
Basic Workflow
-
Get Available Languages:
- Use the Get Language List API to see all supported target languages
- Note which languages require specific voice IDs
-
Create Translation:
- Call the Create Video Translation API with your video URL
- Set
source_languageto “DEFAULT” for automatic language detection - Specify target languages and optional voice mappings
- Configure additional options like lip-sync, captions, and background music removal
-
Monitor Progress:
- Use the Get Translation Result API to check processing status
- Download the translated video URL when status reaches “Completed” (status = 3)
Key Features
Automatic Language Detection
Setsource_language to “DEFAULT” to automatically detect the original language of your video content.
Multiple Language Translation
Translate to multiple languages simultaneously by providing comma-separated language codes in thelanguage parameter.
Lip-Sync Technology
Enablelipsync to synchronize mouth movements with the translated audio for more natural-looking results.
Caption Support
Add, translate, or replace subtitles with various caption handling options.Advanced Translation Controls
Fine-tune translations with custom word mappings, pronunciation corrections, and translation styles.Response Code Description
Please note that if the value of the response code is not equal to 1000, the request
has failed or encountered an error.
Video Translation Status Codes
When checking results, thevideo_status field indicates the current processing state:
Best Practices
Video Requirements
- Duration: Keep videos under 60 seconds for optimal processing time
- Size: Maximum file size is 300MB
- Frame Rate: Maximum 30fps supported
- Audio: Ensure your video contains clear audio for accurate translation
- Encoding: Use standard encoding formats (H.264 recommended)
Translation Quality Tips
- Clear Speech: Videos with clear, well-articulated speech produce better translations
- Background Noise: Consider using
remove_bgm: trueto remove background music for clearer voice translation - Speaker Count: Specify the correct number of speakers for better voice separation
API Usage Tips
- Webhook: Use the
webhookUrlparameter to receive notifications when processing is complete - Batch Processing: For multiple videos, process them in parallel but monitor your quota usage
- Error Handling: Implement proper retry logic for failed translations
- Result Management: Download and save translated videos promptly as they expire after 7 days