---
title: "Upload a file to the server."
method: POST
path: "/api/v1/upload/"
tags: ["Common"]
---

# Upload a file to the server.

`POST /api/v1/upload/`

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.

## Headers

- `Content-Disposition` string, required

## Response `200`

OK

- UploadResponse
  - `id` string, required — ID of the uploaded file.
  - `name` string, required — Name of the uploaded file.
  - `size` integer, required — Size of the uploaded file in bytes.
  - `duration` integer, required — Duration of the uploaded media file in seconds.
  - `expires` integer, required — File expiration time in Unix epoch format with UTC timezone.

## Other responses

- `400` — Bad Request
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/lalal/apis/lalal-ai-api.md) · [All operations](https://skmtc.net/lalal/apis/lalal-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lalal/lalal-ai-api/revisions/ebb545e26e94/schema)
