简体中文
cURL
curl --request POST \ --url https://veo3apiai.redpandaai.co/api/file-url-upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fileUrl": "https://example.com/images/sample.jpg", "uploadPath": "images/downloaded", "fileName": "sample-image.jpg" }'
200
example
{ "success": true, "code": 200, "msg": "文件上传成功", "data": { "fileName": "uploaded-image.png", "filePath": "images/user-uploads/uploaded-image.png", "downloadUrl": "https://tempfile.redpandaai.co/xxx/images/user-uploads/uploaded-image.png", "fileSize": 154832, "mimeType": "image/png", "uploadedAt": "2025-01-01T12:00:00.000Z" }}
通过 URL 下载并上传文件到服务器。
http://example.com/file.jpg
https://example.com/file.jpg
所有 API 需要通过 Bearer Token 进行身份验证。
获取 API Key:
使用方法: 在请求头中添加: Authorization: Bearer YOUR_API_KEY
文件上传成功
The response is of type object.
object