

# Containers with custom inference code
<a name="your-algorithms-inference-main"></a>

You can use Amazon SageMaker AI to interact with Docker containers and run your own inference code in one of two ways:
+ To use your own inference code with a persistent endpoint to get one prediction at a time, use SageMaker AI hosting services.
+ To use your own inference code to get predictions for an entire dataset, use SageMaker AI batch transform.

**Topics**
+ [Custom Inference Code with Hosting Services](your-algorithms-inference-code.md)
+ [Custom Inference Code with Batch Transform](your-algorithms-batch-code.md)