Skip to content

Amazon SageMaker Async Inference Drops the Mandatory S3 Upload for Payloads Under 128KB

Amazon SageMaker Async Inference now accepts payloads directly in the API call body, removing the required S3 pre-upload step for requests under 128,000 bytes in 31 AWS regions.

Amazon SageMaker Studio console showing JupyterLab, Code Editor and build tiles
Credit: AWS

Amazon SageMaker's async inference endpoint now accepts payloads directly in the API request body, removing the mandatory Amazon S3 upload step that was previously required before every asynchronous inference call.

Amazon announced the change on June 17. The new Body parameter on the InvokeEndpointAsync API accepts raw bytes up to 128,000 bytes. When used, it replaces the prior two-step workflow, which required uploading input data to an S3 bucket and then passing the resulting S3 object URI as the InputLocation parameter. The two parameters are mutually exclusive: passing both in the same call returns a synchronous ValidationError.

Amazon SageMaker's async inference mode already suited workloads where processing takes seconds to minutes or where traffic is bursty enough to benefit from automatic scale-to-zero. The friction was the S3 dependency: for small structured payloads like JSON prompts or lightweight documents, provisioning an input bucket, managing IAM permissions for s3:PutObject, and cleaning up stale input objects added operational overhead that outweighed the latency tolerance those jobs required. The inline path removes that dependency entirely for payloads under 128KB, which covers the majority of text-based inference use cases.

The practical change for Amazon SageMaker users is one fewer AWS service in the critical path per invocation. Output behavior is unchanged: results are still written to a configured S3 output location, polled by the caller or delivered via Amazon SNS notification. No changes to endpoint configuration, model containers, or existing InputLocation-based workflows are required. The feature is live in 31 commercial AWS regions as of launch.

The 128KB cap keeps the inline path from displacing S3 for large-payload jobs. Images, audio files, and multi-megabyte documents still go through the S3 upload route. For teams with mixed workloads, the expected pattern is branching on size at the client: inline for small structured inputs, S3 for anything larger. The net effect is fewer moving parts in the common case and one less billing line from S3 PUT charges on small Amazon SageMaker invocations.

Share this story

Julian Beaumont

Julian Beaumont covers artificial intelligence and large language models for techshooked, following a model from research paper to product feature. Coverage explains what a new model can do, how it was trained and evaluated, where its benchmarks are strong and where they stop being informative, and what the change means for the developers building on its API.