Models API

PredictionStatusResponse

object
statusstringrequired

Current status of the prediction

Allowed values:startingprocessingsucceededfailedcanceled

Example:processing

generation_urlstring

URL to download the generated content (available when status is ‘succeeded’)

Example:https://api.pruna.ai/v1/predictions/delivery/xezq/52UGYRrRfqViaKmvYsEnENTh0qLDAWHptQ8jOnEHu7XC6AtKA/output.mp4

messagestring

Status message

Example:Generation in progress

errorstring

Error details (available when status is ‘failed’)

Example:Number of samples, -5, must be non-negative.

Example

PredictionStatus

string

Current status of the prediction:

  • starting: Prediction is being queued
  • processing: Model is generating content
  • succeeded: Content generated successfully
  • failed: Prediction failed with error
  • canceled: Prediction was canceled by user

Allowed values:startingprocessingsucceededfailedcanceled

OutputFile

object
urlstringrequired

Relative URL path for downloading the generated content file

Example:/v1/predictions/delivery/xezq/52UGYRrRfqViaKmvYsEnENTh0qLDAWHptQ8jOnEHu7XC6AtKA/output.mp4

filenamestringrequired

Filename of the generated content

Example:output.mp4

content_typestringrequired

MIME type of the generated content (e.g., image/jpeg, video/mp4)

Example:video/mp4

sizeinteger

File size in bytes

Example:15728640

Example

PredictionError

object
codestringrequired

Error code for programmatic handling

Allowed values:INVALID_INPUTMODEL_ERRORTIMEOUTQUOTA_EXCEEDEDINTERNAL_ERROR

Example:INVALID_INPUT

messagestringrequired

Human-readable error message

Example:Invalid prompt: prompt too long

detailsstring

Additional error details

Example:Prompt must be less than 1000 characters

Example

Error

object
errorobjectrequired
Show Child Parameters
request_idstring

Unique request identifier for debugging

Example:req_1234567890

Example