---
title: "Upload a photo or video to the media library"
method: POST
path: "/v1/media"
tags: ["Media"]
---

# Upload a photo or video to the media library

`POST /v1/media`

## Request

- Base URL: `https://infoslides.app`
- URL: `https://infoslides.app/v1/media`
- Auth: none declared

Uploads a file (`multipart/form-data`, a single `file` part, up to 100 MB) into the media library and returns its `id`, type, and pixel dimensions. Use the `id` as `mediaAssetId` in `POST /v1/slideshows/{id}/slides` (show it as it is) or `POST /v1/slideshows/{id}/slides/ai` (a photo, background or document for AI Studio). A video is transcoded after upload; `GET /v1/media/{id}` shows its progress. Counts against the workspace storage quota.

## Headers

- `Idempotency-Key` string

## Response `200`

OK

---

[API](https://skmtc.dev/infoslides/apis/infoslides-agent-api.md) · [All operations](https://skmtc.dev/infoslides/apis/infoslides-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/infoslides/apis/infoslides-agent-api/revisions/d15bb7f8ee9d?raw)
