10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
即梦AI Jimeng 视频自动化生成完全指南
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install flyingzl/browser-session-managerInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
TL;DR: 本文记录如何通过 Playwright + 浏览器 Session 管理,实现即梦AI视频生成的全自动化。包含图片压缩、Cookie 注入、表单填写、视频提交等完整流程。
即梦AI (jimeng.jianying.com) 是字节跳动旗下的 AI 视频生成平台。官方提供了 Web 界面,但没有开放 API。当我们需要批量生成视频或集成到工作流时,就需要通过浏览器自动化来实现。
workspace/
├── screenshots/
│ └── YYYYMMDD_HHMMSS/ # 按时间戳组织的截图
│ ├── 01_initial.png
│ ├── 02_start_uploaded.png
│ └── ...
├── skills/
│ ├── browser-session-manager/ # Session 管理 Skill
│ └── web-form-automation/ # 表单自动化 Skill
└── session-data.json # Cookie 数据文件
即梦对上传图片有大小限制,必须先压缩:
# 转换为 WebP 格式,压缩到 30-50KB
convert start.png start.webp
convert end.png end.webp
# 验证大小
ls -lh *.webp
# -rw-r--r-- 1 node node 88K Feb 15 14:59 start.webp
# -rw-r--r-- 1 node node 54K Feb 15 14:59 end.webp
⚠️ 重要: PNG 原图可能 4MB+,直接上传会失败。WebP 格式可压缩 99% 且画质损失极小。
从浏览器导出 Cookie 和 LocalStorage,保存为 JSON:
{
"exportTime": "2026-02-15T14:55:58.374Z",
"url": "https://jimeng.jianying.com/ai-tool/home?type=video",
"hostname": "jimeng.jianying.com",
"cookies": [
{
"name": "sessionid",
"value": "xxx",
"domain": ".jianying.com",
"path": "/",
"secure": false,
"httpOnly": true,
"sameSite": "unspecified"
}
],
"localStorage": {
"dreamina__generator_video_modelKey...
These signals come from indexed source analysis and may lag behind changes. Check the current source files.
# 即梦AI (Jimeng) 视频自动化生成完全指南
> **TL;DR**: 本文记录如何通过 Playwright + 浏览器 Session 管理,实现即梦AI视频生成的全自动化。包含图片压缩、Cookie 注入、表单填写、视频提交等完整流程。
---
## 📋 背景
即梦AI (jimeng.jianying.com) 是字节跳动旗下的 AI 视频生成平台。官方提供了 Web 界面,但没有开放 API。当我们需要批量生成视频或集成到工作流时,就需要通过浏览器自动化来实现。
## 🎯 核心挑战
1. **登录状态保持**: 需要正确处理 Cookies 和 LocalStorage
2. **文件上传**: 需要压缩图片到合适大小(WebP 格式最佳)
3. **动态表单**: 需要等待元素加载、处理弹窗
4. **提交检测**: 需要检测页面跳转和生成状态
## 🛠️ 技术栈
- **Playwright**: 浏览器自动化框架
- **ImageMagick**: 图片压缩(convert 命令)
- **Node.js**: 脚本运行环境
---
## 📁 目录结构
```
workspace/
├── screenshots/
│ └── YYYYMMDD_HHMMSS/ # 按时间戳组织的截图
│ ├── 01_initial.png
│ ├── 02_start_uploaded.png
│ └── ...
├── skills/
│ ├── browser-session-manager/ # Session 管理 Skill
│ └── web-form-automation/ # 表单自动化 Skill
└── session-data.json # Cookie 数据文件
```
---
## 🚀 完整实现步骤
### 1. 准备阶段:图片压缩
即梦对上传图片有大小限制,必须先压缩:
```bash
# 转换为 WebP 格式,压缩到 30-50KB
convert start.png start.webp
convert end.png end.webp
# 验证大小
ls -lh *.webp
# -rw-r--r-- 1 node node 88K Feb 15 14:59 start.webp
# -rw-r--r-- 1 node node 54K Feb 15 14:59 end.webp
```
**⚠️ 重要**: PNG 原图可能 4MB+,直接上传会失败。WebP 格式可压缩 99% 且画质损失极小。
---
### 2. Session 数据准备
从浏览器导出 Cookie 和 LocalStorage,保存为 JSON:
```json
{
"exportTime": "2026-02-15T14:55:58.374Z",
"url": "https://jimeng.jianying.com/ai-tool/home?type=video",
"hostname": "jimeng.jianying.com",
"cookies": [
{
"name": "sessionid",
"value": "xxx",
"domain": ".jianying.com",
"path": "/",
"secure": false,
"httpOnly": true,
"sameSite": "unspecified"
}
],
"localStorage": {
"dreamina__generator_video_modelKey...generate a bunch of images, then you curate the results to handpick the best ones
generate a bunch of images, then you curate the results to handpick the best ones
Productivity system based on Maya calendar with 13 natural tones for project management and personal development
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.