Skip to main content

Create Upload Session

POST 

/v1/create_upload_session

This endpoint returns a session_uri that can be used to upload files to Azure Blob storage. Requires a valid api_key as parameter access_token in the header.

On successful upload, the backend will fetch the file and process it.

Model parameters are sent via body in ProcessJobInputModel object.

Set ProcessJobInputModel.model to specify the model to use for processing. Supported models are: syn, blur

Model config dictionary can be used to set the following parameters:

blur_face: bool=True (Blur faces)
enable_lp: bool=True (Enable license plate blur)
blur_threshold: float=0.5, ge=0.0, le=1.0 (Blur threshold)
slicing: bool=False (Enable slicing for large images)
mask_blur: bool=False (Enable mask blur instead of circle blur)
lp_track: bool=False (Enable license plate tracking)

Supported video formats are: .mp4, .mkv, .webm, .ts, .mov, .avi, .mts

Supported image formats are: .jpg, .png, .jpeg, .bmp

Supported archive formats are: .zip, .rar, .7z

Nesting of archives is not supported. Files inside archive must be on the root level. Max upload size is 4294967295 bytes.

The session_uri will expire after 7 days.

Use BlockBlob upload method from Azure Blob Storage documentation to upload the file.

AppendBlob uploads are not supported.

Request

Responses

Successful Response