The prediction ID returned from the initial request
Example:1knpbkf075rme0csjqr987hg4w
Check the status of a prediction request. This is the second step in the asynchronous workflow.
When the prediction is completed successfully, the response will include download URLs for the generated content (images or videos).
Rate limit: 30,000 requests per minute.
The prediction ID returned from the initial request
Example:1knpbkf075rme0csjqr987hg4w
Prediction status retrieved successfully
Current status of the prediction
Allowed values:startingprocessingsucceededfailedcanceled
Example:processing
URL to download the generated content (available when status is ‘succeeded’)
Example:https://api.pruna.ai/v1/predictions/delivery/xezq/52UGYRrRfqViaKmvYsEnENTh0qLDAWHptQ8jOnEHu7XC6AtKA/output.mp4
Status message
Example:Generation in progress
Error details (available when status is ‘failed’)
Example:Number of samples, -5, must be non-negative.
Upload files (images or videos) to be used as input for predictions. Uploaded files are stored temporarily and can be referenced in prediction requests by their URL.
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 a limited time 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. The file path should be absolute or relative to your current directory.
The file to upload (image or video)
File uploaded successfully
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
Additional file metadata (varies by file type)
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
Download generated content files (images or videos). Content is typically available for 24 hours after generation.
Download the generated content file. This is the third and final step in the workflow.
Use the URL provided in the prediction status response to download your generated content.
Rate limit: 10,000 requests per minute.
The delivery path returned in the prediction status response
Example:xezq/52UGYRrRfqViaKmvYsEnENTh0qLDAWHptQ8jOnEHu7XC6AtKA/output_42_0.jpeg
Content file downloaded successfully
Generated image file