Get your API key
1
Create or sign into your DeepSeek account
Head to the DeepSeek Platform and sign up or log in.
2
Create an API key
Navigate to the API keys section and create a new key.
3
Add it to your env
Paste the key in your
.env.local file:Available models
All models are defined in the unified model registry atlib/ai/models.ts.
Apps using DeepSeek
DeepSeek is integrated through Vercel AI SDK 6.0, with provider routing handled bylib/ai/ai-utils.ts.
Chat
Multi-provider chat app — DeepSeek is available as an LLM provider
How it works
The codebase uses Vercel AI SDK 6.0 with a unified model registry — no direct DeepSeek API calls needed. Here’s the typical flow for an AI request:- You select a model from the unified registry
- The request goes through
getModelInstance()inlib/ai/ai-utils.ts - The provider is determined via
getProviderFromModelId() - The model is instantiated with
customModel() - The response is streamed back to you
- Results are stored in PostgreSQL
Structure
Understand the full project structure of the codebase.

