This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/drive/1OUp6mUePBedokruaOvSQFPBS7w5gKKW6
Prerequisites: Node.js
- Install dependencies:
npm install - Create
.env.localfile with your API keys (see below) - Run the app:
npm run dev
Create a .env.local file in the project root:
# Text API (DeepSeek or Zhipu AI - OpenAI compatible)
TEXT_API_KEY=your_text_api_key_here
TEXT_API_BASE_URL=https://api.deepseek.com
TEXT_API_MODEL=deepseek-chat
# Image API (SiliconFlow - OpenAI compatible)
IMAGE_API_KEY=your_image_api_key_here
IMAGE_API_BASE_URL=https://api.siliconflow.cn/v1
IMAGE_API_MODEL=stabilityai/stable-diffusion-3-5bDeepSeek:
TEXT_API_BASE_URL=https://api.deepseek.com
TEXT_API_MODEL=deepseek-chatZhipu AI (智谱):
TEXT_API_BASE_URL=https://open.bigmodel.cn/api/paas
TEXT_API_MODEL=glm-4Qwen Image (default):
IMAGE_API_MODEL=Qwen/Qwen-Image
IMAGE_API_BASE_URL=https://api.siliconflow.cn/v1SiliconFlow also supports other models:
black-forest-labs/FLUX.1-devblack-forest-labs/FLUX.1-schnell
See SiliconFlow Docs for more models.
- Push code to GitHub
- Connect repository to Vercel
- Set environment variables in Vercel dashboard
- Deploy
