Run and deploy your AI Studio app
This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/a38a3cd5-7f82-49f0-a26e-99be4d77f863
Run Locally
Prerequisites: Node.js, system ffmpeg, and system ffprobe
- Install dependencies:
npm install - Configure .env with:
ARK_API_KEYGEMINI_API_KEYMINIMAX_API_KEY - Optional defaults:
DEFAULT_LLM_PROVIDER=doubaoDOUBAO_MODEL=doubao-seed-2-0-pro-260215VITE_API_BASE_PATH=/api(optional)FFMPEG_PATH=/path/to/ffmpeg(optional)FFPROBE_PATH=/path/to/ffprobe(optional) - Run the app:
npm run dev
Model Switching
- Subtitle generation now runs through the server and supports
DoubaoandGemini. - The editor shows an
LLMselector and defaults toDoubao. TTSstays fixed onMiniMaxregardless of the selected LLM.- All provider keys are read from
.env; the browser no longer calls LLM providers directly.
Deploying Under a Subpath
- If your site is hosted under a subpath (for example
https://ai.yantootech.com/video_translate/), set:VITE_API_BASE_PATH=/video_translate/api - Keep backend routes unchanged (
/api/*on the server); the frontend will prepend the configured base path.
Subtitle Generation
- Subtitle generation is now driven by server-side multimodal LLM calls on the uploaded video file.
- No separate local alignment/ASR backend is required for
/api/generate-subtitles.
Description
Languages
TypeScript
99.3%
Smarty
0.4%
Dockerfile
0.1%
CSS
0.1%