megachangelog
Feature

Simplified file retrieval from Vercel Sandbox environments

The Vercel Sandbox SDK now includes downloadFile() and readFileToBuffer() methods to simplify retrieving files generated in isolated sandbox VMs, eliminating the need for manual stream handling and custom piping.

The now includes two new methods that make file retrieval simple.Vercel Sandbox SDK

When you run code in a , that code can generate files like a CSV report, a processed image, or a PDF invoice. These files are created inside isolated VMs, so they need to be retrieved across a network boundary. Until now, this required manual stream handling with custom piping.Vercel Sandbox

If you want to download a generated report from your sandbox to your local machine, you can use to seamlessly stream the contents.downloadFile()

Both methods handle the underlying stream operations automatically. For example, if your sandbox runs a script that generates a chart as a PNG, you can pull it out with a single call to , no manual stream wiring needed.readFileToBuffer()

Learn more about the or explore the updated .Sandbox SDKdocumentation

Read more

Download a file

Read file contents to buffer

sandboxsdkfile-retrievalapideveloper-experience

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Feature

OpenAI Decisions API now available on AI Gateway

OpenAI's Decisions API is now accessible through Vercel's AI Gateway with an OpenAI-compatible endpoint, enabling decision models to answer typed questions and return probabilities, choices, and scores for routing, triage, and guardrails use cases. Support is available across the OpenAI SDK, AI SDK, HTTP API, and CLI with the latest versions.

ai-gatewayopenaiapidecisionssdks
Feature

Timestamp attributes now supported in Vercel Flags

Vercel Flags now supports timestamp attributes for entities, allowing you to create time-based targeting rules. Use this feature to run limited-time campaigns, show content between specific dates, or target users based on registration date.

flagstargetingfeaturetimestampscampaigns
Feature

Glyph Cluster now available in stealth on AI Gateway

Glyph Cluster, a reasoning model for coding and long-context analysis, is now available as a stealth model on Vercel's AI Gateway for Pro and Enterprise plan teams with purchased AI Gateway credits at no cost during the stealth period. The model supports function calling, streams responses, and can be accessed via AI SDK, OpenAI-compatible APIs, and coding agents.

ai-gatewaymodelscodingstealth
See all Vercel changes →