> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# Amazon SageMaker AI Introduces Usage-Based Pricing for Bidirectional Streaming
- URL: https://www.stirup.si/amazon-sagemaker-ai-introduces-usage-based-pricing-for-bidirectional-s-e7b7fb1e/
- Published: 2026-11-11T15:21:38.000Z
- Updated: 2026-11-11T15:21:38.000Z
- Description: Amazon SageMaker AI introduces usage-based pricing for bidirectional streaming, enabling fair billing based on actual consumption for real-time speech AI applications.
- Author: Satish Das
- Tags: Cloud, News, Stirup Research

## Introduction to Usage-Based Pricing for Bidirectional Streaming

Introducing usage-based pricing for Amazon SageMaker AI bidirectional streaming addresses a key challenge in software billing for real-time speech AI applications. This new model allows model providers to report actual usage for AWS Marketplace software charges, ensuring fair and accurate billing based on consumption. Initially, Amazon SageMaker AI introduced bidirectional streaming for real-time inference, enabling long-lived bidirectional streams between clients and model servers. With the addition of usage-based metering, this capability now supports more precise and transparent pricing for bidirectional streaming inference, aligning costs with actual usage patterns. This development is part of Amazon’s ongoing efforts to enhance the scalability and cost-efficiency of AI inference services on the platform.

## Technical Implementation of Bidirectional Streaming

Amazon SageMaker AI bidirectional streaming utilizes a two-connection architecture to support real-time data and metadata exchange. When a session begins, SageMaker AI initiates a data connection for inference requests and responses, maintaining the existing bidirectional stream. Simultaneously, a metadata WebSocket connection is established after the model server returns `X-Amzn-SageMaker-Metadata-Stream-Supported: true`. This second connection is opened at the default path `/invocations-bidirectional-stream-metadata`, or a custom path specified via the `X-Amzn-SageMaker-Metadata-Invocation-Path` header. This separation ensures efficient handling of both data payloads and metadata, enabling more precise control and monitoring of streaming sessions. The `X-Amzn-SageMaker-Metadata-Stream-Required` header only applies when `X-Amzn-SageMaker-Metadata-Stream-Supported` is set to true, allowing developers to configure metadata stream behavior based on their application needs.

## Constraints and Limitations of Usage-Based Metering

Usage-based pricing for Amazon SageMaker AI bidirectional streaming introduces specific constraints and limitations that developers must consider. For instance, the maximum message size is capped at 512 bytes, referring to the total size of the JSON text frame. Additionally, the send rate is limited to one message per second per connection, with exceeding this rate potentially leading to dropped messages. Other constraints include a maximum dimension length of 128 characters and a maximum client token length of 64 characters. Each frame must contain exactly one message, and batching multiple metering records in a single frame is not supported. Furthermore, only text frames are supported for metering, with binary frames not being allowed. Error handling is governed by the Required header, which determines the behavior when the metadata connection becomes unavailable. Developers should also note that Amazon SageMaker AI endpoint infrastructure charges remain separate and still apply.

## Getting Started with Usage-Based Metering and Deepgram

Amazon SageMaker AI now supports usage-based pricing for bidirectional streaming with Deepgram, enabling more flexible cost management for AI applications. To get started, users must first subscribe to the Deepgram Voice AI streaming model of their choice on AWS Marketplace, such as the Deepgram Nova-3 Monolingual Speech-to-Text (STT) Streaming model. Once subscribed, developers can connect to the endpoint using the SageMaker AI bidirectional streaming API and send audio through an HTTP/2 event stream. This approach allows real-time processing and interaction, making it suitable for applications like live transcription and voice-controlled interfaces. The integration is designed to align with AWS’s usage-based metering framework, ensuring that costs are tied directly to actual usage rather than fixed subscriptions. This model is particularly beneficial for organizations looking to optimize expenses while leveraging advanced speech-to-text capabilities.

## Conclusion and Next Steps for Model Providers

With the introduction of usage-based pricing for Amazon SageMaker AI bidirectional streaming, model providers now have the ability to align their AWS Marketplace software pricing with actual usage during live sessions. This approach ensures that customers are charged based on real-time consumption, offering greater transparency and flexibility. For customers, the process begins by subscribing to a model such as Deepgram Nova-3 Monolingual Speech-to-Text (STT) Streaming on AWS Marketplace. For model providers, the next step involves following the integration walkthrough provided in this post to implement usage-based metering on their own model server. This shift supports more accurate billing and encourages efficient resource utilization. As this capability continues to evolve, it is expected to further enhance the scalability and cost-effectiveness of AI-powered streaming applications.

## Sources and reporting notes

- [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/introducing-usage-based-pricing-for-amazon-sagemaker-ai-bidirectional-streaming/?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.