安装 belt CLI 技能:
npx skills add belt-sh/cli
书籍封面设计
使用 inference.sh CLI 通过AI图像生成创建符合类型要求的书籍封面。
快速开始
需要 inference.sh CLI (
belt)。安装说明
belt login
# 生成一个惊悚小说封面概念
belt app run falai/flux-dev-lora --input '{
"prompt": "dark moody book cover art, lone figure standing at end of a rain-soaked alley, dramatic chiaroscuro lighting, noir atmosphere, cinematic, high contrast shadows",
"width": 832,
"height": 1248
}'
类型惯例
读者通过封面来判断书籍。匹配类型期望至关重要——浪漫小说的读者会跳过看起来像科幻小说的封面,无论内容如何。
小说
| 类型 | 色板 | 图像 | 排版 | 氛围 |
|---|---|---|---|---|
| 惊悚/悬疑 | 深色(黑色、海军蓝、血红) | 孤身一人、城市场景、阴影 | 粗体无衬线,全大写 | 紧张、不祥 |
| 浪漫 | 暖色(粉色、红色、金色、柔紫) | 情侣、花朵、风景背景 | 手写体/草书、优雅衬线 | 激情、梦幻 |
| 科幻 | 冷色(蓝色、青色、紫色、银色) | 太空、科技、几何形状 | 干净无衬线,未来感 | 浩瀚、科技感 |
| 奇幻 | 丰富饱和(翡翠绿、深红、金色) | 剑、魔法、风景、生物 | 装饰性衬线,华丽 | 史诗、魔幻 |
| 文学小说 | 柔和、精致 | 抽象、简约、象征 | 优雅衬线,低调 | 沉思、艺术 |
| 恐怖 | 深色搭配高对比点缀 | 面孔、阴影、孤立、腐朽 | 破旧、粗体、滴落 | 恐惧、不安 |
| 历史 | 棕褐色、柔和的时代准确 | 时代服装、建筑、文物 | 经典衬线 | 怀旧、真实 |
非虚构
| 类别 | 风格 | 图像 | 排版 |
|---|---|---|---|
| 商业/自助 | 干净、粗体、2-3种颜色 | 极简或无,可选图标 | 大号粗体无衬线标题 |
| 回忆录 | 个人、温馨 | 作者照片或氛围场景 | 衬线和无衬线混合 |
| 科学/学术 | 专业、结构化 | 图表、抽象视觉 | 干净衬线,结构化布局 |
| 烹饪书 | 开胃、明亮 | 美食主图照片 | 温暖、诱人的字体 |
| 旅行 | 生动、令人向往 | 目的地摄影 | 冒险风格字体 |
封面尺寸
印刷(成品尺寸)
| 格式 | 尺寸 | 常见用途 |
|---|---|---|
| 大众市场平装 | 4.25 x 6.87 英寸 | 类型小说 |
| 贸易平装 | 5.5 x 8.5 英寸 | 多数小说/非虚构 |
| 标准 | 6 x 9 英寸 | 非虚构、教科书 |
| 大尺寸 | 7 x 10 英寸 | 咖啡桌、艺术书籍 |
数字
| 平台 | 封面尺寸 | 宽高比 |
|---|---|---|
| Amazon Kindle | 2560 x 1600 px(最小 1000 x 625) | 1.6:1 |
| Apple Books | 最小 1400 x 1873 px | ~3:4 |
| 通用电子书 | 2500 x 3750 px | 2:3 |
书脊宽度
近似值:页数 / 400 = 书脊宽度(英寸)(因纸张类型而异)。
- 200 页 ≈ 0.5 英寸书脊
- 400 页 ≈ 1.0 英寸书脊
布局区域
┌─────────────────────────┐
│ 标题区域 │ ← 上1/3:标题必须在此处可读
│ (最大文字) │ 缩略图中显示的内容
│ │
│ │
│ 主图像 │ ← 中间:核心视觉/插图
│ 区域 │ 情感钩子
│ │
│ │
│ 副标题 / │ ← 底部区域:作者姓名、副标题
│ 作者区域 │ 较小文字,缩略图时不太关键
└─────────────────────────┘
缩略图测试
你的封面将在亚马逊上以 80x120px、搜索结果中 60x90px、移动网格上约 40x60px 的大小显示。
在缩略图尺寸下,读者必须能够识别:
- 类型(通过颜色和构图)
- 标题(如果足够大)
- 氛围(通过图像)
测试: 将封面缩小到 80px 宽。如果你无法阅读标题或识别类型,请重新设计。
按类型提示
惊悚
belt app run falai/flux-dev-lora --input '{
"prompt": "dark cinematic book cover scene, silhouette of a person standing before a foggy bridge at night, single streetlamp casting long shadows, noir atmosphere, high contrast, desaturated blue tint, dramatic tension",
"width": 832,
"height": 1248
}'
浪漫
belt app run bytedance/seedream-4-5 --input '{
"prompt": "romantic soft-focus scene, couple silhouetted against golden sunset on a beach, warm pink and gold tones, bokeh lights, dreamy atmosphere, soft pastel sky, intimate mood",
"size": "2K"
}'
科幻
belt app run falai/flux-dev-lora --input '{
"prompt": "science fiction book cover art, massive space station orbiting a ringed planet, deep blue and teal color palette, stars and nebula background, hard sci-fi aesthetic, cinematic scale, clean geometric architecture",
"width": 832,
"height": 1248
}'
奇幻
belt app run xai/grok-imagine-image-pro --input '{
"prompt": "epic fantasy book cover illustration, ancient stone castle on a cliff overlooking a misty valley, magical aurora in the sky, rich emerald and gold colors, detailed environment, sense of wonder and adventure",
"aspect_ratio": "2:3"
}'
非虚构 / 商业
belt app run falai/flux-dev-lora --input '{
"prompt": "minimal abstract book cover background, clean gradient from deep navy to white, subtle geometric pattern, professional and modern, negative space, corporate aesthetic",
"width": 832,
"height": 1248
}'
排版规则
AI 无法可靠地渲染文字。 使用 AI 生成封面艺术/背景,然后在设计工具中添加排版。
标题层次
- 标题 —— 最大、最显眼、封面顶部1/3处
- 副标题 —— 较小,在标题下方或底部
- 作者姓名 —— 封面底部,大小取决于作者知名度
按类型的字体搭配
- 惊悚:粗体无衬线标题 + 紧凑无衬线作者姓名
- 浪漫:手写体/草书标题 + 优雅衬线作者姓名
- 科幻:几何无衬线用于两者
- 奇幻:装饰性/中世纪衬线标题 + 干净衬线作者姓名
- 商业:厚重粗体无衬线标题 + 轻盈无衬线副标题
迭代工作流程
# 1. 在多个模型上生成 5 个以上的概念
belt app run falai/flux-dev-lora --input '{"prompt": "...", "width": 832, "height": 1248}' --no-wait
belt app run bytedance/seedream-4-5 --input '{"prompt": "..."}' --no-wait
belt app run xai/grok-imagine-image-pro --input '{"prompt": "...", "aspect_ratio": "2:3"}' --no-wait
# 2. 使用图到图编辑优化最佳概念
belt app run bytedance/seededit-3-0-i2i --input '{
"prompt": "make the sky more dramatic with storm clouds, increase contrast",
"image": "path/to/best-concept.png"
}'
# 3. 放大到印刷质量
belt app run falai/topaz-image-upscaler --input '{
"image": "path/to/final-cover.png",
"scale": 4
}'
常见错误
| 错误 | 问题 | 修复 |
|---|---|---|
| 错误的类型信号 | 读者跳过 | 研究你所在类型的畅销书 |
| 标题太小 | 缩略图不可见 | 标题应填满上1/3 |
| 太多细节 | 小尺寸下模糊不清 | 简化,使用留白 |
| AI 生成的文字 | 乱码 | 在设计工具中添加文字 |
| 全部居中 | 静态、乏味 | 有意识地使用不对称 |
| 盲目追随趋势 | 很快过时 | 经典类型惯例经久不衰 |
检查清单
- 从颜色和构图中可立即识别类型
- 标题在 80px 宽(缩略图测试)下可读
- 封面上没有 AI 生成的文字
- 在彩色和灰度下都有效
- 目标平台的正确尺寸
- 作者姓名可见但不与标题竞争
- 高分辨率(印刷 300 DPI,数字 2500px+)
- 书脊文字可读(针对印刷)
相关技能
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@prompt-engineering
npx skills add inference-sh/skills@image-upscaling
浏览所有应用:belt app list