Passer au contenu principal
POST
Upload file

Autorisations

Authorization
string
header
requis

Fanify API key.

Corps

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
requis

Réponse

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
requis
sha256
string
requis
size
integer<int64>
requis
media_type
string
requis
expires_at
string<date-time> | null
requis
kind
string
requis
duration_seconds
number<double> | null
requis

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.