---
title: "Upload an input file"
method: POST
path: "/api/v2/uploads"
tags: ["Uploads"]
---

# Upload an input file

`POST /api/v2/uploads`

## Request

- Base URL: `https://azurade.com`
- URL: `https://azurade.com/api/v2/uploads`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Multipart form with one field named file (image, video, or audio as mp3, wav, m4a, aac or ogg; up to 95 MB). Returns a URL to pass as an image, video or audio input to a generation.

## Response `201`

Created

- UploadResult
  - `content_type` string
  - `filename` string
  - `id` string
  - `size` integer
  - `url` string, uri

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid credentials

---

[API](https://skmtc.dev/azurade/apis/azurade-ai-api.md) · [All operations](https://skmtc.dev/azurade/apis/azurade-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/azurade/apis/azurade-ai-api/revisions/0530fd2c8b63?raw)
