[KongchangAI]
· 2 min read· 1,351 words

AI SDK Major Update: Speech Translation and Transcription APIs Go Stable

AI SDK Major Update: Speech Translation and Transcription APIs Go Stable

AI SDK promotes speech translation and transcription APIs to stable and refines error handling and provider capability declarations.

AI SDK released updates to its core and provider packages, centered on maturing speech capabilities: ai@7.0.187 promotes streamSpeechTranslation, streamTranscription, and related types from experimental to stable APIs, keeping old names as deprecated aliases. Streaming errors now attach provider errors to cause so callers can distinguish provider failures from empty output, and retries use exponential backoff with cancellation support. Anthropic corrects Claude capability declarations, Google fixes parallel tool call ID collisions, Alibaba fixes video resolution case sensitivity, and a major SubQ provider is added.

AI SDK has released a batch of core package updates, with the most notable change being the promotion of speech-related experimental APIs to stable status. This update touches the ai core package along with provider packages for Anthropic, Google, Deepgram, and others, while also adding a new SubQ provider.

AI SDK release

Speech and transcription APIs move from experimental to stable

ai@7.0.187 upgrades several capabilities that had long lived under the experimental namespace into official APIs: streamSpeechTranslation (formerly experimental_streamTranslate), StreamSpeechTranslationResult, SpeechTranslationStreamPart, plus the OpenAI and Google speech translation model exports and the speechTranslation() provider shortcut. Also promoted are streamTranscription (formerly experimental_streamTranscribe) and the TranscriptionModelV4Stream* provider type family.

For developers, this means speech translation and real-time transcription are no longer experimental features whose signatures might change at any moment. The old names and translation() remain as deprecated aliases, so existing code won't break immediately, but the migration window is now open—new projects should use the stable APIs directly, and older projects need to plan their replacements.

The difference between experimental and stable APIs in a library like AI SDK is more than a naming convention. Exports carrying the experimental_ prefix mean maintainers reserve the right to change signatures, rename, or even remove the API without a major version bump—so even a patch upgrade could break callers at compile time. Once promoted to stable, these identifiers fall under semantic versioning constraints: breaking changes must wait for the next major version and come with migration notes. For capabilities like speech, which involve audio streams, latency, and significant provider differences, a stability guarantee matters especially because it lets teams put the API into long-lived production code without re-checking signatures on every dependency upgrade. Keeping old names as deprecated aliases is a common transitional approach, typically removed after a few minor versions.

Streaming error handling and retries become more controllable

This release notably refines error semantics. When streaming transcription or translation fails without producing a result, ai now attaches the provider error to the cause of NoTranscriptGeneratedError and NoTranslationGeneratedError. Previously, callers had difficulty distinguishing "the provider is down" from "nobody actually spoke in the audio"; now they can tell these failure types apart at the result promise level.

Retry logic has also changed: retries for streaming requests now use exponential backoff and respect the server's retry headers, and callback-driven retries follow the same rules. When a request or stream is cancelled, pending retries are aborted, preventing background spinning after the user has already left the page.

The cause field in error chains follows the standard JavaScript Error cause option (introduced in ES2022). When the library wraps an underlying provider error into its own domain error, it can place the original error in cause, preserving a unified error type without losing diagnostic information. Callers can use instanceof NoTranscriptGeneratedError for coarse-grained branching, and also follow error.cause to get details like HTTP status codes and provider error codes. Compared to flattening everything into a message string, this makes programmatic checks and log aggregation easier.

Exponential backoff means retry intervals increase multiplicatively (e.g., 1s, 2s, 4s), usually with randomized jitter added to prevent thundering herd effects when many clients retry simultaneously. Respecting the server's Retry-After header lets clients follow the provider's rate-limiting guidance, which is safer than fixed backoff.

Anthropic and Google: capability declarations closer to reality

@ai-sdk/anthropic@4.0.113 corrects capability descriptions for a set of Claude models: for Opus 4.7, 4.8, Opus 5, and Sonnet 5, rejected budget thinking now converts to adaptive thinking; it also declares verified effort levels, fast mode support, and adds constraints for computer protocol, structured output, sampling, compaction, and task budgets. Unavailable Opus 4.0, 4.1, and Sonnet 4.0 IDs are hidden from the public catalog, though request configuration is retained. The official note states that historical capabilities for these models cannot be re-verified and may already be outdated.

@ai-sdk/google@4.0.130 fixes a detail issue in parallel-call scenarios: server tool results now use toolResponse.id itself, avoiding ID collisions during parallel calls.

Model capability metadata is the declaration layer in AI SDK that describes "which parameters and features a specific model supports"—for example, whether it supports structured output, sampling parameters, budget thinking, or fast mode. It determines whether the library passes through a given field when constructing requests and whether that option is allowed at the type level. Capabilities are attached to model IDs rather than the provider level because different generations of models under the same provider vary widely—new models may support adaptive thinking while older ones only accept fixed budgets. Once such metadata diverges from actual API behavior, requests get rejected or parameters are silently dropped, so each correction is essentially narrowing the gap between "declared" and "actual."

New SubQ provider and Alibaba resolution fix

@ai-sdk/subquadratic@3.0.0 is a major release, adding the SubQ provider with language and decision models. As a major version, upgrades require compatibility checks.

Provider packages also went through a round of refactoring to "declare capabilities by model ID," with Cerebras, Cohere, DeepSeekAd, Fireworks, and Groq all following suit. This pattern ties capability metadata to specific models rather than the provider level, making it easier to control behavior at model granularity going forward.

@ai-sdk/alibaba@2.0.97 fixes a case-sensitivity issue with video resolution tiers: lowercase 720p, 1080p, and 480p were previously sent to the API as-is in wan2.6 image-to-video tasks, causing task failure, while on wan2.7 and wan3 they were dropped and fell back to the default resolution. Now tiers differing only in case are sent in the form the API requires, and WIDTHxHEIGHT notation behaves unchanged.

Provider packages and major versions: AI SDK uses a split structure with the core ai package plus several provider packages, where each provider package translates the unified interface into a specific vendor's HTTP protocol and parameter format. Provider packages release independently, so a major upgrade of one provider doesn't affect the core package's version constraints. @ai-sdk/subquadratic@3.0.0 being marked major means its public API has breaking changes, and upgraders need to check whether constructors, model ID naming, or parameter mappings have changed. Adding a provider typically also exports a factory function (like subquadratic()) for the core package to call through a unified entry point.

Responsibility split in the Harness ecosystem

@ai-sdk/harness@1.0.199 moves utility functions that were mistakenly placed in the harness/v1 layer to harness/utils. A batch of harness packages updated accordingly (cline, codex, claude-code, deepagents, etc.) are dependency follow-ups. harness-acp adds support for custom ACP extension methods required by adapters, and harness-cursor declares subagent support and the custom cursor/task extension method.

Overall, the main thread of this release is the maturation of speech capabilities and the refinement of provider metadata. For teams building speech applications on AI SDK, now is a good time to evaluate migrating to the stable APIs.

Key takeaways

  • streamSpeechTranslation and streamTranscription move from experimental to stable APIs, with old names kept as deprecated aliases
  • Streaming errors attach provider errors to cause, distinguishing provider failures from no-output scenarios; retries use exponential backoff and support cancellation
  • Anthropic corrects Claude model capability declarations; Google fixes parallel tool call ID collisions
  • New @ai-sdk/subquadratic@3.0.0 (major) SubQ provider; multiple providers follow up with capability declarations by model ID
  • Alibaba fixes case sensitivity in video resolution tiers

One-line Summary

AI SDK promotes speech translation and transcription APIs to stable, and refines error handling and capability declarations across several providers.

Paragraph Summary

AI SDK released updates to its core package and several provider packages, with the main thread being the maturation of speech capabilities: ai@7.0.187 promotes streamSpeechTranslation, streamTranscription, and related result and stream part types from the experimental namespace to stable APIs, keeping old names as deprecated aliases. Streaming error semantics are refined in tandem, with provider errors attached to the cause of NoTranscriptGeneratedError and NoTranslationGeneratedError, letting callers distinguish provider failures from genuinely empty output; retries now use exponential backoff and respect server retry headers, aborting pending retries on cancellation. On the provider side, Anthropic corrects Claude model capability declarations and hides unavailable model IDs, Google fixes parallel tool call ID collisions, Alibaba fixes case sensitivity in video resolution tiers, and a major version of the SubQ provider is added.

#AI SDK#speech translation API#streamTranscription#streamSpeechTranslation#provider packages#Anthropic#Google#SubQ provider#Alibaba video resolution#streaming error handling
Share:

Related articles