Terminal$curl "https://api.xl8.ai/v1/user" --header "Authorization: Bearer <API_KEY>"
Output>{"status": 0, "email": "contact@xl8.ai", "first_name": "Contact", "last_name": "XL8", "date_joined": "2019-10-01 00:00:00.000000", "email_notification": true, "user_id": 1, "translated_words": 0, "translated_documents": 0}
Terminal$curl -X GET "https://api.xl8.ai/v1/trans/languages"
Output>{"status": 0, "languages": {"da": ["en", "fi", "no", "sv"], "en": ["ar", "cs", "da", "de", "el", "es", "es-419", "fi", "fr", "he", "hu", "id", "it", "ja", "ko", "ms", "my", "my-zawgyi", "nl", "no", "pl", "pt", "pt-BR", "ro", "ru", "sv", "th", "tr", "vi", "zh-Hans", "zh-Hant"], "fi": ["da", "en", "no", "sv"], "fr": ["en"], "ko": ["en", "ja", "th", "zh-Hans"], "nl": ["en"], "no": ["da", "en", "fi", "sv"], "sv": ["da", "en", "fi", "no"], "th": ["en"], "zh-Hant": ["en"], "zh-Hans": ["en"], "es": ["en"], "ar": ["en"]}}
Terminal$curl -X GET "https://api.xl8.ai/v1/trans/languages?realtime_only=true"
Output>{"status": 0, "languages": {"ko": ["en", "ja", "zh-Hans"], "en": ["ar", "cs", "da", "de", "el", "es", "es-419", "fi", "fr", "he", "hu", "id", "it", "ja", "ko", "ms", "nl", "no", "pl", "pt", "pt-BR", "ro", "ru", "sv", "th", "tr", "vi", "zh-Hans", "zh-Hant"], "zh-Hans": ["en"], "th": ["en"], "zh-Hant": ["en"], "es": ["en"], "ar": ["en"]}}
Terminal$curl -X GET "https://api.xl8.ai/v1/trans/languages?source_language=en"
Output>{"status": 0, "languages": {"en": ["ar", "cs", "da", "de", "el", "es", "es-419", "fi", "fr", "he", "hu", "id", "it", "ja", "ko", "ms", "my", "my-zawgyi", "nl", "no", "pl", "pt", "pt-BR", "ro", "ru", "sv", "th", "tr", "vi", "zh-Hans", "zh-Hant"]}}
Terminal$curl -X GET "https://api.xl8.ai/v1/trans/languages/options/en/ko"
Output>{"status": 0, "formality": ["HAPSYO", "HAO", "HAEYO", "HAGAE", "HAE", "HAERA", "OTHER"], "genre": []}
Terminal$curl -X POST 'https://api.xl8.ai/v1/trans/request' --header 'Content-Type: application/json' --header 'Authorization: Bearer <API_KEY>' --data-raw '{"source_language": "en", "target_language": "ko", "sentences": ["Accelerate your Translation with XL8.", "We believe that technology is key to building a better, more prosperous world and new efficient business models for all.", "Here is by far the most humane machine translation."]}'
Output>{"status": 0, "request_id": "4e2d83f8b9aabbccddeeff0123456789"}
Terminal$curl -X GET 'https://api.xl8.ai/v1/trans/requests/4e2d83f8b9aabbccddeeff0123456789' --header 'Authorization: Bearer <API_KEY>'
Output>{"status": 1, "request_id": "4e2d83f8b9aabbccddeeff0123456789", "sentences": ["XL8로 번역을 가속하십시오", "우리는 기술이 더 발전하고 더 번영하는 세계와 모두를 위한
효율적인 새 비즈니스 모델을 만드는 데 핵심이라고 믿습니다", "이게 가장 인간적인 기계 번역입니다"], "alternate_sentences": {}, "download_url": "...", "source_language": "en", "target_language": "ko", "created_at": "2021-11-15T11:00:00.000000Z", "client_context": {}}
Terminal$curl -X POST 'https://api.xl8.ai/v1/trans/request/rt' --header 'Authorization: Bearer <API_KEY>' --header 'Content-Type: application/json' --data-raw '{"source_language": "en", "target_language": "ko", "sentences": ["The quick brown fox jumps over the lazy dog."], "options":{"formality":["HAEYO"]}}'
Output>{"status": 1, "sentences": ["날쌘 갈색 여우가 게으른 개를 뛰어넘네요"]}
Terminal$curl -X GET "https://api.xl8.ai/v1/trans/languages"
Output>{"status": 0, "languages": {"da": ["en", "fi", "no", "sv"], "en": ["ar", "cs", "da", "de", "el", "es", "es-419", "fi", "fr", "he", "hu", "id", "it", "ja", "ko", "ms", "my", "my-zawgyi", "nl", "no", "pl", "pt", "pt-BR", "ro", "ru", "sv", "th", "tr", "vi", "zh-Hans", "zh-Hant"], "fi": ["da", "en", "no", "sv"], "fr": ["en"], "ko": ["en", "ja", "th", "zh-Hans"], "nl": ["en"], "no": ["da", "en", "fi", "sv"], "sv": ["da", "en", "fi", "no"], "th": ["en"], "zh-Hant": ["en"], "zh-Hans": ["en"], "es": ["en"], "ar": ["en"]}}
Terminal$curl -X GET "https://api.xl8.ai/v1/trans/languages?realtime_only=true"
Output>{"status": 0, "languages": {"ko": ["en", "ja", "zh-Hans"], "en": ["ar", "cs", "da", "de", "el", "es", "es-419", "fi", "fr", "he", "hu", "id", "it", "ja", "ko", "ms", "nl", "no", "pl", "pt", "pt-BR", "ro", "ru", "sv", "th", "tr", "vi", "zh-Hans", "zh-Hant"], "zh-Hans": ["en"], "th": ["en"], "zh-Hant": ["en"], "es": ["en"], "ar": ["en"]}}
Terminal$curl -X GET "https://api.xl8.ai/v1/trans/languages?source_language=en"
Output>{"status": 0, "languages": {"en": ["ar", "cs", "da", "de", "el", "es", "es-419", "fi", "fr", "he", "hu", "id", "it", "ja", "ko", "ms", "my", "my-zawgyi", "nl", "no", "pl", "pt", "pt-BR", "ro", "ru", "sv", "th", "tr", "vi", "zh-Hans", "zh-Hant"]}}
Terminal$curl -X GET "https://api.xl8.ai/v1/trans/languages/options/en/ko"
Output>{"status": 0, "formality": ["HAPSYO", "HAO", "HAEYO", "HAGAE", "HAE", "HAERA", "OTHER"], "genre": []}
Terminal$cat example.json
Output>{
"sentences": [
"This is an example of JSON input format.",
"Sentences in this array will be translated.",
"You can add more sentences into this JSON array."
]
}
Terminal$curl -X POST "https://api.xl8.ai/v1/file/upload" -H "Content-Type: application/json" -H "Authorization: Bearer <API_KEY>" --data '{"filename": "example.json"}'
Output>
{
"status": 0,
"presigned_url": {
"url": "https://s3.amazonaws.com/public.upload.xl8",
"fields": {
"key": "prod/your@email.com/2021-11-1/xshyn_example.json",
"AWSAccessKeyId": "AWS_ACCESS_KEY_ID_STRING",
"x-amz-security-token": "X_AMZ_SECURITY_TOKEN_STRING"
"policy": "POLICY_STRING",
"signature": "SIGNATURE_STRING"
}
}
}
Terminal$curl -X POST "https://s3.amazonaws.com/public.upload.xl8" -F "key=prod/your@email.com/2020-11-1/xshyn_example.json" -F "AWSAccessKeyId=AWS_ACCESS_KEY_ID_STRING" -F "x-amz-security-token=X_AMZ_SECURITY_TOKEN_STRING" -F "policy=POLICY_STRING" -F "signature=SIGNATURE_STRING" -F "file=@example.json"
Terminal$curl -X POST "https://api.xl8.ai/v1/trans/request/file" --header 'Authorization: Bearer <API_KEY>' --header 'Content-Type: application/json' --data-raw '{"source_language":"en", "target_language":"ko", "subtitle_type":"json", "s3_key":"your\/email.com\/2021-11-15/cgeyw_example.json","options":{"formality":["HAEYO"]}}'
Output>{"status": 0, "request_id": "4e2d83f8b9aabbccddeeff0123456789"}
Terminal$curl -X POST "https://api.xl8.ai/v1/trans/request/file" --header 'Authorization: Bearer <API_KEY>' --header 'Content-Type: application/json' --data-raw '{"source_language":"en", "target_language":"ko", "subtitle_type":"json", "encoded_subtitle": "'"$(cat example.json | base64)"'"}'
Output>{"status": 0, "request_id": "4e2d83f8b9aabbccddeeff0123456789"}
Terminal$curl -X GET "https://api.xl8.ai/v1/trans/requests/file/4e2d83f8b9aabbccddeeff0123456789?subtitle_type=srt" --header "Authorization: Bearer <API_KEY>"
Output>{"status": 1, "encoded_subtitle": "...."}
Terminal$cat glossary.csv
Output>Spider Man,Spider Man,cs
Terminal$curl -X POST "https://api.xl8.ai/v1/file/upload" -H "Content-Type: application/json" -H "Authorization: Bearer <API_KEY>" --data '{"filename": "glossary.csv"}'
Output>
{
"status": 0,
"presigned_url": {
"url": "https://s3.amazonaws.com/public.upload.xl8",
"fields": {
"key": "prod/your@email.com/2022-3-8/munvj_glossary.csv",
"AWSAccessKeyId": "AWS_ACCESS_KEY_ID_STRING",
"x-amz-security-token": "X_AMZ_SECURITY_TOKEN_STRING"
"policy": "POLICY_STRING",
"signature": "SIGNATURE_STRING"
}
}
}
Terminal$curl -X POST "https://api.xl8.ai/v1/glossary" -H "Content-Type: application/json" -H "Authorization: Bearer <API_KEY>" --data '{"name": "en-kr-glossary", "source_language":"en", "target_language":"ko", "s3_path": "prod/your@email.com/2022-3-8/munvj_glossary.csv" }'
Output>{"status": 0, "glossary_id": 200}
Terminal$curl -X GET "https://api.xl8.ai/v1/glossary" --header "Authorization: Bearer <API_KEY>"
Output>{"status": 0, "glossaries": [{"glossary_id": 200, "name": "en-kr-glossary", "source_language": "en", "target_language": "ko", "download_url": "..." }]}
Terminal$curl -X POST "https://api.xl8.ai/v1/trans/request/file" --header 'Authorization: Bearer <API_KEY>' --header 'Content-Type: application/json' --data-raw '{"glossary_id":"200", "source_language":"en", "target_language":"ko", "subtitle_type":"json", "encoded_subtitle": "'"$(cat example.json | base64)"'"}'
Output>{"status": 0, "request_id": "5k2d83f8b9aabb..."}
Terminal$curl -X GET "https://api.xl8.ai/v1/autotemplate/languages" --header 'Authorization: Bearer <API_KEY>'
Output>{"status": 0, "languages": ["en-US", "ko-KR", "ar-SA", "de-DE", "es-ES", "fr-FR", "it-IT", "ja-JP", "nl-NL", "zh", "zh-TW"]}
Terminal$curl -X POST "https://api.xl8.ai/v1/file/upload" -H "Content-Type: application/json" -H "Authorization: Bearer <API_KEY>" --data '{"filename": "video.mp4"}'
Output>{
"status": 0,
"presigned_url": {
"url": "https://s3.amazonaws.com/public.upload.xl8",
"fields": {
"key": "prod/your@email.com/2021-11-1/nimou_video.mp4",
"AWSAccessKeyId": "AWS_ACCESS_KEY_ID_STRING",
"x-amz-security-token": "X_AMZ_SECURITY_TOKEN_STRING"
"policy": "POLICY_STRING",
"signature": "SIGNATURE_STRING"
}
}
}
Terminal$curl -F "key=prod/your@email.com/2021-11-1/nimou_video.mp4" -F "AWSAccessKeyId=AWS_ACCESS_KEY_ID_STRING" -F "x-amz-security-token=X_AMZ_SECURITY_TOKEN_STRING" -F "policy=POLICY_STRING" -F "signature=SIGNATURE_STRING" -F "file=@video.mp4" https://s3.amazonaws.com/public.upload.xl8
Terminal$curl -X POST "https://api.xl8.ai/v1/autotemplate/request" --header 'Authorization: Bearer <API_KEY>' --header 'Content-Type: application/json' --data-raw '{"language":"en", "media_s3_key":"prod/your@email.com/2021-11-1/nimou_video.mp4"}'
Output>{"status": 0, "request_id": "e05aadf8b9aabbccddeeff0123456789"}
Terminal$curl -X GET "https://api.xl8.ai/v1/autotemplate/requests/e05aadf8b9aabbccddeeff0123456789" --header "Authorization: Bearer <API_KEY>"
Output>{"status": 1, "request_id": "e05aadf8b9aabbccddeeff0123456789", "callback_url": null, "media_filename": "video.mp4", "transcript_filename": "", "media_duration": 36.37, "language": "en", "created_at": "2021-11-16T07:06:07.357368Z", "updated_at": "2021-11-16T07:11:42.442996Z", "error_msg": null}
Terminal$curl -X GET "https://api.xl8.ai/v1/autotemplate/request/file/srt/e05aadf8b9aabbccddeeff0123456789" --header "Authorization: Bearer <API_KEY>"
Output>{"status": 0, "encoded_subtitle": "MQ0KMDA6MDA6MDAsMDAwIC0tPiAwMDowMDowMiwwMDANCk1lZXQgeGw4IHNjcm9s..."}
Terminal$curl -X GET "https://api.xl8.ai/v1/dubbing/languages" --header 'Authorization: Bearer <API_KEY>'
Output>{"status": 0, "voices": {"en-US": [{"voice_name": "en-US-F001", "display_name": "Female 1", "gender": "Female", "sample_url": "https://static.xl8.ai/voices/en-US/en-US-F001.mp3"}, {"voice_name": "en-US-M001", "display_name": "Male 1", "gender": "Male", "sample_url": "https://static.xl8.ai/voices/en-US/en-US-M001.mp3"}]}}
Terminal$curl -X POST "https://api.xl8.ai/v1/dubbing/request" --header 'Authorization: Bearer <API_KEY>' --header 'Content-Type: application/json' --data-raw '{"language":"en-US", "voice_name":"en-US-F001", "subtitle_s3_key":"your@email.com/2022-05-18/cgeyw_video.en.srt", "subtitle_type":"srt", "media_s3_key":"your@email.com/2022-05-18/qozkz_video.mp4"}'
Output>{"status": 0, "request_id": "d720cd43569143b596ea0fce12345678"}
Terminal$curl -X GET "https://api.xl8.ai/v1/dubbing/requests/d720cd43569143b596ea0fce12345678" --header "Authorization: Bearer <API_KEY>"
Output>{"status": 1, "request_id": "d720cd43569143b596ea0fce12345678", "created_at": "2022-05-18T11:45:48.833605Z", "updated_at": "2022-05-18T11:47:08.339090Z", "callback_url": "", "error_msg": "", "language": "en-US", "voice_name": "en-US-F001", "subtitle_s3_key": "your@email.com/2022-05-18/cgeyw_video.en.srt", "subtitle_type": "srt", "media_s3_key": "your@email.com/2022-05-18/qozkz_video.mp4", "dubbing_type": "VoiceOver", "options": {"original_audio_gain": "-9"}, "char_count": 183, "total_seconds": 11160, "result_audio_file_name": "cgeyw_video.en.mp3", "result_media_file_name": "cgeyw_video.en.VO.mp4", "subtitle_file_name": "video.en.srt", "media_file_name": "video.mp4"}
Terminal$curl -X GET "https://api.xl8.ai/v1/dubbing/requests/d720cd43569143b596ea0fce12345678/download" --header "Authorization: Bearer <API_KEY>"
Output>{"status": 0, "request_id": "d720cd43569143b596ea0fce12345678", "audio_download_url": "https://...", "media_download_url": "https://..."}
Terminal$curl -X GET "https://api.xl8.ai/v1/e2e/languages" --header 'Authorization: Bearer <API_KEY>'
Output>{"status": 0, "languages": { "en": [ "es-419", "ko" ], "ko": [ "en" ]}}
Terminal$curl -X POST "https://api.xl8.ai/v1/e2e/hlslive/request" --header 'Authorization: Bearer <API_KEY>' --header 'Content-Type: application/json' --data-raw '{"source_language":"en", "target_languages":["ko"], "original_endpoint": "https://foo.bar/live/master.m3u8"}'
Output>{"status": 0, "request_id": "099f43824a73453faf102e112345678"}
Terminal$curl -X GET "https://api.xl8.ai/v1/e2e/hlslive/requests/099f43824a73453faf102e112345678" --header "Authorization: Bearer <API_KEY>"
Output>{"status": 0, "request_id": "e05aadf8b9aabbccddeeff0123456789", "source_languages": ["en"], "target_languages": ["ko"], "original_endpoint": "https://foo.bar/live/master.m3u8", "target_protocol": "hls", "target_endpoint": "https://static.xl8.ai/hls/example/e05aadf8b9aabbccddeeff0123456789/master.m3u8", "total_running_time_in_sec": 552, "max_running_time_in_sec": 18000, "start_countdown_in_sec": 0, "created_at": "2022-05-13T05:17:05.290865Z", "updated_at": "2022-05-13T05:27:40.943424Z", "started_at": "2022-05-13T05:18:36.863627Z", "stopped_at": null, "error_msg": ""}
Terminal$curl -X GET "https://api.xl8.ai/v1/dubbing/requests/d720cd43569143b596ea0fce12345678/download" --header "Authorization: Bearer <API_KEY>"
Output>{"status": 0, "request_id": "d720cd43569143b596ea0fce12345678", "audio_download_url": "https://...", "media_download_url": "https://..."}