Models API

p-image

object
inputobjectrequired
* Additional properties are NOT allowed.
Show Child Parameters
Example

p-image-edit

object
inputobjectrequired
* Additional properties are NOT allowed.
Show Child Parameters
Example

PredictionResponse

object
idstringrequired

Unique identifier for the prediction

Example:1zww7deyssrme0csqwr90phzzr

modelstringrequired

Model identifier used for this prediction

Example:vace

inputobjectrequired

The input parameters provided for this prediction

* Additional properties are allowed.
get_urlstring(uri)required

URL to check prediction status

Example:https://api.pruna.ai/v1/predictions/status/1zww7deyssrme0csqwr90phzzr

Example

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