cURL
curl --request POST \ --url https://api.weryai.com/v1/generation/upload-file \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form 'batch_no=<string>' \ --form fixed=false
{ "status": 0, "desc": "success", "message": "success", "data": { "object_url_list": [ "https://static.weryai.com/growth/video/weryai_1234567890abcdef.mp4" ] } }
Upload a single media file for generation workflows.
Supported file types:
Authenticate using Bearer token. Get your API Key from the WeryAI Console.
Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx
Authorization: Bearer sk-xxxxxxxxxxxxxxxx
File to upload
Batch number for rate-limit reuse
Whether to use fixed file name
Upload successful
Business status code
0
Status description
"success"
Multi-language message
Show child attributes