Upload multiple files and calculate usage cost
HTTP request
POST /v1/upload
Authorization
OAuth2PasswordBearer
Request Body schema: multipart/form-data
task_type
String
Classifying tasks corresponding to each translation mode such as: document
, images
, audio
, video
, summarization
, create_video
files
String
List of input files
youtube_link
String
link youtube if using video translation mode for youtube
access_domain
String
Not transmitted by default
Response
200: Success
Response schema: application/json
status_code
200
content
{ "data": [ { "filename": "2.text_image.pdf", "status": true, "credits": 4.92, "task_id": "f911298671b240f5984060c62cbbb218", "size": "0.18 MB" }, { "filename": "5.text_images.docx", "status": true, "credits": 2.89, "task_id": "af60061f95c8439a9ee55971b37a7e06", "size": "0.3 MB" } ], "errors": [], "error_description": "", "start_time": "2024-07-09 11:28:00.044402", "end_time": "2024-07-09 11:28:08.825665", "status": "success" }
400: Bad Request
status_code
400
content
{ "data": {}, "errors": [ "Error" ], "error_description": "Error while sending message. Please check server!", "start_time": "yyyy-mm-dd hh-mm-ss utc+7", "end_time": "yyyy-mm-dd hh-mm-ss utc+7" }
401: Authentication Error
status_code
401
content
{ "detail": "Not authenticated" }
Response schema: application/json
detail
Last updated