npm / @ai-sdk/minimax
@ai-sdk/minimax
What changed in @ai-sdk/minimax 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
1 breaking1 security10 new APIs and options1 performance3 behavior and defaults8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@ai-sdk/minimax 317 changes
Breaking changes 1
Top-level reasoning values map to the closest supported level, rounding down when possible; unsupported none values map to the model's lowest level with a compatibility warning.
Security 1
@ai-sdk/provider-utils has an Uncontrolled Resource Consumption issue
New APIs and options 7
Adds support for text-to-image generation and image editing, including output controls and token usage details.
Adds support for text-to-image generation and image editing, including output controls and token usage details.
Adds MiniMax support for standard and priority service tiers, warns and omits tiers belonging to another known provider, and exposes the applied tier in Anthropic-compatible generation, stream, and batch metadata.
Adds the MiniMax M3.1 Flash model ID to the MiniMax and AI Gateway providers.
MiniMax video generation now supports asynchronous start and status operations while preserving existing polling behavior.
Adds model-aware 480P and 768P video resolutions, duration limits, and reference-input validation.
Adds a provider with language model support for the MiniMax-M model series.
Performance 1
Provider validation schemas are constructed on first use to reduce package import time.
Behavior and default changes 2
Autocomplete suggestions are derived from each provider’s model catalog declarations, so catalog updates are reflected automatically while existing suggestions, endpoint-specific lists, and custom model IDs are preserved.
Provider API key and token settings now support promises and synchronous or asynchronous callbacks, resolving credentials per authenticated request while preserving existing authentication behavior and synchronous credential serialization.
Fixes and other changes 5
Provider-returned identifiers are encoded in credentialed follow-up request paths.
The User-Agent header is now standards-compliant.
For application-owned receivers,
doStartforwardswebhookUrlascallback_url.Redirects are now validated during video status polling for MiniMax.
Maps MiniMax 480P and 768P frame sizes to their named video resolution tiers, allowing a typed top-level resolution to reach them.
@ai-sdk/minimax 27 changes
New APIs and options 3
Adds MiniMax H3 Image and H3 Image Highspeed support for text-to-image generation and image editing, including output controls and token usage details.
Adds support for MiniMax M3.1 Flash, including reasoning effort, image detail, video input and frame sampling, prompt cache control, and sampling controls.
Adds model-aware 480P and 768P video resolutions.
Behavior and default changes 1
Adds model-aware duration limits for video.
Fixes and other changes 3
Provider-returned identifiers are encoded in follow-up request paths.
MiniMax-H3 text-to-video requests now send a default 16:9 ratio.
Adds validation for video reference inputs.