Prompt Buddy logoPrompt Buddy

vercel · Vercel AI SDK Docs

AI SDK Getting Started: Node.js

Initial setup and configuration of the AI SDK within a Node.js environment.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

AI SDK Getting Started: Node.js

Initial setup and configuration of the AI SDK within a Node.js environment.

When To Use

Use when setting up a new Node.js project to integrate the AI SDK for generative AI capabilities.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/ai-sdk-getting-started-node-js-workflow-guide.mdA markdown guide outlining the prerequisites, installation, and initial setup for using the Vercel AI SDK in a Node.js environment.Questions about a markdown guide outlining the prerequisites, installation, and initial setup for using the Vercel AI SDK in a Node.j...
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-getting-started-setup-comma.textShell commands for initializing a new Node.js project and installing dependencies for the AI SDK.Exact payloads, commands, or snippets shown in Shell commands for initializing a new Node.js project and installing dependencies for the AI SDK.
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-getting-started-installatio.textThe shell commands required to install the AI SDK, Zod, dotenv, and TypeScript development dependencies.Exact payloads, commands, or snippets shown in The shell commands required to install the AI SDK, Zod, dotenv, and TypeScript development dependencies.
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-getting-started-environment.textA text file containing the environment variable configuration required to initialize the AI SDK in a Node.js environment.Exact payloads, commands, or snippets shown in A text file containing the environment variable configuration required to initialize the AI SDK in a Node.js environm...
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-streamtext-readline.textA Node.js script using the AI SDK's streamText function and readline interface to create an interactive terminal chat loop.Exact payloads, commands, or snippets shown in A Node.js script using the AI SDK's streamText function and readline interface to create an interactive terminal chat...
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-getting-started.textA basic implementation example for getting started with the AI SDK in a Node.js environment.Exact payloads, commands, or snippets shown in A basic implementation example for getting started with the AI SDK in a Node.js environment.
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-gateway-import-options.textCode examples demonstrating how to import the gateway function from either the 'ai' package or the '@ai-sdk/gateway' package.Exact payloads, commands, or snippets shown in Code examples demonstrating how to import the gateway function from either the 'ai' package or the '@ai-sdk/gateway'...
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-openai-quickstart.textA basic Node.js implementation using the AI SDK and OpenAI provider to initialize a model.Exact payloads, commands, or snippets shown in A basic Node.js implementation using the AI SDK and OpenAI provider to initialize a model.
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-streamtext-readline-2.textA Node.js implementation using the AI SDK to stream text responses through a terminal readline interface.Exact payloads, commands, or snippets shown in A Node.js implementation using the AI SDK to stream text responses through a terminal readline interface.
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-getting-started-2.textA Node.js implementation demonstrating how to use the AI SDK with streamText and tools in a terminal interface.Exact payloads, commands, or snippets shown in A Node.js implementation demonstrating how to use the AI SDK with streamText and tools in a terminal interface.
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-streamtext-readline-3.textA Node.js script demonstrating how to use the AI SDK's streamText function with a terminal-based readline interface for interactive chat.Exact payloads, commands, or snippets shown in A Node.js script demonstrating how to use the AI SDK's streamText function with a terminal-based readline interface f...
examples/ai-sdk-getting-started-node-js-ai-sdk-nodejs-streamtext-readline-4.textA Node.js script demonstrating how to use the AI SDK's streamText function with a terminal-based readline interface for interactive chat.Exact payloads, commands, or snippets shown in A Node.js script demonstrating how to use the AI SDK's streamText function with a terminal-based readline interface f...

What This Skill Covers

  • Getting Started Node.js Copy markdown
  • Main sections: Prerequisites, Setup Your Application, Install Dependencies, Configure Vercel AI Gateway API key, Create Your Application.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://ai-sdk.dev/docs/getting-started/nodejs