> For the complete documentation index, see [llms.txt](https://docs.degirum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.degirum.com/axelera/basics/running-inference.md).

# Running inference

Learn how to run inference with your model using simple, flexible methods—single images, video streams, or entire folders.

*Estimated read time: 1 minute*

Once a model is loaded in PySDK (e.g., using `ModelSpec(...).load_model()`), you can run inference using three core methods:

* `predict`: run inference on a [single image](/axelera/basics/running-inference/images.md)
* `predict_batch`: run inference on a stream or iterator of images (ideal for video streams); for convenience, common video sources (e.g., files, webcams, and RTSP streams) are wrapped by [`degirum_tools.predict_stream`](/axelera/basics/running-inference/videos.md), which uses `predict_batch` under the hood and handles capture, looping, and cleanup for you
* `predict_dir`: run inference on [all images in a folder](/axelera/basics/running-inference/folders.md)
