Common

Upload a file to the server.

Changed on
The uploaded file in other endpoints is called a "source file".
You can use the source file ID from the response to create split tasks.
The file will be deleted when the expiration time from the response is reached.
Upload limit is 10GB per request.
post/api/v1/upload/

Request

  • Base URL
    https://lalal.ai (the document declares no server; this is the origin it was published from)
  • Auth
    API key in header X-License-Key

Headers

Content-Dispositionstring required

'attachment; filename=<filename>' - a name for the file (see RFC 6266).

Request body application/octet-stream

string binary required

File binary data

Response

OK

idstring required

ID of the uploaded file.

namestring required

Name of the uploaded file.

sizeinteger required

Size of the uploaded file in bytes.

durationinteger required

Duration of the uploaded media file in seconds.

expiresinteger required

File expiration time in Unix epoch format with UTC timezone.

Example response

{
  "id": "e1fc1d8f-502e-4de0-bf3b-b30543d11c77",
  "name": "my_audio.mp3",
  "size": 12345678,
  "duration": 180
}

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status