AWS SageMaker Endpoints#
Managed HTTPS endpoints that serve SageMaker model predictions.
Important
✨ AI-generated content. This page was written with the assistance of an AI language model and is provided as a learning aid. Despite careful review, it may still contain mistakes, omissions, or out-of-date information. Whether you are new to the topic, a team lead, or a senior practitioner, treat it as a starting point rather than an authoritative reference: read it critically and independently verify anything you act on (code, commands, figures, and factual claims) against official documentation and primary sources before relying on it.
What it is#
An AWS SageMaker endpoint is a fully managed API for serving a trained model: you deploy the model and SageMaker handles infrastructure, scaling and serving so there are no servers to run. Input goes in, the endpoint runs inference, predictions come out.
The three types#
Real-time endpoints are always-on HTTPS with low latency and autoscaling — for fraud checks or chatbots. Asynchronous endpoints handle large payloads or long jobs: upload to S3, the endpoint processes, results land back in S3 — good for video or big documents. Batch transform runs offline over a whole S3 dataset with no live endpoint — ideal for scheduled jobs like scoring every customer monthly.
Deploying one#
The path is: train or import a model (any framework, or ONNX) and save artifacts to S3; register it as a Model with its inference script; create an endpoint configuration (instance type, scaling); deploy; then invoke via the SDK or REST:
import boto3
sm = boto3.client("sagemaker-runtime")
response = sm.invoke_endpoint(
EndpointName="my-endpoint",
ContentType="application/json",
Body='{"data":[1.0, 2.0, 3.0]}',
)
Why use them#
They are fully managed (no EC2 to babysit), autoscaling for traffic spikes, framework-flexible (custom Docker too), secure (IAM, VPC, encryption), and cost controllable — pay for instance time, or shift to async/batch to save when latency is not critical.
Theme: MLOps, Serving & Monitoring · All terminology
Hint
Mind map — connected ideas
AWS SageMaker · Cloud Inference with Big Payloads · OpenAI API (ML API) · ONNX (Open Neural Network Exchange) · Drift Detection · Vertex AI
Hint
More in MLOps, Serving & Monitoring
Caching · Cloud Inference · Cloud Inference with Big Payloads · Compute budgets · Continuous Retraining · Feature Values · Guardrails (in ML & Data Systems) · Inference Cost (Inference $) · Latency Guardrails · Manual review minutes · Model KPIs (Key Performance Indicators) · Model Stability · Monitoring Pipelines · Ops Health Dashboard
See also
Source article Adapted (context, re-expressed) in our own words from: AWS SageMaker Endpoints (insightful-data-lab.com).