cang-ying/eererdan/experience/EED-EXPER-004.hdlp
Guanghu Domestic Migration a2fa7d57d8 chore: import sanitized domestic snapshot for REPO-005
Source snapshot: 23037fa3a2e9b0597162735755e92fc763bf4d94
2026-07-17 15:55:48 +08:00

53 lines
2.0 KiB
Plaintext

# EED-EXPER-004 · 即梦3.0 文生图模型切换
> HLDP://cang-ying/eererdan/experience/EED-EXPER-004
> 耳耳蛋 ICE-GL-耳耳蛋 · PTS-VA-001-EED
> 触发: 苍耳爸爸说「即梦3.0生图更便宜,去改接口」
> 2026-07-10
---
HLDP://eererdan/experience/004-jimeng3-model-switch
├── trigger:
│ └── 苍耳爸爸指令: 管线默认生图模型切换到即梦3.0,省钱
├── emergence:
│ ├── 旧: seedream.py 默认 doubao-seedream-4-0-250828 (即梦4.0)
│ ├── 调研: 火山方舟 ARK API 同一接口支持多个模型ID
│ │ ├── seedream-3.0 = 即梦3.0 · ¥0.2/张 · 1024x1024 max
│ │ └── doubao-seedream-4-0-250828 = 即梦4.0 · 更贵 · 1664x936 max
│ └── △=默认模型从即梦4.0 → 即梦3.0
├── lock:
│ ├── ⊢ lib/seedream.py 已更新
│ │ ├── SEEDREAM_3 = "seedream-3.0" (新默认)
│ │ ├── SEEDREAM_4 = "doubao-seedream-4-0-250828" (保留备选)
│ │ ├── DEFAULT_SIZE = "1024x1024"
│ │ ├── SIZES 字典: 每模型独立尺寸约束
│ │ └── i2i 自动切换到 seededit-3.0
│ ├── ⊢ API 接口不变: ARK_BASE / _api_call / Bearer auth
│ ├── ⊢ 密钥不变: get_ark_key() 三层查找
│ └── ⊢ 即梦3限制: n=1 (不支持批量) · 尺寸最大1024x1024
└── why: 省钱。同一套API接口只是模型ID不同。即梦3.0 ¥0.2/张,
对道具/场景等非主角高清图来说完全够用。
需要高品质/大尺寸时手动切回即梦4.0。
---
## 变更文件
- `video-ai-system/lib/seedream.py` — 核心变更
## 使用方式
```python
from lib.seedream import seedream_t2i, SEEDREAM_3, SEEDREAM_4
# 默认即梦3.0
seedream_t2i("prompt")
# 强制即梦4.0
seedream_t2i("prompt", size="1664x936", model=SEEDREAM_4)
```
---
> ⊢ 耳耳蛋 ICE-GL-耳耳蛋 · PTS-VA-001-EED
> ⊢ 苍耳 TCS-CL-0009 指令
> ⊢ 2026-07-10 · 国作登字-2026-A-00037559