++
This commit is contained in:
@@ -96,10 +96,43 @@ curl -X POST http://localhost:8765/images/generations \
|
||||
|
||||
## Prompt 技巧
|
||||
|
||||
- 使用英文 prompt 效果更好
|
||||
- 描述要具体:主体 + 环境 + 光线 + 风格 + 情绪
|
||||
- 横版图用 `--size 1536x1024`,正方形用 `--size 1024x1024`
|
||||
- 加上 `cinematic lighting, highly detailed, 4K` 等后缀提升质感
|
||||
### 基本结构
|
||||
|
||||
一个高质量的 prompt 建议包含:**主体 + 动作/状态 + 环境 + 光线 + 风格 + 情绪 + 画质后缀**。描述越具体,出图越符合预期。
|
||||
|
||||
```text
|
||||
[主体] [动作/状态],[环境/场景],[光线],[风格],[情绪],[画质后缀]
|
||||
```
|
||||
|
||||
### 示例对比
|
||||
|
||||
| 模糊(效果差) | 具体(效果好) |
|
||||
|---|---|
|
||||
| `a cat` | `a fluffy orange tabby cat sleeping on a windowsill, warm afternoon sunlight, cozy living room, photorealistic, peaceful mood, cinematic lighting, highly detailed` |
|
||||
| `a car` | `a red sports car driving on a mountain road at sunset, golden hour light, dramatic clouds, cinematic wide shot, sense of speed, 4K, highly detailed` |
|
||||
| `a girl` | `a young girl with braided hair reading a book under a cherry blossom tree, soft morning light, anime style, nostalgic mood, detailed illustration` |
|
||||
|
||||
### 常用要素清单
|
||||
|
||||
- **光线**:golden hour、soft morning light、neon lights、candlelight、cinematic lighting、studio lighting
|
||||
- **风格**:photorealistic、anime style、watercolor、oil painting、3D render、pixel art、cyberpunk、minimalist
|
||||
- **情绪**:peaceful、mysterious、energetic、nostalgic、romantic、dark
|
||||
- **画质后缀**:highly detailed、8K、sharp focus、award winning photography
|
||||
|
||||
### 尺寸参数
|
||||
|
||||
`size` 是请求体里的 JSON 字段,不是命令行参数:
|
||||
|
||||
- 正方形:`"size": "1024x1024"`
|
||||
- 横版:`"size": "1536x1024"`(仅 GPT 1K 稳定支持)
|
||||
- Grok 模型的 `size` 不可靠,输出尺寸不受控,建议固定用 `1024x1024`
|
||||
|
||||
### 其他建议
|
||||
|
||||
- 使用英文 prompt 效果通常比中文好
|
||||
- 需要保持系列风格一致时,把风格描述固定写在 prompt 末尾
|
||||
- 想要照片质感:加 `photorealistic, cinematic lighting, highly detailed`
|
||||
- 想要插画/二次元风:指明 `anime style, detailed illustration` 或 `watercolor` 等风格词
|
||||
|
||||
## 配置与注意事项
|
||||
|
||||
|
||||
Reference in New Issue
Block a user