SageMaker Async Goes Inline: A Win for Serverless, Not Batch
AWS has removed the mandatory S3 upload step for SageMaker AI Async Inference, enabling inline payloads. This reduces latency and operational overhead for smaller, event-driven workloads, but the 1 MB payload limit and async nature mean it's not a replacement for batch or synchronous inference.
- What changed: Amazon SageMaker AI Async Inference now supports inline request payloads, eliminating the need to pre-upload input data to S3 before calling InvokeEndpointAsync.
- Why it matters: This reduces latency, cost, and code complexity for smaller inference requests, especially in serverless and event-driven architectures.
- Key tension: The 1 MB payload limit and async latency mean this feature is a targeted improvement, not a universal replacement for S3-based or synchronous inference workflows.
What Does This Change Mean for My Inference Pipeline?
According to the AWS Machine Learning Blog, published June 17, 2026, the new inline payload support allows customers to send inference payloads directly in the request body of the InvokeEndpointAsync API. Previously, every async inference required a two-step process: upload the input to an S3 bucket, then invoke the endpoint with the S3 URI. This added latency from the S3 upload, increased code complexity for managing temporary files, and incurred additional S3 PUT request costs.
Now, for payloads under 1 MB, developers can skip the S3 staging step entirely. The AWS documentation confirms that the API accepts a ContentType header and the raw payload in the body, returning an OutputLocation in S3 where the results will be written. This is a direct quality-of-life improvement for developers who have long complained about the friction of async inference setup.

Who Actually Benefits From This Feature?
The primary beneficiaries are teams running event-driven ML workloads—for example, a serverless function triggered by an API Gateway call that needs to run a lightweight NLP model or image classifier. According to the AWS documentation, the inline payload limit is 1 MB. This naturally constrains the feature to smaller inputs like short text strings, low-resolution images, or tabular data rows. Teams processing large documents, high-res images, or video frames will still need to use the S3-based workflow.
Another clear winner is the serverless developer community. Combining SageMaker Async Inference with inline payloads and AWS Lambda creates a simpler architecture: Lambda receives a request, calls the async endpoint with the inline payload, and polls for results. No S3 bucket management, no lifecycle policies for temporary files. This reduces the operational burden and makes async inference more accessible to teams without dedicated ML infrastructure expertise.
However, this is a loss for teams that have already invested heavily in S3-based orchestration tools like AWS Step Functions or custom workflow engines. Their existing patterns remain valid, but they now face a decision: migrate to inline payloads for simplicity or stick with the proven S3 path for consistency.
| Workflow Aspect | Old Way (S3 Staging) | New Way (Inline Payload) |
|---|---|---|
| Payload Size Limit | Up to 100 MB (S3 object limit) | 1 MB (API request body limit) |
| Latency Overhead | ~50-200ms for S3 upload | None (direct request) |
| Code Complexity | Manage temporary S3 files, permissions | Single API call with payload |
| Cost | S3 PUT requests (~$0.005 per 1,000) | No additional S3 costs |
| Best For | Large files, batch processing | Small, event-driven requests |
| Verdict | Still required for batch/large payloads | Superior for lightweight, real-time async |
What Are the Operational Tradeoffs I Should Consider?
The most significant tradeoff is the 1 MB payload limit. The AWS blog post does not explicitly state this limit, but the AWS API documentation for InvokeEndpointAsync confirms that the request body is subject to API Gateway's standard limits (typically 10 MB for REST APIs, but SageMaker's async endpoint enforces a 1 MB limit for inline payloads). This means any payload exceeding 1 MB will be rejected, forcing teams back to the S3 staging path.
Another tradeoff is latency predictability. While inline payloads remove S3 upload latency, the overall end-to-end latency is still dominated by the model inference time and the async polling mechanism. For latency-sensitive applications where sub-second response is critical, synchronous inference via InvokeEndpoint remains the better choice. The AWS blog post explicitly frames this as an async feature, meaning results are written to S3 and must be polled or retrieved asynchronously.
Finally, there's a security consideration. S3-based workflows allow for fine-grained IAM policies and encryption at rest. With inline payloads, the data travels through the API request path and is only encrypted in transit (TLS). Teams with strict data residency or encryption requirements may prefer the S3 path where they can enforce server-side encryption with customer-managed keys (SSE-KMS).
My thesis: This is a welcome but narrow improvement—it solves a real developer pain point for a specific class of workloads, but it does not fundamentally change the async inference value proposition.
In the short term, I expect to see a surge in adoption from serverless and event-driven application developers who previously avoided async inference due to the S3 staging friction. AWS Lambda + SageMaker Async Inference with inline payloads becomes a compelling stack for lightweight ML inference in microservices architectures. The long-term consequence is that AWS is positioning SageMaker to compete more directly with serverless inference offerings from competitors like Google Cloud Run for AI and Azure Functions with managed endpoints. The winner here is the developer who wants simplicity; the loser is any team that has built custom S3-based orchestration tooling that now feels unnecessarily complex.
My concrete prediction: By Q1 2027, AWS will increase the inline payload limit to 5 MB based on customer feedback, and will add support for streaming responses in async inference to further reduce polling overhead.
What Should I Do Next?
- Audit your current async inference workloads. Identify any endpoints where the average payload size is under 1 MB. These are prime candidates for migration to inline payloads.
- Update your Lambda functions and API Gateway integrations. Remove the S3 upload code and replace it with a direct
InvokeEndpointAsynccall with the inline payload. Test for latency improvements. - Monitor S3 costs. If you were paying for thousands of small S3 PUT operations daily, the savings from eliminating those requests should be visible in your billing dashboard within 30 days.
- Do not migrate large-batch or high-resolution workloads. The 1 MB limit is a hard constraint. Continue using the S3 staging path for payloads exceeding that threshold.
What Remains Uncertain?
The AWS blog post does not specify whether inline payloads support binary data (e.g., protobuf or image bytes) or only text-based formats like JSON and CSV. The documentation suggests standard ContentType headers are supported, but teams using custom serialization formats should test thoroughly. Additionally, it's unclear whether inline payloads will be supported in the SageMaker SDK's higher-level abstractions (like the Predictor class) or only through the raw API. AWS has not announced any pricing changes, so the cost benefits are limited to S3 request savings rather than inference compute cost reductions.
- By Q4 2026, AWS will add inline payload support to the SageMaker Python SDK, making it accessible to data scientists who prefer high-level APIs over raw REST calls.
- By Q2 2027, at least two major ML infrastructure competitors (Google Cloud AI Platform, Azure Machine Learning) will announce similar inline payload support for their async inference offerings, validating this as an industry-standard feature.
- By Q3 2027, AWS will increase the inline payload limit to 5 MB based on customer feedback, addressing the most common complaint about the feature.
- June 2026AWS announces inline payload support for SageMaker AI Async Inference
Customers can now send inference payloads directly in the request body, removing the S3 upload requirement.
- Expected Q4 2026AWS likely adds inline payload support to SageMaker Python SDK
Higher-level API support expected to broaden adoption among data scientists.
- Expected Q2 2027Competitors likely announce similar inline payload features
Google Cloud AI Platform and Azure Machine Learning expected to follow AWS's lead.
- Expected Q3 2027AWS potentially increases inline payload limit
Customer feedback may drive an increase from 1 MB to 5 MB.
- June 2026: AWS announces inline payload support for SageMaker AI Async Inference, removing the mandatory S3 upload step.
- Expected Q4 2026: AWS likely adds inline payload support to the SageMaker Python SDK.
- Expected Q2 2027: Competitors like Google Cloud and Azure likely announce similar inline payload features.
- Expected Q3 2027: AWS potentially increases the inline payload limit based on customer feedback.
- Inline payloads are a developer experience win, not an infrastructure revolution. The core async inference architecture remains unchanged—only the input path is simplified.
- The 1 MB limit is the defining constraint. Teams must evaluate their payload sizes before adopting this feature; it is not a universal replacement for S3 staging.
- Serverless and event-driven architectures are the primary beneficiaries. Lambda + SageMaker Async Inference with inline payloads becomes a first-class pattern for lightweight ML inference.
- Security teams should review the data path. Inline payloads bypass S3 encryption controls; teams with strict compliance requirements may need to continue using the S3 path.
- This feature signals AWS's intent to compete on developer simplicity. Expect more friction-reducing features in SageMaker over the next 12 months.
Source and attribution
AWS Machine Learning Blog
Amazon SageMaker AI Async Inference now supports inline request payloads
Discussion
Add a comment