Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI news ·

Deepgram speech APIs gain per-request agent payments on AWS

AI agents can now buy Deepgram speech-to-text and text-to-speech API calls through AWS Marketplace with per-request billing at $0.004333 per audio minute. No API keys or pre-negotiated contracts are required, and failed calls don't incur charges.

AI agents can now purchase individual Deepgram speech-to-text and text-to-speech API requests directly through AWS Marketplace, with charges billed to an AWS account rather than requiring a separate Deepgram contract. The integration uses the x402 payment protocol, removing the need for developers to manage API keys for agent-driven workloads.

The service covers Deepgram's Nova-3 speech-to-text model and two text-to-speech models, Flux TTS and Aura-2. Agents can request transcriptions or audio generation on a per-call basis without negotiating a subscription, according to the company's documentation.

How the payment flow works

The integration relies on three batch endpoints, each priced per request. Streaming endpoints are not available through AWS Marketplace. The AWS account must have AgentCore payments configured with a Payment Manager, an AWS Billing connector, and a payment session with a defined spend limit.

When an agent sends a request to an endpoint, it receives an HTTP 402 Payment Required response containing a signed price quote. The agent passes that quote to AgentCore payments to obtain a payment token, then retries the same request with the token. A successful response includes the result and an AWS Marketplace payment ID in a response header.

A paid quote stays valid for five minutes. If a request fails, the payment is not consumed - the agent can retry with corrected parameters as long as the cost does not exceed the amount already paid.

Model pricing and capabilities

The Nova-3 endpoint accepts hosted audio or raw audio files up to roughly 4.5 MB and returns transcript JSON synchronously. The callback parameter is not supported in this integration. AWS Marketplace lists Nova-3 at $0.004333 per audio minute, or $0.005167 per minute with the multilingual setting enabled.

Optional features carry separate per-minute charges: keyterm detection at $0.001333, redaction at $0.002, and entity detection at $0.001667. For text-to-speech, Flux TTS is priced at $0.045 per 1,000 input characters, while Aura-2 costs $0.03 per 1,000 input characters. Both return audio with MP3 as the default format, and each request's quote states its exact price in U.S. dollars.

Framework support and implementation

Deepgram's documentation notes that AgentCore payments plugins for Strands Agents and LangGraph currently handle stablecoin payments only. Developers using those frameworks can call the AgentCore payments ProcessPayment function from a tool to pay AWS Marketplace quotes.

Deepgram provides Python and TypeScript examples, along with a script for the one-time AWS account setup. Payment tokens can also be bound to a key, which adds an additional proof header to the retried request.

Why this matters for product and operations teams

For teams building AI agents that need speech capabilities, this removes a procurement bottleneck. Agents can consume Deepgram's models without a pre-negotiated contract or a centrally managed API key - each request is billed directly to an AWS account with a spend limit. Product developers working on voice-enabled customer support tools or internal operations automations can prototype and scale without waiting for vendor onboarding. Finance teams gain per-request cost visibility through existing AWS billing, and the five-minute quote window means agents can self-correct failed calls without wasting budget. For developers exploring speech-to-text integration, Speech to Text AI Courses offer practical grounding in the technology, while those building agent workflows may find relevant material in AI for Software Developers Courses.

Share