Vercel Functions using the Node.js and Python runtimes now support execution durations up to 30 minutes for Pro and Enterprise teams, more than 2x the previous 800 second limit. Support for additional runtimes is coming soon.
Use longer-running Functions for work that needs more time to finish, including:
Long LLM reasoning and tool calls
AI responses that stream for several minutes
Document and media processing
OCR and extraction
Web scraping and browser automation
Complex Workflow steps or Queue handlers
Fluid compute keeps long-running work cost-efficient. Active CPU billing only applies while your code is executing, and pauses while your Function is waiting on I/O such as AI model calls, database queries, and third-party APIs.
Set maxDuration to opt in. For Next.js App Router, configure it in the route file:
app/api/long-task/route.ts
export const maxDuration = 1800 ; // 30 minutes
export async function POST ( request : Request ) {
return Response .…