PredictionStatusResponse
objectCurrent 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.
PredictionStatus
stringCurrent status of the prediction:
starting: Prediction is being queuedprocessing: Model is generating contentsucceeded: Content generated successfullyfailed: Prediction failed with errorcanceled: Prediction was canceled by user
Allowed values:startingprocessingsucceededfailedcanceled
OutputFile
objectRelative URL path for downloading the generated content file
Example:/v1/predictions/delivery/xezq/52UGYRrRfqViaKmvYsEnENTh0qLDAWHptQ8jOnEHu7XC6AtKA/output.mp4
Filename of the generated content
Example:output.mp4
MIME type of the generated content (e.g., image/jpeg, video/mp4)
Example:video/mp4
File size in bytes
Example:15728640
PredictionError
objectError code for programmatic handling
Allowed values:INVALID_INPUTMODEL_ERRORTIMEOUTQUOTA_EXCEEDEDINTERNAL_ERROR
Example:INVALID_INPUT
Human-readable error message
Example:Invalid prompt: prompt too long
Additional error details
Example:Prompt must be less than 1000 characters
Error
objectShow Child Parameters
Unique request identifier for debugging
Example:req_1234567890