---
title: "POST /model-hub/upload-file/"
method: POST
path: "/model-hub/upload-file/"
tags: ["model-hub"]
---

# POST /model-hub/upload-file/

`POST /model-hub/upload-file/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/upload-file/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- UploadFile
  - `files` string[]
  - `links` string[]
  - `type` 'image' | 'audio' | 'pdf' | 'text', required

## Response `200`

OK

- UploadFileResponse
  - `status` boolean, required
  - `result` UploadedFileResult[], required
    - `url` string, nullable
    - `file_name` string, nullable
    - `error` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
