Neon Functions

AI model by Neon

Long-running serverless functions that branch with your Postgres database.

Neon Functions is a serverless compute platform that allows developers to run backend logic in the same region as their Lakebase Postgres database. It is built for businesses and developers who need to deploy APIs, AI agents, or long-running tasks without managing separate infrastructure. Functions are fully integrated with the Neon ecosystem, meaning they branch alongside the database and automatically receive credentials for other Neon primitives like Object Storage and AI Gateway. This architecture enables instant, isolated development environments where code and data stay in sync.

Languages
JavaScript, TypeScript
Runtime
Node.js
Supported languages
JavaScript, TypeScript
Integration
Automatic DATABASE_URL injection

Overview

Neon Functions is a serverless compute platform that allows developers to run backend logic in the same region as their Lakebase Postgres database. It is built for businesses and developers who need to deploy APIs, AI agents, or long-running tasks without managing separate infrastructure. Functions are fully integrated with the Neon ecosystem, meaning they branch alongside the database and automatically receive credentials for other Neon primitives like Object Storage and AI Gateway. This architecture enables instant, isolated development environments where code and data stay in sync.

Serverless Compute

  • Regional deployment: Deploy serverless Node.js compute directly onto a Neon branch in the same region as the database.
  • Automatic credential injection: The DATABASE_URL and credentials for AI Gateway and Object Storage are automatically injected into the function environment.
  • Long-running support注入: Functions can handle long-running tasks such as tool-calling loops, streaming handlers, and WebSockets.
  • Branch-aware compute: Functions branch alongside the database, providing isolated backend environments for previews and tests.

Use Cases

  • API hosting: Host REST APIs using frameworks like Hono or Express directly on the Neon platform.
  • MCP server support: Run Model Context Protocol (MCP) servers to allow AI agents to interact with application data securely.
  • Event-driven logic: Implement webhook handlers and cron jobs without managing separate server infrastructure.

Pricing

Free plan compute
10 active and 400 waiting capacity-hours monthly
Free plan invocations
1M per project monthly
Launch plan compute
$0.10 per active capacity-hour
Scale plan compute
$0.12 per active capacity-hour

Specifications

Runtime
Node.js
Supported languages
JavaScript, TypeScript
Integration
Automatic DATABASE_URL injection

Added by AntSpace from public sources (neon.com).

Related

More AI models by Neon