/uploads

Create a temporary upload URL for a file. Support multipart uploads. Return a list of URLs for each part of the file.

Body Params
string

Required for multipart upload. The original file name of the image (example: "low-res-image.jpg"). It will be ignored if assetId is provided.

number

Required for multipart upload. The size of the file in bytes

string
enum

Required for multipart upload and url. The purpose of the file once validated (example: "model")

Allowed:
string
string

The huggingface.co modelName (example: "stabilityai/stable-diffusion-xl-base-1.0"). No need to setup other fields if you setup huggingFaceModelName

number
1 to 10000

Required for multipart upload. The number of parts the file will be uploaded in

string

Required for multipart upload. The MIME type of the file (example: "image/jpeg")

string

The url where to download the file. If you setup url you MUST setup kind as well.

assetOptions
object

Asset extra options. Only available for kinds which produce an asset. (Not available for model kind)

Response

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json