vercel · Vercel AI SDK Docs
AI SDK Getting Started: Node.js
Initial setup and configuration of the AI SDK within a Node.js environment.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/ai-sdk-getting-started-node-js-workflow-guide.md | A 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.text | Shell 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.text | The 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.text | A 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.text | A 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.text | A 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.text | Code 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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