Manage predictions with the VLM Run Python SDK
client.predictions
component provides methods to retrieve, list, and manage predictions across all content types. This is the central hub for tracking the status of all processing jobs in the platform.
wait()
method will raise a TimeoutError
if the prediction doesn’t complete within the specified timeout.
Status | Description |
---|---|
enqueued | The prediction is waiting to be processed |
pending | The prediction is preparing to start |
running | The prediction is actively being processed |
completed | The prediction has completed successfully |
failed | The prediction encountered an error |
paused | The prediction has been paused |
Predictions
class is extended by specialized prediction classes for different media types:
PredictionResponse
object includes these key fields:
usage
field contains a CreditUsage
object:
tqdm
library for progress reporting: