The file to upload (image or video)
Upload a file
Upload a file (image or video) to be used as input for predictions.
The uploaded file will be stored temporarily and can be referenced in prediction
requests by its URL.
Uploaded files are available for 30 minutes after upload
and are automatically deleted after expiration. Use the returned URL in
your prediction input fields that accept file URLs.
Rate limit: 10000 requests per minute
Example with curl:
curl -X POST "https://api.pruna.ai/v1/files" \
-H "apikey: YOUR_API_KEY" \
-F "content=@/path/to/your/file.jpg"
Note: Use -F (form) with @ prefix to upload a file from your local filesystem.
Body
multipart/form-data
Body
Response
application/json
Response
File uploaded successfully
FileUploadResponse
Unique identifier for the uploaded file
Example:fqadqq42xq
Original filename
Example:test.jpg
MIME type of the uploaded file
Example:image/jpeg
File size in bytes
Example:185093
Entity tag for cache validation
Example:"14e9a51deaac6bee2dd8b5c52d7d0b5f"
File integrity checksums
Show Child Parameters
Additional file metadata (varies by file type)
Show Child Parameters
Timestamp when the file was uploaded
Example:2025-01-08T18:51:26.729Z
Timestamp when the file will expire and be deleted
Example:2025-01-09T18:51:26.729Z
URLs to access the uploaded file
Show Child Parameters
Authentication
Body
Content Delivery
Download generated content files
Download generated content
Download the generated content file. This is the third and final
step in the workflow.
Use the generation_url from the prediction status response directly - no path extraction needed.
Simply make a GET request to that URL with your API key.
Rate limit: 10,000 requests per minute.
Path Parameters
The delivery path returned in the prediction status response
Example:xezq/52UGYRrRfqViaKmvYsEnENTh0qLDAWHptQ8jOnEHu7XC6AtKA/output_42_0.jpeg
Response
Response
Content file downloaded successfully
Generated image file
Authentication
Path Parameters
PredictionRequest
objectModel-specific input parameters
PredictionResponse
objectUnique identifier for the prediction
Example:1zww7deyssrme0csqwr90phzzr
Model identifier used for this prediction
Example:vace
The input parameters provided for this prediction
URL to check prediction status
Example:https://api.pruna.ai/v1/predictions/status/1zww7deyssrme0csqwr90phzzr