Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Varoriya Com Files API
version: 1.0.0
contact:
name: Varoriya
url: https://varoriya.com
description: 'Operations tagged Files across 2 of this provider''s published API definitions: openapi.yaml, varoriya-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.varoriya.com
description: Production
security:
- bearerAuth: []
tags:
- name: Files
description: Upload input media (reference / edit / frames / pdf)
paths:
/v1/files:
post:
tags:
- Files
summary: Upload an input file
description: 'Upload media (image / audio / video / pdf) to use as a generation
input (reference, edit, first/last frame, PDF, etc.). Returns a short-
lived CDN `url` to pass in the `images` / `videos` / `audios` array of a
`POST /v1/generate/*` call. Files are ephemeral inputs and are removed
automatically (DO Space lifecycle on the `files/` prefix).
Two ways to send the body:
- `multipart/form-data` with a `file` field (and optional `purpose`).
- A raw binary body whose `Content-Type` is the file''s MIME.'
security:
- bearerAuth: []
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
purpose:
type: string
example: edit
image/png:
schema:
type: string
format: binary
image/jpeg:
schema:
type: string
format: binary
responses:
'201':
description: File stored
content:
application/json:
example:
id: file_9f0c8e2a4b6d4f1e
url: https://media.varoriya.com/files/2/9f0c8e2a4b6d4f1e.png
kind: image
mime: image/png
bytes: 348213
expires_at: '2026-08-05T09:12:00.000Z'
'401':
description: Missing/invalid API key
'413':
description: File too large
'415':
description: Unsupported media type
operationId: postV1Files
x-operation-id-source: derived
servers:
- url: https://api.varoriya.com
description: Production
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Your generation key: varo_gk_xxxxxxxx'
x-refined-from:
- openapi.yaml
- varoriya-com-openapi.yml