API Documentation
Upload a File
POST
/vimoo/api/v1/filesLoading...
Upload an image and receive file_id and file_url. Use file_url when creating a video task. The request format is multipart/form-data.
1 (FILE_TYPE_INPUT_IMAGE): Uploaded image assetExample successful response (excerpt):
status: 1 indicates that the file is available. Use file.file_id to retrieve or delete the file. For Create a Generation Task, use file.file_url in content[].image_url.url. For the complete file fields, see Get File Details.
Upload size is measured using the image's raw byte count, excluding multipart form boundaries and other fields.
fileobjectfile.file_idstringfile.file_typeinteger1 (FILE_TYPE_INPUT_IMAGE) for uploaded imagesfile.file_namestringfile.content_typestringfile.file_sizeintegerfile.tagstringfile.statusinteger1 (FILE_STATUS_AVAILABLE): Available2 (FILE_STATUS_EXPIRED): Expired3 (FILE_STATUS_FAILED): Failed4 (FILE_STATUS_UPLOADING): Uploadingfile.expire_atinteger0 means no expirationfile.created_atintegerfile.updated_atintegerfile.file_urlstringSee Responses and Error Codes for error response formats and error codes.