Upload File
Common
Upload File
上传图片、视频或音频文件,返回可公网访问的文件 URL。单文件最大 100 MB。
POST
Upload File
Upload an image, video, or audio file and receive a publicly accessible URL. Use the returned URL as reference media in video generation, image editing, and other API endpoints.
Maximum file size is 100 MB. The form field name must be
file, sent as multipart/form-data.Supported formats
| Type | Extensions |
|---|---|
| Image | .jpg .jpeg .png .gif .webp .bmp .svg |
| Video | .mp4 .mov .avi .webm .mkv .m4v .flv |
| Audio | .mp3 .wav .aac .m4a .flac .ogg |
Common use cases
Use the returnedurl in other OpenAPI endpoints, for example:
imagesin Create Videourlin SP Upload Assetimage_urlin Understand Image
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
multipart/form-data
File to upload. Field name must be file.