Models API

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.

get
https://api.pruna.ai/v1/predictions/delivery/{path}

Path Parameters

pathstringrequired

The delivery path returned in the prediction status response

Example:xezq/52UGYRrRfqViaKmvYsEnENTh0qLDAWHptQ8jOnEHu7XC6AtKA/output_42_0.jpeg

Response

Content file downloaded successfully

string

Generated image file

get/v1/predictions/delivery/{path}
 

PredictionRequest

object
inputobjectrequired

Model-specific input parameters

* Additional properties are allowed.
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