AI Cloud Architect

Introducing bidirectional streaming for real-time inference on Amazon SageMaker AI

AWSHow-to by Lingran Xia, Chinmay Bapat, Deepti Ragha, Kareem Syed-Mohammed, Vivek Gangasani, Victor Wang and Xu DengAWS Artificial Intelligence Blog

We’re introducing bidirectional streaming for Amazon SageMaker AI Inference, which transforms inference from a transactional exchange into a continuous conversation. This post shows you how to build and deploy a container with bidirectional streaming capability to a SageMaker AI endpoint. We also demonstrate how you can bring your own container or use our partner Deepgram’s pre-built models and containers on SageMaker AI to enable bi-directional streaming feature for real-time inference.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

SageMaker AI endpoints now support bidirectional streaming, so audio or other data can flow to a model and results return over one persistent connection.

Who it is for

Teams building real-time speech or voice agents on SageMaker AI that need live transcription or continuous model responses.

Key points

  • Uses HTTP/2 from client to SageMaker router and WebSocket between the sidecar and the model container.
  • Containers must implement WebSocket and carry the label com.amazonaws.sagemaker.capabilities.bidirectional-streaming=true.
  • Deepgram Nova-3 speech-to-text is available via AWS Marketplace, with a 14-day software trial; infrastructure charges still apply.
  • AWS says the sidecar sends WebSocket pings every 60 seconds and closes the connection after 5 unanswered pings.

The same at other vendors

Timeline

  1. This postIntroducing bidirectional streaming for real-time inference on Amazon SageMaker AIAlso published by What's New with AWS
  2. Listed inAmazon SageMaker AI in 2025, a year in review part 2: Improved observability and enhanced features for SageMaker AI model customization and hosting · AWS · Blog post
  3. Read nextBuild real-time voice applications with Amazon SageMaker AI and vLLM · AWS · How-to
  4. Read nextBuild real-time voice applications with vLLM-Omni on SageMaker AI – Part 1 · AWS · How-to
  5. Explained inStream low-latency speech from AI agents using Kokoro TTS on Amazon SageMaker AI · AWS · How-to

Go deeper