AWS inference stack
AI inference is the process of using a trained machine learning (ML) model to make predictions based on input data. Traditional ML inference typically involves relatively small models with modest compute requirements. However, generative AI (gen AI) inference has introduced new requirements in terms of compute, specialized hardware, and system optimizations.
As shown in the following diagram, AWS provides a multi-layer AI inference stack to address customers' diverse inference needs.

Following are descriptions of each layer of the AI inference stack.
Serverless inference layer
Following are key capabilities of the serverless inference layer, which is the top layer of the AI inference stack:
Powered by Amazon Bedrock
which offers a wide choice of industry leading foundation models (FMs) along with a broad set of capabilities to build generative AI applications. Supports importing custom models with popular architectures such as Llama, Mistral, and Qwen.
Abstracts infrastructure management completely including high availability, scaling, and performance tuning.
Pay-as-you-go pricing by using tokens or capacity units. For more information, see Amazon Bedrock pricing
. Ideal for organizations who want to minimize operational and development effort.
Managed inference layer
Following are key capabilities of the managed inference layer, which is the middle layer of the AI inference stack:
Powered by Amazon SageMaker AI
which provides a broad set of tools to enable high-performance, low-cost ML for building, training and deploying AI models at scale. It provides all these capabilities in one integrated development environment (IDE). Enables serving pre-trained or custom models on managed infrastructure.
Balances control with simplicity and with flexibility in choosing inference engines, scaling policies, and instance types.
Suitable for organizations who want more control over deployment configuration, scaling behavior, and cost optimization while maintaining operational simplicity.
Self-managed inference layer
Following are key capabilities of the self-managed inference layer, which is the bottom layer of the AI inference stack:
Powered by Amazon EC2 instances
with AWS Trainium and AWS Inferentia chips, AWS and NVIDIA GPUs , and CPUs. Offers broad and deep compute capabilities with over 1,000 instances and choice of the latest processor, storage, networking, operating system, and purchase model. Can operate through services like Amazon Elastic Kubernetes Service
(Amazon EKS) or Amazon Elastic Container Service (Amazon ECS). Offers maximum flexibility and control of their infrastructure and software.
Ideal for organizations who require complete control over their infrastructure.