Skip to content

Updating to AI SDK 6.2.3

This update compares two baselines: the application SDK moves from 6.0.0 to 6.2.3, while the published documentation last listed the 5.24.0 catalog. The current production catalog contains 201 models across 31 providers: 66 image, 84 video, 24 audio, and 27 text.

SDK changes since 6.0.0

The SDK adds 11 production text-model IDs with no production model removals: claude-sonnet-4-5, claude-sonnet-5, gemini-2.5-flash, gpt-4.1-mini, gpt-4.1-nano, gpt-4o, gpt-4o-mini, gpt-5, gpt-5-mini, gpt-5.1, and gpt-5.2. These IDs are available through the typed text-generation API and model constants.

Result metadata migration

Version 6.1.0 removes seed, nsfw, width, height, contentType, duration, fps, and fileSize from items[].metadata, including runtime promotion. Update consumers that read these properties. exploreImageId and generatedVoiceId remain supported.

The new optional lastFrameUrl promotes a vendor's last_frame_url for frame chaining. Request the last frame from a supporting Seedance model, then use the returned URL as a subsequent start frame.

ts
const first = await client.generate('seedance-2.5', {
  prompt: 'A paper boat drifts down a quiet stream',
  returnLastFrame: true,
});
const startFrame = first.items[0]?.metadata?.lastFrameUrl;
if (startFrame) {
  await client.generate('seedance-2.5', {
    prompt: 'The boat passes under a stone bridge',
    startFrame,
  });
}

The URL is optional because it depends on the vendor response. Check it before starting the next generation.

Seedance output compatibility

Version 6.2.3 adds colorDepth: '10bit' | '8bit' alongside the existing outputFormat: 'mp4' | 'mov' container setting. MP4 and MOV support were already present in 6.0.0. Color depth is selectable for 1080p MP4 only; 480p and 720p already use 8-bit, while MOV does not offer an 8-bit variant. The default remains 10-bit.

ts
const video = await client.generate('seedance-2.5', {
  prompt: 'A bird lands on a garden fence',
  resolution: '1080p',
  outputFormat: 'mp4',
  colorDepth: '8bit',
});

This requests the worker's H.264 8-bit re-encode (mp4_8bit) for compatibility with browsers and editors. The same setting applies to the 2.5 edit and extend variants. The SDK also exposes preview variants, which are excluded from this site's production catalog.

Node.js 20 or newer is still required. The workflow types dependency advances from ^1.1.137 to ^1.1.139; package exports stay unchanged. See the official source comparison.

Changes since the published documentation

The published catalog grows from 181 to 201 entries: 26 added and 6 removed. Meta joins the active provider list; Reve leaves it, keeping the provider total unchanged. Historical provider links remain available.

Added catalog entries

Model IDNameMode
claude-fable-5Claude Fable 5text
claude-fable-5-1Claude Fable 5.1text
claude-opus-5Claude Opus 5text
claude-sonnet-4-5Claude Sonnet 4.5text
claude-sonnet-5Claude Sonnet 5text
flux-video-editFLUX Video Editvideo
gemini-2.5-flashGemini 2.5 Flashtext
gemini-3.8-flashGemini 3.8 Flashtext
gpt-4.1-miniGPT-4.1 Minitext
gpt-4.1-nanoGPT-4.1 Nanotext
gpt-4oGPT-4otext
gpt-4o-miniGPT-4o Minitext
gpt-5GPT-5text
gpt-5-miniGPT-5 Minitext
gpt-5.1GPT-5.1text
gpt-5.2GPT-5.2text
gpt-5.6-lunaGPT-5.6 Lunatext
gpt-5.6-solGPT-5.6 Soltext
gpt-5.6-terraGPT-5.6 Terratext
gpt-6-astraGPT-6 Astratext
gpt-image-2.5-flareGPT Image 2.5 Flareimage
gpt-image-2.5-sunburstGPT Image 2.5 Sunburstimage
lyria-3.5Lyria 3.5audio
minimax-h3-max-camera-controlsMiniMax H3 Max Camera Controlsvideo
minimax-h3-max-turboMiniMax H3 Max Turbovideo
muse-image-1.0Muse Image 1.0image

Removed from the production catalog

picsart-qwen-image-edit-angle, qwen-image-2, reve, sora-2, sora-2-extend, sora-2-pro. These IDs are no longer listed by the SDK's production catalog; this does not imply that a vendor discontinued the underlying model.

Provider tables and model parameter sections reflect the current catalog. For current discovery, use the Model Catalog or gen-ai models info <id> --json.

Built on @picsart/ai-sdk · gen-ai CLI · Picsart MCP · Media Studio · Skills