Upload raw file directly
This part describes the detailed method for uploading files to our server directly. The request body should be in multipart form and Content-Type in the HTTP Header should be multipart/form-data.
The upload process typically completes within a few seconds.
Endpoint
Parameters
Required parameters
file: The image you would like to upload. Accepted file types are webp, jpeg and png only. Model files are not supported in this endpoint.
Caution
The file should not be larger than 20 MB.
Returns
image_token: The identifier returned for the successfully uploaded image.