Skip to main content
POST
Upload file

Authorizations

Authorization
string
header
required

Fanify API key.

Body

multipart/form-data

File upload. The Hub detects the kind: a .safetensors LoRA (up to 1 GiB by default, stored durably), a ZIP dataset sent as application/zip (up to 512 MiB), anything else an ordinary upload (up to 1 GiB). Datasets and uploads expire 7 days after their last use by a generation. The service configuration can change these limits.

file
file
required

Response

Uploaded file. Re-uploading the same content returns the same response and extends the file's lifetime. The kind is detected by the Hub: a .safetensors LoRA goes to durable storage, anything else expires 7 days after its last use.

url
string
required
sha256
string
required
size
integer<int64>
required
media_type
string
required
expires_at
string<date-time> | null
required
kind
string
required
duration_seconds
number<double> | null
required

Duration in seconds measured by the Hub from the file headers (MP4, MOV, WebM with a duration, WAV, MP3), 3 decimals. null for an image or a container whose duration cannot be read; omitted instead of null on a generation output.