---
title: "Upload a media file"
method: POST
path: "/media/upload"
tags: ["Media"]
---

# Upload a media file

`POST /media/upload`

## Request

- Base URL: `https://api.llm-broker.net`
- URL: `https://api.llm-broker.net/media/upload`
- Auth: HTTP bearer

Upload an image or file to the user's gallery.

## Response `200`

Upload result

- MediaUploadResponse
  - `attachment_id` string: Attachment ID
  - `gallery_id` string, nullable
  - `id` string: Photo ID
  - `ok` boolean

---

[API](https://skmtc.dev/llm-broker/apis/astrioncore-core-api.md) · [All operations](https://skmtc.dev/llm-broker/apis/astrioncore-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/llm-broker/apis/astrioncore-core-api/revisions/f85835487bf5?raw)
