The upload endpoint accepts images, videos, and raw files through one multipart request. Dreep detects the file type and applies the relevant processing — transforming images and videos on the fly, or storing raw files as-is. Optional transformation parameters are ignored or rejected when they don’t apply to the uploaded file type.
Choosing a destination
Name the destination folder with folder (a path), key (a full S3-style
object key), or folderId (a UUID). Only one may be given per request. Missing
folders in a path are created automatically, at any depth.
Omit all three and the file lands in your project’s default folder. Path
segments are normalized to slugs, so Marketing Assets and marketing-assets
resolve to the same folder. Full details in
Folders & Paths.
Images
Apply resizing, cropping, format conversion, and compression before storing.Supported inputs: JPEG (.jpg, .jpeg), PNG (.png), WebP (.webp), GIF (.gif), TIFF (.tif, .tiff), BMP (.bmp).Applicable parameters: format, width, height, fit, quality.
Allowed target formats: jpeg, png, webp, avif, tiff, gif. Requesting video output formats on an image upload is blocked.
Allowed target formats: mp4, webm, mov, hls (.m3u8), gif (animated clip). Requesting static image target formats (e.g. jpeg or webp) on a video upload is blocked.
Raw Files
Store non-transformable files directly, up to 500MB.
Documents: PDF (.pdf), Word (.doc, .docx), Excel (.xls, .xlsx), PowerPoint (.ppt, .pptx)
Text & Data: CSV (.csv), TXT (.txt), JSON (.json)
Archives: ZIP (.zip)
Raw files are stored and served exactly as uploaded. Passing transformation parameters (format, width, height, quality, fps) with a raw file is not allowed and will be ignored or rejected.
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
multipart/form-data
file
file
required
The media file to upload.
folder
string
Slug path of the destination folder, relative to the project root. Missing folders are created automatically, at any depth. Segments are normalized to slugs, so Marketing Assets/2024 and marketing-assets/2024 are the same folder. Max 10 levels deep.
Example:
"avatars/2024/q1"
key
string
Full S3-style object key. Everything before the last / is the folder path (created if missing); the last segment becomes the stored filename. Mutually exclusive with folder.
Example:
"avatars/2024/q1/me.webp"
folderId
string<uuid>
UUID of an existing folder to upload into. Mutually exclusive with folder and with a key that carries a folder prefix. Omitting all three uploads into the project's default folder.
Example:
"78b52933-5541-4e90-8c15-39a84a412da8"
autoCreateFolders
enum<string>
default:true
Set to false to require that the folder path already exists. An unknown path then returns 404 instead of creating the folders.
Available options:
true,
false
autoTag
enum<string>
default:false
Set to true to tag the image in the background once it's stored. Charged per image. Ignored for files.
Available options:
true,
false
autoIndex
enum<string>
default:false
Set to true to index the image for similar and text search once it's stored. Charged per image. Ignored for files.
Available options:
true,
false
format
enum<string>
[Image/Video] Re-encode the file to this format before storing.
Available options:
jpeg,
png,
webp,
avif,
gif,
tiff,
mp4,
webm,
mov,
hls,
m3u8
width
integer
[Image/Video] Resize to this width in pixels.
height
integer
[Image/Video] Resize to this height in pixels.
fit
enum<string>
[Image/Video] How the media should fit width/height.
Available options:
cover,
contain,
fill,
inside,
outside
crop
object
[Image] Explicitly crop the image using left, top, width, and height coordinates.
Show child attributes
quality
integer
[Image/Video] Output quality (1-100).
fps
integer
[Video Only] Output frame rate for video files (e.g. 24, 30, 60).
videoCodec
enum<string>
[Video Only] Video encoding codec.
Available options:
libx264,
libvpx-vp9,
h264,
hevc
trimStart
number
[Video Only] Trim start timestamp in seconds.
trimEnd
number
[Video Only] Trim end timestamp in seconds.
gravity
enum<string>
[Image Only] Crop anchor point when resizing images.
Available options:
north,
northeast,
east,
southeast,
south,
southwest,
west,
northwest,
center,
attention,
entropy
dpr
number
[Image Only] Device pixel ratio multiplier (max 3).
rotate
enum<integer>
[Image Only] Rotate by this many degrees clockwise.
Available options:
90,
180,
270
bg
string
[Image Only] Hex color (without #) used to pad/fill, e.g. ffffff.
radius
string
[Image Only] Corner radius in pixels, or max for a full circle/pill.
p
string
[Image/Video] A saved transform preset key to apply instead of individual fields.
Response
Media uploaded successfully
id
string
Example:
"med_123456789"
url
string
Example:
"https://cdn.dreep.cloud/med_123456789/hero.jpg"
originalFilename
string
Example:
"hero.jpg"
mimetype
string
Example:
"image/webp"
format
string
Only present for images.
Example:
"webp"
sizeBytes
integer
Example:
245000
width
integer
Only present for images.
Example:
1200
height
integer
Only present for images.
status
string
Example:
"ready"
folderId
string
projectId
string
createdAt
string<date-time>
tagStatus
enum<string> | null
Where tagging has got to. skipped means the account had no credit left for tagging. Null when tagging was never asked for.
Available options:
pending,
done,
failed,
skipped
indexStatus
enum<string> | null
Where search indexing has got to. skipped means the account had no credit left for indexing. Null when indexing was never asked for.
Available options:
pending,
done,
failed,
skipped
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Dreep API Documentation","colors":{"primary":"#10B981","light":"#34D399","dark":"#059669"},"logo":{"light":"https://mintcdn.com/dreep/B5OflqGFw_jNEs7c/logo/light.svg?fit=max\u0026auto=format\u0026n=B5OflqGFw_jNEs7c\u0026q=85\u0026s=17d21f346b62521c576a44e667803e4b","dark":"https://mintcdn.com/dreep/B5OflqGFw_jNEs7c/logo/dark.svg?fit=max\u0026auto=format\u0026n=B5OflqGFw_jNEs7c\u0026q=85\u0026s=df259f51557b6b7e99e6d7ea6a7766e8"},"favicon":"https://mintcdn.com/dreep/8uHSPvhv7SPM0QJk/favicon.ico?fit=max\u0026auto=format\u0026n=8uHSPvhv7SPM0QJk\u0026q=85\u0026s=77d50b88312fb792ec51954806d22ec7","api":{"openapi":"openapi.yaml","playground":{"display":"interactive","proxy":false}},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Website","href":"https://dreep.cloud"}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dreep","hasAudioNarration":false,"actualSubdomain":"dreep","customDomains":["docs.dreep.cloud"],"gitSource":{"type":"github","owner":"indigosoftwares21","repo":"dreep_docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10f6e89ffae5051c419d2b"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b135966151e8e3916c8feb4","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Guides","count":28},{"language":"default","tag":"Node SDK","count":28},{"language":"default","tag":"API Reference","count":24},{"language":"default","tag":"Python SDK","count":20},{"language":"default","tag":"Media","count":19},{"language":"default","tag":"Go SDK","count":18},{"language":"default","tag":"Presets","count":12},{"language":"default","tag":"Upload","count":12},{"language":"default","tag":"Image Tags","count":10},{"language":"default","tag":"Folders","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/upload/upload-media","slug":"/api-reference/upload/upload-media","pageMetadata":{"title":"Upload Media","description":"Upload images, videos, or raw files in a single multipart request, with optional transformations.","openapi":"POST /api/v1/upload","href":"/api-reference/upload/upload-media"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Upload images, videos, or raw files in a single multipart request, with optional transformations.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The upload endpoint accepts `,_jsx(_components.strong,{children:`images, videos, and raw files`}),` through one multipart request. Dreep detects the file type and applies the relevant processing — transforming images and videos on the fly, or storing raw files as-is. Optional transformation parameters are ignored or rejected when they don’t apply to the uploaded file type.`]}),`\n`,_jsx(Heading,{level:`2`,id:`choosing-a-destination`,children:`Choosing a destination`}),`\n`,_jsxs(_components.p,{children:[`Name the destination folder with `,_jsx(_components.code,{children:`folder`}),` (a path), `,_jsx(_components.code,{children:`key`}),` (a full S3-style\nobject key), or `,_jsx(_components.code,{children:`folderId`}),` (a UUID). Only one may be given per request. Missing\nfolders in a path are created automatically, at any depth.`]}),`\n`,_jsx(CodeBlock,{filename:`Upload into a nested path`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.dreep.cloud/api/v1/upload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer drp_live_xxxxx\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"[email protected]\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"folder=avatars/2024/q1\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Omit all three and the file lands in your project’s default folder. Path\nsegments are normalized to slugs, so `,_jsx(_components.code,{children:`Marketing Assets`}),` and `,_jsx(_components.code,{children:`marketing-assets`}),`\nresolve to the same folder. Full details in\n`,_jsx(_components.a,{href:`/guides/folders-and-paths`,children:`Folders \u0026 Paths`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`images`,children:`Images`}),`\n`,_jsx(_components.p,{children:`Apply resizing, cropping, format conversion, and compression before storing.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Supported inputs`}),`: JPEG (`,_jsx(_components.code,{children:`.jpg`}),`, `,_jsx(_components.code,{children:`.jpeg`}),`), PNG (`,_jsx(_components.code,{children:`.png`}),`), WebP (`,_jsx(_components.code,{children:`.webp`}),`), GIF (`,_jsx(_components.code,{children:`.gif`}),`), TIFF (`,_jsx(_components.code,{children:`.tif`}),`, `,_jsx(_components.code,{children:`.tiff`}),`), BMP (`,_jsx(_components.code,{children:`.bmp`}),`).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Applicable parameters`}),`: `,_jsx(_components.code,{children:`format`}),`, `,_jsx(_components.code,{children:`width`}),`, `,_jsx(_components.code,{children:`height`}),`, `,_jsx(_components.code,{children:`fit`}),`, `,_jsx(_components.code,{children:`quality`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Allowed target formats`}),`: `,_jsx(_components.code,{children:`jpeg`}),`, `,_jsx(_components.code,{children:`png`}),`, `,_jsx(_components.code,{children:`webp`}),`, `,_jsx(_components.code,{children:`avif`}),`, `,_jsx(_components.code,{children:`tiff`}),`, `,_jsx(_components.code,{children:`gif`}),`. Requesting video output formats on an image upload is blocked.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`videos`,children:`Videos`}),`\n`,_jsx(_components.p,{children:`Apply trimming, frame-rate adjustment, and container re-encoding.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Supported inputs`}),`: MP4 (`,_jsx(_components.code,{children:`.mp4`}),`), MOV (`,_jsx(_components.code,{children:`.mov`}),`), WebM (`,_jsx(_components.code,{children:`.webm`}),`).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Applicable parameters`}),`: `,_jsx(_components.code,{children:`format`}),`, `,_jsx(_components.code,{children:`width`}),`, `,_jsx(_components.code,{children:`height`}),`, `,_jsx(_components.code,{children:`fit`}),`, `,_jsx(_components.code,{children:`quality`}),`, `,_jsx(_components.code,{children:`fps`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Allowed target formats`}),`: `,_jsx(_components.code,{children:`mp4`}),`, `,_jsx(_components.code,{children:`webm`}),`, `,_jsx(_components.code,{children:`mov`}),`, `,_jsx(_components.code,{children:`hls`}),` (`,_jsx(_components.code,{children:`.m3u8`}),`), `,_jsx(_components.code,{children:`gif`}),` (animated clip). Requesting static image target formats (e.g. `,_jsx(_components.code,{children:`jpeg`}),` or `,_jsx(_components.code,{children:`webp`}),`) on a video upload is blocked.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`raw-files`,children:`Raw Files`}),`\n`,_jsxs(_components.p,{children:[`Store non-transformable files directly, up to `,_jsx(_components.strong,{children:`500MB`}),`.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Documents`}),`: PDF (`,_jsx(_components.code,{children:`.pdf`}),`), Word (`,_jsx(_components.code,{children:`.doc`}),`, `,_jsx(_components.code,{children:`.docx`}),`), Excel (`,_jsx(_components.code,{children:`.xls`}),`, `,_jsx(_components.code,{children:`.xlsx`}),`), PowerPoint (`,_jsx(_components.code,{children:`.ppt`}),`, `,_jsx(_components.code,{children:`.pptx`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Text \u0026 Data`}),`: CSV (`,_jsx(_components.code,{children:`.csv`}),`), TXT (`,_jsx(_components.code,{children:`.txt`}),`), JSON (`,_jsx(_components.code,{children:`.json`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Archives`}),`: ZIP (`,_jsx(_components.code,{children:`.zip`}),`)`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Raw files are stored and served exactly as uploaded. Passing transformation parameters (`,_jsx(_components.code,{children:`format`}),`, `,_jsx(_components.code,{children:`width`}),`, `,_jsx(_components.code,{children:`height`}),`, `,_jsx(_components.code,{children:`quality`}),`, `,_jsx(_components.code,{children:`fps`}),`) with a raw file is not allowed and will be ignored or rejected.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upload Media","description":"Upload images, videos, or raw files in a single multipart request, with optional transformations.","openapi":"POST /api/v1/upload","href":"/api-reference/upload/upload-media"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Choosing a destination","slug":"choosing-a-destination","depth":2,"children":[]},{"title":"Images","slug":"images","depth":2,"children":[]},{"title":"Videos","slug":"videos","depth":2,"children":[]},{"title":"Raw Files","slug":"raw-files","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dreep/94f2727abcb3c306/update_openapi.js"],"openApiReferenceData":{"operation":{"summary":"Upload Media","x-codeSamples":[{"lang":"curl","label":"Image Upload (Resize)","source":"curl --request POST \\\n --url https://api.dreep.cloud/api/v1/upload \\\n --header 'Authorization: Bearer \u003cAPI_KEY>' \\\n --header 'Content-Type: multipart/form-data' \\\n --form file='@/path/to/image.jpg' \\\n --form width=800 \\\n --form format=webp\n"},{"lang":"curl","label":"Video Upload (Trim)","source":"curl --request POST \\\n --url https://api.dreep.cloud/api/v1/upload \\\n --header 'Authorization: Bearer \u003cAPI_KEY>' \\\n --header 'Content-Type: multipart/form-data' \\\n --form file='@/path/to/video.mp4' \\\n --form trimStart=10.5 \\\n --form trimEnd=20 \\\n --form videoCodec=h264\n"},{"lang":"curl","label":"Basic File Upload","source":"curl --request POST \\\n --url https://api.dreep.cloud/api/v1/upload \\\n --header 'Authorization: Bearer \u003cAPI_KEY>' \\\n --header 'Content-Type: multipart/form-data' \\\n --form file='@/path/to/file.pdf'\n"}],"description":"Upload images, videos, or raw files in a single multipart request, with optional transformations.","tags":["Upload"],"requestBody":"d8abfc88-ca88-4532-acf4-68a9c3c0723b","responses":{"200":"a0eb008d-6fe4-49e7-a760-b659f33cd8c8","400":"59cf3ed2-f6b9-4f71-b891-0163f412add1","401":"5325a70c-65fd-48b8-9d24-192ebca0f701","402":"c5c87f62-d696-4578-a2c0-3098e750ddd5","500":"685618d0-62a4-42a1-b5db-0794dd1402cd"},"method":"post","type":"path","servers":["40dcd937-d68e-4980-97fa-24b3ab1f5f59"],"security":["1aa709a2-cd4e-42c2-8c83-d292be0daa2e"],"path":"/api/v1/upload","baseUrlOptions":["https://api.dreep.cloud"],"title":"Upload Media","codeSamples":[{"label":"Image Upload (Resize)","lang":"curl","source":"curl --request POST \\\n --url https://api.dreep.cloud/api/v1/upload \\\n --header 'Authorization: Bearer \u003cAPI_KEY>' \\\n --header 'Content-Type: multipart/form-data' \\\n --form file='@/path/to/image.jpg' \\\n --form width=800 \\\n --form format=webp\n"},{"label":"Video Upload (Trim)","lang":"curl","source":"curl --request POST \\\n --url https://api.dreep.cloud/api/v1/upload \\\n --header 'Authorization: Bearer \u003cAPI_KEY>' \\\n --header 'Content-Type: multipart/form-data' \\\n --form file='@/path/to/video.mp4' \\\n --form trimStart=10.5 \\\n --form trimEnd=20 \\\n --form videoCodec=h264\n"},{"label":"Basic File Upload","lang":"curl","source":"curl --request POST \\\n --url https://api.dreep.cloud/api/v1/upload \\\n --header 'Authorization: Bearer \u003cAPI_KEY>' \\\n --header 'Content-Type: multipart/form-data' \\\n --form file='@/path/to/file.pdf'\n"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The media file to upload.","isRequired":true,"uniqueKey":"file","typeLabel":"file"},"folder":{"type":"string","description":"Slug path of the destination folder, relative to the project root. Missing folders are created automatically, at any depth. Segments are normalized to slugs, so `Marketing Assets/2024` and `marketing-assets/2024` are the same folder. Max 10 levels deep.\n","example":"avatars/2024/q1","uniqueKey":"folder","typeLabel":"string"},"key":{"type":"string","description":"Full S3-style object key. Everything before the last `/` is the folder path (created if missing); the last segment becomes the stored filename. Mutually exclusive with `folder`.\n","example":"avatars/2024/q1/me.webp","uniqueKey":"key","typeLabel":"string"},"folderId":{"type":"string","format":"uuid","description":"UUID of an existing folder to upload into. Mutually exclusive with `folder` and with a `key` that carries a folder prefix. Omitting all three uploads into the project's default folder.\n","example":"78b52933-5541-4e90-8c15-39a84a412da8","uniqueKey":"folderId","typeLabel":"string\u003cuuid>"},"autoCreateFolders":{"type":"string","enum":["true","false"],"default":"true","description":"Set to `false` to require that the folder path already exists. An unknown path then returns 404 instead of creating the folders.\n","uniqueKey":"autoCreateFolders","typeLabel":"enum\u003cstring>"},"autoTag":{"type":"string","enum":["true","false"],"default":"false","description":"Set to `true` to tag the image in the background once it's stored. Charged per image. Ignored for files.\n","uniqueKey":"autoTag","typeLabel":"enum\u003cstring>"},"autoIndex":{"type":"string","enum":["true","false"],"default":"false","description":"Set to `true` to index the image for similar and text search once it's stored. Charged per image. Ignored for files.\n","uniqueKey":"autoIndex","typeLabel":"enum\u003cstring>"},"format":{"type":"string","enum":["jpeg","png","webp","avif","gif","tiff","mp4","webm","mov","hls","m3u8"],"description":"[Image/Video] Re-encode the file to this format before storing.","uniqueKey":"format","typeLabel":"enum\u003cstring>"},"width":{"type":"integer","description":"[Image/Video] Resize to this width in pixels.","uniqueKey":"width","typeLabel":"integer"},"height":{"type":"integer","description":"[Image/Video] Resize to this height in pixels.","uniqueKey":"height","typeLabel":"integer"},"fit":{"type":"string","enum":["cover","contain","fill","inside","outside"],"description":"[Image/Video] How the media should fit `width`/`height`.","uniqueKey":"fit","typeLabel":"enum\u003cstring>"},"crop":{"type":"object","description":"[Image] Explicitly crop the image using left, top, width, and height coordinates.","properties":{"left":{"type":"integer","uniqueKey":"crop.left","typeLabel":"integer"},"top":{"type":"integer","uniqueKey":"crop.top","typeLabel":"integer"},"width":{"type":"integer","uniqueKey":"crop.width","typeLabel":"integer"},"height":{"type":"integer","uniqueKey":"crop.height","typeLabel":"integer"}},"uniqueKey":"crop","typeLabel":"object"},"quality":{"type":"integer","description":"[Image/Video] Output quality (1-100).","uniqueKey":"quality","typeLabel":"integer"},"fps":{"type":"integer","description":"[Video Only] Output frame rate for video files (e.g. 24, 30, 60).","uniqueKey":"fps","typeLabel":"integer"},"videoCodec":{"type":"string","enum":["libx264","libvpx-vp9","h264","hevc"],"description":"[Video Only] Video encoding codec.","uniqueKey":"videoCodec","typeLabel":"enum\u003cstring>"},"trimStart":{"type":"number","description":"[Video Only] Trim start timestamp in seconds.","uniqueKey":"trimStart","typeLabel":"number"},"trimEnd":{"type":"number","description":"[Video Only] Trim end timestamp in seconds.","uniqueKey":"trimEnd","typeLabel":"number"},"gravity":{"type":"string","enum":["north","northeast","east","southeast","south","southwest","west","northwest","center","attention","entropy"],"description":"[Image Only] Crop anchor point when resizing images.","uniqueKey":"gravity","typeLabel":"enum\u003cstring>"},"dpr":{"type":"number","description":"[Image Only] Device pixel ratio multiplier (max 3).","uniqueKey":"dpr","typeLabel":"number"},"rotate":{"type":"integer","enum":[90,180,270],"description":"[Image Only] Rotate by this many degrees clockwise.","uniqueKey":"rotate","typeLabel":"enum\u003cinteger>"},"bg":{"type":"string","description":"[Image Only] Hex color (without `#`) used to pad/fill, e.g. `ffffff`.","uniqueKey":"bg","typeLabel":"string"},"radius":{"type":"string","description":"[Image Only] Corner radius in pixels, or `max` for a full circle/pill.","uniqueKey":"radius","typeLabel":"string"},"p":{"type":"string","description":"[Image/Video] A saved transform preset key to apply instead of individual fields.","uniqueKey":"p","typeLabel":"string"}},"required":["file"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"file":"\u003cstring>","folder":"avatars/2024/q1","key":"avatars/2024/q1/me.webp","folderId":"78b52933-5541-4e90-8c15-39a84a412da8","autoCreateFolders":"true","autoTag":"false","autoIndex":"false","width":123,"height":123,"crop":{"left":123,"top":123,"width":123,"height":123},"quality":123,"fps":123,"trimStart":123,"trimEnd":123,"dpr":123,"bg":"\u003cstring>","radius":"\u003cstring>","p":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a0eb008d-6fe4-49e7-a760-b659f33cd8c8":{"description":"Media uploaded successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":"med_123456789","uniqueKey":"id","typeLabel":"string"},"url":{"type":"string","example":"https://cdn.dreep.cloud/med_123456789/hero.jpg","uniqueKey":"url","typeLabel":"string"},"originalFilename":{"type":"string","example":"hero.jpg","uniqueKey":"originalFilename","typeLabel":"string"},"mimetype":{"type":"string","example":"image/webp","uniqueKey":"mimetype","typeLabel":"string"},"format":{"type":"string","description":"Only present for images.","example":"webp","uniqueKey":"format","typeLabel":"string"},"sizeBytes":{"type":"integer","example":245000,"uniqueKey":"sizeBytes","typeLabel":"integer"},"width":{"type":"integer","description":"Only present for images.","example":1200,"uniqueKey":"width","typeLabel":"integer"},"height":{"type":"integer","description":"Only present for images.","uniqueKey":"height","typeLabel":"integer"},"status":{"type":"string","example":"ready","uniqueKey":"status","typeLabel":"string"},"folderId":{"type":"string","uniqueKey":"folderId","typeLabel":"string"},"projectId":{"type":"string","uniqueKey":"projectId","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"tagStatus":{"oneOf":[{"type":"string","enum":["pending","done","failed","skipped"],"description":"Where tagging has got to. `skipped` means the account had no credit left for tagging. Null when tagging was never asked for.\n","uniqueKey":"tagStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["pending","done","failed","skipped"],"description":"Where tagging has got to. `skipped` means the account had no credit left for tagging. Null when tagging was never asked for.\n","uniqueKey":"tagStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"tagStatus","typeLabel":"enum\u003cstring> | null"},"indexStatus":{"oneOf":[{"type":"string","enum":["pending","done","failed","skipped"],"description":"Where search indexing has got to. `skipped` means the account had no credit left for indexing. Null when indexing was never asked for.\n","uniqueKey":"indexStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["pending","done","failed","skipped"],"description":"Where search indexing has got to. `skipped` means the account had no credit left for indexing. Null when indexing was never asked for.\n","uniqueKey":"indexStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"indexStatus","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"med_123456789","url":"https://cdn.dreep.cloud/med_123456789/hero.jpg","originalFilename":"hero.jpg","mimetype":"image/webp","format":"webp","sizeBytes":245000,"width":1200,"height":123,"status":"ready","folderId":"\u003cstring>","projectId":"\u003cstring>","createdAt":"2023-11-07T05:31:56Z","tagStatus":"pending","indexStatus":"pending"}}},"exampleType":"generated"}},"exampleType":"generated"},"59cf3ed2-f6b9-4f71-b891-0163f412add1":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","example":true,"uniqueKey":"error","typeLabel":"boolean"},"message":{"type":"string","example":"Invalid request parameters","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","example":"invalid_request","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":true,"message":"Invalid request parameters","code":"invalid_request"}}},"exampleType":"generated"}},"exampleType":"generated"},"5325a70c-65fd-48b8-9d24-192ebca0f701":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","example":true,"uniqueKey":"error","typeLabel":"boolean"},"message":{"type":"string","example":"Invalid request parameters","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","example":"invalid_request","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":true,"message":"Invalid request parameters","code":"invalid_request"}}},"exampleType":"generated"}},"exampleType":"generated"},"c5c87f62-d696-4578-a2c0-3098e750ddd5":{"description":"Plan's transformation limit reached","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","example":true,"uniqueKey":"error","typeLabel":"boolean"},"message":{"type":"string","example":"Invalid request parameters","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","example":"invalid_request","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":true,"message":"Invalid request parameters","code":"invalid_request"}}},"exampleType":"generated"}},"exampleType":"generated"},"685618d0-62a4-42a1-b5db-0794dd1402cd":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","example":true,"uniqueKey":"error","typeLabel":"boolean"},"message":{"type":"string","example":"Invalid request parameters","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","example":"invalid_request","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":true,"message":"Invalid request parameters","code":"invalid_request"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1aa709a2-cd4e-42c2-8c83-d292be0daa2e":{"ApiKeyAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"40dcd937-d68e-4980-97fa-24b3ab1f5f59":{"url":"https://api.dreep.cloud","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"dreep","siteName":"Dreep API Documentation","title":"Upload Media - Dreep API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-03T06:29:24.854Z","originalFileLocation":"api-reference/upload/upload-media.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Upload images, videos, or raw files in a single multipart request, with optional transformations.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dreep API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload Media - Dreep API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload images, videos, or raw files in a single multipart request, with optional transformations.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dreep API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dreep.cloud/api-reference/upload/upload-media\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dreep.mintlify.site/_mintlify/api/og/v2?division=Upload\u0026amp;title=Upload+Media\u0026amp;description=Upload+images%2C+videos%2C+or+raw+files+in+a+single+multipart+request%2C+with+optional+transformations.\u0026amp;theme=9c1bcf76cf08ac46df0f4cfe\u0026amp;signature=477c15947932eedcf89a388337fc3ff72321915e6e8ba3ae59c19750396f1433\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Upload Media - Dreep API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload images, videos, or raw files in a single multipart request, with optional transformations.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dreep.mintlify.site/_mintlify/api/og/v2?division=Upload\u0026amp;title=Upload+Media\u0026amp;description=Upload+images%2C+videos%2C+or+raw+files+in+a+single+multipart+request%2C+with+optional+transformations.\u0026amp;theme=9c1bcf76cf08ac46df0f4cfe\u0026amp;signature=477c15947932eedcf89a388337fc3ff72321915e6e8ba3ae59c19750396f1433\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dreep API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#10B981\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dreep.cloud/api-reference/upload/upload-media\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/upload/upload-media.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dreep.cloud/#organization\",\"name\":\"Dreep API Documentation\",\"url\":\"https://docs.dreep.cloud\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dreep/B5OflqGFw_jNEs7c/logo/light.svg?fit=max\u0026auto=format\u0026n=B5OflqGFw_jNEs7c\u0026q=85\u0026s=17d21f346b62521c576a44e667803e4b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dreep.cloud#website\",\"name\":\"Dreep API Documentation\",\"url\":\"https://docs.dreep.cloud\",\"publisher\":{\"@id\":\"https://docs.dreep.cloud/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dreep.cloud/api-reference/upload/upload-media#webpage\",\"url\":\"https://docs.dreep.cloud/api-reference/upload/upload-media\",\"name\":\"Upload Media\",\"description\":\"Upload images, videos, or raw files in a single multipart request, with optional transformations.\",\"dateModified\":\"2026-08-03T06:29:24.854Z\",\"isPartOf\":{\"@id\":\"https://docs.dreep.cloud#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dreep.cloud/api-reference/upload/upload-media#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dreep.cloud/api-reference/upload/upload-media#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Dreep API Documentation\",\"item\":\"https://docs.dreep.cloud\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload Media\",\"item\":\"https://docs.dreep.cloud/api-reference/upload/upload-media\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.dreep.cloud/api-reference/upload/upload-media#apireference\",\"headline\":\"Upload Media\",\"name\":\"Upload Media\",\"description\":\"Upload images, videos, or raw files in a single multipart request, with optional transformations.\",\"url\":\"https://docs.dreep.cloud/api-reference/upload/upload-media\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dreep.cloud/api-reference/upload/upload-media#webpage\"},\"dateModified\":\"2026-08-03T06:29:24.854Z\",\"publisher\":{\"@id\":\"https://docs.dreep.cloud/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dreep.cloud#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dreep API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dreep API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/upload/upload-media.md","siteName":"Dreep API Documentation","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"Upload","icon":"cloud-arrow-up","pages":[{"title":"Upload Media","openapi":"POST /api/v1/upload","href":"/api-reference/upload/upload-media"},{"title":"Create Presigned Upload","description":"Get a short-lived URL to upload file bytes straight to storage, bypassing the API.","openapi":"POST /api/v1/upload/presign","href":"/api-reference/upload/create-presigned-upload"},{"title":"Confirm Upload","openapi":"POST /api/v1/upload/{id}/confirm","href":"/api-reference/upload/confirm-upload"}]},{"group":"OCR","icon":"text-size","pages":[{"title":"Upload \u0026 Extract Text","openapi":"POST /api/v1/ocr","href":"/api-reference/ocr/upload-extract-text"},{"title":"Extract Text (OCR)","openapi":"GET /api/v1/fetch/{mediaId}.txt","href":"/api-reference/ocr/extract-text"}]},{"group":"Background Removal","icon":"eraser","pages":[{"title":"Remove Background","openapi":"POST /api/v1/bg-remove","href":"/api-reference/bg-remove/remove-background"}]},{"group":"Image Tags","pages":[{"title":"Tag Image","openapi":"POST /api/v1/image-tagging","href":"/api-reference/image-tags/tag-image"},{"title":"Tag Media","openapi":"POST /api/v1/media/{mediaId}/tags","href":"/api-reference/image-tags/tag-media"},{"title":"Get Media Tags","openapi":"GET /api/v1/media/{mediaId}/tags","href":"/api-reference/image-tags/get-media-tags"},{"title":"Set Media Tags","openapi":"PUT /api/v1/media/{mediaId}/tags","href":"/api-reference/image-tags/set-media-tags"},{"title":"List Tags","openapi":"GET /api/v1/tags","href":"/api-reference/image-tags/list-tags"}]},{"group":"Image Search","pages":[{"title":"Index Media","openapi":"POST /api/v1/media/{mediaId}/index","href":"/api-reference/image-search/index-media"},{"title":"Find Similar Media","openapi":"GET /api/v1/media/{mediaId}/similar","href":"/api-reference/image-search/find-similar-media"},{"title":"Search Media","openapi":"GET /api/v1/media/search","href":"/api-reference/image-search/search-media"}]},{"group":"Documents","icon":"file-lines","pages":[{"title":"Convert Document","openapi":"POST /api/v1/convert","href":"/api-reference/documents/convert-document"}]},{"group":"Media","icon":"image","pages":[{"title":"Fetch Media","openapi":"GET /api/v1/fetch/{mediaId}","href":"/api-reference/media/fetch-media"},{"title":"List Media Assets","openapi":"GET /api/v1/media","href":"/api-reference/media/list-media"},{"title":"Delete Media Asset","openapi":"DELETE /api/v1/media/{mediaId}","href":"/api-reference/media/delete-media"}]},{"group":"Folders","icon":"folder","pages":[{"title":"Create Folder","openapi":"POST /api/v1/folders","href":"/api-reference/folders/create-folder"},{"title":"List Folders","openapi":"GET /api/v1/folders","href":"/api-reference/folders/list-folders"}]},{"group":"Presets","icon":"sliders","pages":[{"title":"Create Preset","openapi":"POST /api/v1/presets","href":"/api-reference/presets/create-preset"},{"title":"List Presets","openapi":"GET /api/v1/presets","href":"/api-reference/presets/list-presets"},{"title":"Delete Preset","openapi":"DELETE /api/v1/presets/{id}","href":"/api-reference/presets/delete-preset"}]},{"group":"Usage \u0026 Billing","icon":"chart-simple","pages":[{"title":"Get Usage \u0026 Billing Limits","openapi":"GET /api/v1/usage","href":"/api-reference/usage/get-limits"}]}]},{"tab":"Node SDK","pages":[{"title":"Node SDK","href":"/node-sdk/introduction"}]},{"tab":"Python SDK","pages":[{"title":"Python SDK","href":"/python-sdk/introduction"}]},{"tab":"Go SDK","pages":[{"title":"Go SDK","href":"/go-sdk/introduction"}]},{"tab":"MCP Server","pages":[{"title":"MCP Server","href":"/mcp/introduction"}]}]},"basePath":"","title":"Upload Media - Dreep API Documentation","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","SectionHeading-S4Jc_qPe.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}