2 Commits
Author SHA1 Message Date
jinghui c25f8b474c feat: AI生图弹窗新增生图模型点选 (v1.4.11)
- 弹窗按通道分组列出8个可选模型(CF Workers AI/Pollinations), 点击即选中高亮
- 所选模型存localStorage下次沿用; 自动初始化=设置默认模型
- generate带model参数(effModel=前端所选>设置默认), 后端加ALLOWED_MODELS白名单, 未知模型400
- 实测点选Pollinations动漫出图返回model=pollinations-flux-anime; 白名单拦截bogus-model
- 版本号4处升至1.4.11, CHANGELOG补条目
2026-11-19 14:38:18 +08:00
jinghui cac9484861 feat: 提示词全中文化 (v1.4.10)
- 40条图片预设新增中文详细提示词 promptCn, 卡片预览/悬浮提示/点击填入均显示中文
- 英文 prompt 字段保留作对照与翻译兜底(后台 translatePromptToEnglish 沿用)
- 实测中文提示词 7.3s 翻译成英文并出图成功
- 版本号4处升至1.4.10, CHANGELOG补 v1.4.10 条目
2026-11-19 12:13:14 +08:00
8 changed files with 138 additions and 62 deletions

No files matched your search

+12
View File
@@ -1,5 +1,17 @@
# 更新日志
## 2026-11-19 → v1.4.11
- ✨ **AI 生图弹窗新增「生图模型」点选**:按通道分组列出全部可选模型(CF Workers AI / Pollinations),点一下即选中并高亮,所选模型存 localStorage 下次沿用;自定义提供商则显示设置里配置的模型
- 生成时把所选模型带给后端(effModel = 前端所选 > 设置默认),后端加模型白名单校验,未知模型名直接 400
- 选了参考图时提示会自动切 FLUX.2 图生图模型;右上角保留「通道设置」入口
## 2026-11-19 → v1.4.10
- ✨ **提示词全中文化**:40 条图片预设新增中文详细提示词 promptCn(主体+场景+光线+构图+风格+质量),预设卡片、悬浮提示、点击填入全部显示中文;英文 prompt 字段保留作对照与翻译兜底
- ✨ 发送时沿用后台自动中译英链路(translatePromptToEnglish),实测中文提示词 7.3 秒翻译并出图成功
- 视频弹窗 6 条脚本提示词本就为中文,无需改动
## 2026-11-19 → v1.4.9
**AI 生图配置统一到设置 + 提示词全中文化**——模型与通道配置不再在弹窗里重复出现,提示词所见即中文:
+9
View File
@@ -83,6 +83,12 @@ const EDIT_MODELS = [
{ id: 'flux-2-klein-4b', name: 'FLUX.2 Klein 4B(图生图·最省)' }
];
// 文生图允许的模型(内置分组 + 图生图专用),防止任意模型名打到上游
const ALLOWED_MODELS = new Set([
...BUILTIN_GROUPS.flatMap((g) => g.models.map((m) => m.id)),
...EDIT_MODELS.map((m) => m.id)
]);
const REF_EXTS = new Set(['.jpg', '.jpeg', '.png', '.webp', '.bmp', '.avif', '.gif']);
const MAX_REFS = 4;
const MIME_BY_EXT = {
@@ -236,6 +242,9 @@ router.post('/generate', asyncHandler(async (req, res) => {
if (!effKey) {
return res.status(400).json({ success: false, error: '未配置 NewAPI Key,请到设置 → AI 生图填写' });
}
if (effModel && !ALLOWED_MODELS.has(effModel)) {
return res.status(400).json({ success: false, error: `未知模型: ${effModel}` });
}
effModel = effModel || cur.model || 'flux-schnell'; // 默认模型统一在设置 → AI 生图里配
}
+1 -1
View File
@@ -16,7 +16,7 @@ const { getSettings } = require('./settings');
const HUB_URL = (process.env.HUB_URL || 'https://auth.88531.cn/api').replace(/\/+$/, '');
const HUB_PROJECT_ID = process.env.HUB_PROJECT_ID || '';
const HUB_API_KEY = process.env.HUB_API_KEY || '';
const SITE_VERSION = process.env.SITE_VERSION || '1.4.9';
const SITE_VERSION = process.env.SITE_VERSION || '1.4.11';
const TIMEOUT_MS = 8000;
const state = {
+1 -1
View File
@@ -28,7 +28,7 @@ services:
- HUB_API_KEY=${HUB_API_KEY:-}
- NEWAPI_KEY=${NEWAPI_KEY:-}
# 当前站点版本(与 frontend/package.json、CHANGELOG 保持一致,界面版本徽标来源)
- SITE_VERSION=1.4.9
- SITE_VERSION=1.4.11
# 让容器经 host.docker.internal 访问宿主机的 AI 侧车
extra_hosts:
- "host.docker.internal:host-gateway"
+68 -15
View File
@@ -12,7 +12,7 @@ import { PROMPT_CATEGORIES } from '../constants/promptPresets';
/**
* AI 生图弹窗
* - 热门提示词分类(点击填入/追加)
* - 通道与模型统一在「设置 → AI 生图」配置,弹窗不再重复选择
* - 弹窗内点选生图模型(列表来自设置配置的模型分组),KEY/通道仍在「设置 → AI 生图」
* - 生成 → 预览 → 保存到素材库 / 下载 / 重新生成
*/
@@ -37,6 +37,8 @@ export default function AIGenModal({ open, onClose, onSaved }) {
const [cat, setCat] = useState('hot');
const [sizes, setSizes] = useState([]);
const [providerInfo, setProviderInfo] = useState(null);
const [modelGroups, setModelGroups] = useState([]); // 可选生图模型分组
const [selModel, setSelModel] = useState(''); // 用户点选的模型 id(空=设置默认)
const [size, setSize] = useState('1024x1024');
const [loading, setLoading] = useState(false);
@@ -69,6 +71,15 @@ export default function AIGenModal({ open, onClose, onSaved }) {
.then((d) => {
setSizes(d.sizes || []);
setProviderInfo(d.provider || null);
const groups = d.groups || [];
setModelGroups(groups);
const all = groups.flatMap((g) => (g.models || []).map((m) => m.id));
const p = d.provider || {};
// 自定义提供商:只有设置里填的那个模型可用
if (p.type === 'custom') { setSelModel(p.customModel || ''); return; }
const def = p.builtinModel || 'flux-schnell';
const saved = localStorage.getItem('flypic_aigen_model');
setSelModel(all.includes(saved) ? saved : (all.includes(def) ? def : (all[0] || def)));
})
.catch((e) => setError('读取模型列表失败: ' + (e.data?.error || e.message)));
}, [open]);
@@ -121,6 +132,7 @@ export default function AIGenModal({ open, onClose, onSaved }) {
try {
const d = await aigenAPI.generate({
prompt: prompt.trim(),
model: selModel || undefined,
size,
libraryId: currentLibraryId,
refImages: refs.map((r) => ({ path: r.path, filename: r.filename })),
@@ -253,15 +265,15 @@ export default function AIGenModal({ open, onClose, onSaved }) {
{activeCat.prompts.map((p) => (
<button
key={p.name}
onClick={() => appendPrompt(p.prompt)}
title={p.prompt}
onClick={() => appendPrompt(p.promptCn)}
title={p.promptCn}
className="text-left px-2.5 py-2 rounded-lg border border-gray-200 dark:border-gray-700 hover:border-purple-400 dark:hover:border-purple-500 hover:bg-purple-50 dark:hover:bg-purple-500/10 transition-colors group"
>
<div className="text-xs font-medium text-gray-800 dark:text-gray-200 truncate group-hover:text-purple-700 dark:group-hover:text-purple-300">
{p.name}
</div>
<div className="mt-0.5 text-[10px] leading-4 text-gray-400 dark:text-gray-500 line-clamp-2 group-hover:text-gray-500 dark:group-hover:text-gray-400">
{p.prompt}
{p.promptCn}
</div>
</button>
))}
@@ -271,17 +283,58 @@ export default function AIGenModal({ open, onClose, onSaved }) {
{/* 右:参数 + 生成 */}
<div className="lg:col-span-2 space-y-3.5">
{/* 通道/模型已统一在设置里配置,此处不再重复选择 */}
<div className="flex items-center justify-between px-3 py-2 rounded-lg bg-gray-50 dark:bg-gray-900/40 border border-gray-200 dark:border-gray-700">
<span className="text-[11px] text-gray-500 dark:text-gray-400">
通道与模型在右上角「设置 → AI 生图」配置
</span>
<button
onClick={() => window.dispatchEvent(new CustomEvent('open:settings', { detail: { tab: 'aigen' } }))}
className="text-[11px] text-purple-600 dark:text-purple-400 hover:underline flex-shrink-0 ml-2"
>
去设置
</button>
{/* 生图模型:列出可点选的模型 */}
<div className="px-3 py-2.5 rounded-lg bg-gray-50 dark:bg-gray-900/40 border border-gray-200 dark:border-gray-700">
<div className="flex items-center justify-between mb-2">
<span className="text-xs font-medium text-gray-500 dark:text-gray-400">生图模型</span>
<button
onClick={() => window.dispatchEvent(new CustomEvent('open:settings', { detail: { tab: 'aigen' } }))}
className="text-[11px] text-purple-600 dark:text-purple-400 hover:underline"
>
通道设置
</button>
</div>
{providerInfo && providerInfo.type === 'custom' ? (
<div className="flex flex-wrap gap-1.5">
<span className="px-2.5 py-1 rounded-full text-[11px] bg-purple-600 text-white border border-purple-600">
{providerInfo.customModel || '自定义模型'}
</span>
<span className="px-1 py-1 text-[11px] text-gray-400 dark:text-gray-500 self-center">
自定义提供商的模型在设置里配置
</span>
</div>
) : (
<div className="space-y-1.5">
{modelGroups.map((g) => (
<div key={g.key} className="flex items-start gap-2">
<span className="text-[10px] text-gray-400 dark:text-gray-500 w-[76px] flex-shrink-0 pt-1 leading-4">{g.label}</span>
<div className="flex flex-wrap gap-1.5">
{(g.models || []).map((m) => (
<button
key={m.id}
type="button"
title={m.id}
onClick={() => { setSelModel(m.id); localStorage.setItem('flypic_aigen_model', m.id); }}
className={`px-2.5 py-1 rounded-full text-[11px] border transition-colors ${selModel === m.id
? 'bg-purple-600 text-white border-purple-600'
: 'bg-white dark:bg-gray-800 text-gray-600 dark:text-gray-300 border-gray-200 dark:border-gray-600 hover:border-purple-400 hover:text-purple-600 dark:hover:text-purple-300'}`}
>
{m.name}
</button>
))}
</div>
</div>
))}
{!modelGroups.length && (
<span className="text-[11px] text-gray-400 dark:text-gray-500">读取模型列表中…</span>
)}
</div>
)}
{refs.length > 0 && (
<p className="mt-1.5 text-[11px] text-amber-600 dark:text-amber-400">
已选参考图:后端会自动切到 FLUX.2 图生图模型
</p>
)}
</div>
{noKey && (
<div className="flex items-start gap-1.5 text-[11px] text-amber-600 dark:text-amber-400">
+1 -1
View File
@@ -40,7 +40,7 @@ const [showAIVideo, setShowAIVideo] = useState(false);
// 授权系统 hub:版本 / 公告 / 在线人数
const hub = useHub();
const announcements = hub.announcements || [];
const appVersion = hub.version ? `v${String(hub.version).replace(/^v/, '')}` : 'v1.4.9';
const appVersion = hub.version ? `v${String(hub.version).replace(/^v/, '')}` : 'v1.4.11';
// 从全局 store 获取筛选状态
const selectedFormats = filters.formats || [];
+1 -1
View File
@@ -2,7 +2,7 @@ import { useState, useEffect } from 'react';
import { X, ScanText, Info, Save, FlaskConical, Github, ExternalLink, Wand2, Film } from 'lucide-react';
import { settingsAPI, aigenAPI } from '../api';
const APP_VERSION = 'v1.4.9';
const APP_VERSION = 'v1.4.11';
const REPO_URL = 'https://gitea.88531.cn/jinghui/flypic';
/**
+45 -43
View File
@@ -1,8 +1,10 @@
/**
* AI 生图 · 常用热门提示词库
* 分类 + 预设提示词(中英混合,flux 系模型对英文提示词效果更稳)
* 点击条目 = 追加/替换输入框内容
* 每条均为「主体 + 场景 + 光线 + 构图 + 风格 + 质量」的完整详细描述,点击即得可直接出图的提示词
* 分类 + 预设提示词(中英双语)
* 展示与点击填入均使用中文详细提示词 promptCn(用户要求显示中文);
* 发送时后台自动把含中文的提示词翻译成英文(aigen.js translatePromptToEnglish,失败回落原文)
* 英文 prompt 字段保留:供对照上游效果,也作为翻译失败时的兜底
* 每条均为「主体 + 场景 + 光线 + 构图 + 风格 + 质量」的完整详细描述
*/
export const PROMPT_CATEGORIES = [
@@ -10,88 +12,88 @@ export const PROMPT_CATEGORIES = [
key: 'hot',
label: '🔥 热门',
prompts: [
{ name: '赛博朋克城市夜景', prompt: 'cyberpunk city street at night after rain, towering neon signs in chinese and japanese, colorful reflections on wet asphalt, flying cars leaving light trails in the sky, dense crowd with transparent umbrellas, volumetric fog, cinematic lighting, blade runner mood, ultra detailed, 8k, wide angle' },
{ name: '治愈系猫咪', prompt: 'a fluffy orange cat curled up on a sunlit windowsill, warm golden hour afternoon light, dust particles floating in the air, sheer curtains gently blowing, potted plants nearby, soft focus background, cozy warm tones, photorealistic, 85mm lens, shallow depth of field, highly detailed fur' },
{ name: '水晶球微缩世界', prompt: 'miniature snowy village inside a glass snow globe on a rustic wooden table, macro photography, tiny warm window lights glowing, dreamy bokeh, soft studio softbox lighting, sparkling snow dust, shallow depth of field, whimsical cozy atmosphere, ultra detailed, 8k' },
{ name: '复古胶片人像', prompt: 'vintage film portrait of a young woman, kodak portra 400 film look, soft window light, nostalgic warm tones, subtle film grain, slightly faded colors, 1970s styling, gentle smile, shallow depth of field, 50mm lens, analog photography aesthetic' },
{ name: '极简几何壁纸', prompt: 'minimalist geometric wallpaper with overlapping circles triangles and arches, pastel gradient of lavender peach and mint, clean flat design, subtle noise texture, balanced repeating composition, modern abstract background, no text, 4k' }
{ name: '赛博朋克城市夜景', promptCn: '雨后的赛博朋克城市夜景街道,两侧高楼挂满中文与日文霓虹招牌,湿漉漉的柏油路面倒映五彩灯光,天空中飞行汽车拖出光轨,人群撑着透明雨伞穿行,体积雾弥漫,电影感打光,银翼杀手氛围,超精细,8K,广角镜头', prompt: 'cyberpunk city street at night after rain, towering neon signs in chinese and japanese, colorful reflections on wet asphalt, flying cars leaving light trails in the sky, dense crowd with transparent umbrellas, volumetric fog, cinematic lighting, blade runner mood, ultra detailed, 8k, wide angle' },
{ name: '治愈系猫咪', promptCn: '一只毛茸茸的橘猫蜷缩在洒满阳光的窗台上,午后温暖的黄金时刻光线,空气中漂浮着细微尘埃,薄纱窗帘被微风轻轻吹起,旁边有几盆绿植,背景虚化,暖色调,写实摄影,85毫米镜头,浅景深,毛发细节丰富', prompt: 'a fluffy orange cat curled up on a sunlit windowsill, warm golden hour afternoon light, dust particles floating in the air, sheer curtains gently blowing, potted plants nearby, soft focus background, cozy warm tones, photorealistic, 85mm lens, shallow depth of field, highly detailed fur' },
{ name: '水晶球微缩世界', promptCn: '玻璃雪水晶球里装着一座微缩雪夜村庄,摆在质朴的木桌上,微距摄影,小屋里透出暖黄灯光,梦幻光斑背景,柔和影棚柔光箱打光,飘浮的雪尘闪烁,浅景深,童话温馨氛围,超精细,8K', prompt: 'miniature snowy village inside a glass snow globe on a rustic wooden table, macro photography, tiny warm window lights glowing, dreamy bokeh, soft studio softbox lighting, sparkling snow dust, shallow depth of field, whimsical cozy atmosphere, ultra detailed, 8k' },
{ name: '复古胶片人像', promptCn: '一位年轻女性的复古胶片人像,柯达 Portra 400 胶片质感,柔和的窗边光线,怀旧暖色调,细腻胶片颗粒,色彩微微褪色,1970 年代穿搭风格,浅浅微笑,浅景深,50 毫米镜头,模拟摄影美学', prompt: 'vintage film portrait of a young woman, kodak portra 400 film look, soft window light, nostalgic warm tones, subtle film grain, slightly faded colors, 1970s styling, gentle smile, shallow depth of field, 50mm lens, analog photography aesthetic' },
{ name: '极简几何壁纸', promptCn: '极简几何壁纸,圆形、三角形与拱形相互交叠,薰衣草紫、蜜桃粉与薄荷绿的柔和渐变,干净的扁平化设计,细腻噪点纹理,均衡的重复构图,现代抽象背景,无文字,4K', prompt: 'minimalist geometric wallpaper with overlapping circles triangles and arches, pastel gradient of lavender peach and mint, clean flat design, subtle noise texture, balanced repeating composition, modern abstract background, no text, 4k' }
]
},
{
key: 'portrait',
label: '👤 头像人像',
prompts: [
{ name: '动漫男头', prompt: 'anime boy avatar, short messy black hair, oversized hoodie, city skyline at dusk in the background, detailed illustration, vibrant sunset colors, clean lineart, expressive eyes, upper body shot, japanese anime style, high quality' },
{ name: '动漫女头', prompt: 'anime girl avatar, long silver hair, delicate flower crown, soft pastel colors, clean lineart, studio ghibli inspired style, gentle smile, dreamy floral background, detailed illustration, portrait framing, masterpiece quality' },
{ name: '3D 卡通头像', prompt: '3D cartoon avatar of a young man, pixar style, round friendly face, big sparkling eyes, soft studio lighting, plain gradient background, smooth clay render, cute and approachable, octane render, high quality' },
{ name: '写真级人像', prompt: 'professional headshot portrait, shallow depth of field, soft natural window light, high detail skin texture, 85mm f/1.8 lens, neutral clean background, sharp focus on eyes, commercial photography, subtle color grading' },
{ name: '像素风头像', prompt: 'pixel art avatar, 64x64 grid, retro game style, bold clean outlines, limited 16 color palette, cute confident expression, symmetrical composition, nostalgic 8-bit vibe, crisp pixels, no anti-aliasing' }
{ name: '动漫男头', promptCn: '动漫男生头像,黑色短发微乱,宽松连帽卫衣,背景是黄昏时分的城市天际线,精细插画,鲜艳的夕阳配色,干净的线条,眼神有神,半身构图,日系动漫风格,高质量', prompt: 'anime boy avatar, short messy black hair, oversized hoodie, city skyline at dusk in the background, detailed illustration, vibrant sunset colors, clean lineart, expressive eyes, upper body shot, japanese anime style, high quality' },
{ name: '动漫女头', promptCn: '动漫女生头像,银色长发,精致的花环发饰,柔和的马卡龙色调,干净的线条,吉卜力工作室风格,浅浅微笑,梦幻花卉背景,精细插画,肖像构图,佳作级质量', prompt: 'anime girl avatar, long silver hair, delicate flower crown, soft pastel colors, clean lineart, studio ghibli inspired style, gentle smile, dreamy floral background, detailed illustration, portrait framing, masterpiece quality' },
{ name: '3D 卡通头像', promptCn: '年轻男性的 3D 卡通头像,皮克斯风格,圆润友善的脸庞,明亮有神的大眼睛,柔和的影棚打光,纯色渐变背景,光滑的黏土渲染质感,可爱亲切,Octane 渲染,高质量', prompt: '3D cartoon avatar of a young man, pixar style, round friendly face, big sparkling eyes, soft studio lighting, plain gradient background, smooth clay render, cute and approachable, octane render, high quality' },
{ name: '写真级人像', promptCn: '专业级写真人像特写,浅景深,柔和的自然窗光,皮肤纹理清晰真实,85 毫米 f/1.8 镜头,中性干净的背景,焦点锐利落在眼睛上,商业摄影,轻微调色', prompt: 'professional headshot portrait, shallow depth of field, soft natural window light, high detail skin texture, 85mm f/1.8 lens, neutral clean background, sharp focus on eyes, commercial photography, subtle color grading' },
{ name: '像素风头像', promptCn: '像素风头像,64x64 网格,复古游戏风格,粗犷干净的描边,限定 16 色调色板,可爱自信的表情,对称构图,怀旧 8-bit 氛围,像素清晰锐利,无抗锯齿', prompt: 'pixel art avatar, 64x64 grid, retro game style, bold clean outlines, limited 16 color palette, cute confident expression, symmetrical composition, nostalgic 8-bit vibe, crisp pixels, no anti-aliasing' }
]
},
{
key: 'wallpaper',
label: '🖼 壁纸风景',
prompts: [
{ name: '雪山日出', prompt: 'snow mountain range at sunrise, golden alpenglow on the peaks, crystal clear alpine lake perfectly mirroring the mountains, wisps of mist, ultra wide angle, 8k landscape photography, cold blue shadows turning warm gold, dramatic sky' },
{ name: '海上星河', prompt: 'milky way arching over a calm ocean at night, long exposure photography, thousands of stars, gentle glowing waves, deep blue tones, tranquil and vast scene, high detail astrophotography, horizon glow' },
{ name: '梯田晨雾', prompt: 'terraced rice fields at dawn covered in morning mist, layered mountains fading into the distance, aerial drone view, traditional chinese landscape painting mood, soft light, serene atmosphere, green and grey tones, ultra detailed' },
{ name: '梦幻森林', prompt: 'enchanted forest with glowing mushrooms and floating fireflies, volumetric light rays breaking through the canopy, moss covered ancient trees, fantasy atmosphere, magical blue and green glow, highly detailed digital art' },
{ name: '沙漠驼队', prompt: 'camel caravan crossing golden sand dunes at sunset, long dramatic shadows, warm orange tones, national geographic style, vast desert horizon, rippled sand texture, wide cinematic shot, dusty air' }
{ name: '雪山日出', promptCn: '日出时分的雪山山脉,金色晨光染亮山峰,清澈见底的高山湖完美倒映雪山,几缕薄雾缭绕,超广角构图,8K 风景摄影,冷蓝阴影渐变为暖金色,天空壮丽', prompt: 'snow mountain range at sunrise, golden alpenglow on the peaks, crystal clear alpine lake perfectly mirroring the mountains, wisps of mist, ultra wide angle, 8k landscape photography, cold blue shadows turning warm gold, dramatic sky' },
{ name: '海上星河', promptCn: '夜晚银河横跨平静的海面,长曝光摄影,漫天繁星,轻柔的海浪泛着微光,深蓝色调,宁静辽阔的场景,高细节天文摄影,地平线泛着微光', prompt: 'milky way arching over a calm ocean at night, long exposure photography, thousands of stars, gentle glowing waves, deep blue tones, tranquil and vast scene, high detail astrophotography, horizon glow' },
{ name: '梯田晨雾', promptCn: '清晨被晨雾笼罩的梯田稻田,层层远山在雾中渐隐,无人机航拍视角,中国传统山水画意境,柔和光线,宁静氛围,青绿与灰调,超精细', prompt: 'terraced rice fields at dawn covered in morning mist, layered mountains fading into the distance, aerial drone view, traditional chinese landscape painting mood, soft light, serene atmosphere, green and grey tones, ultra detailed' },
{ name: '梦幻森林', promptCn: '充满魔力的梦幻森林,发光的蘑菇与飞舞的萤火虫,体积光束穿过树冠洒落,布满苔藓的古树,奇幻氛围,幽蓝与翠绿的魔法光晕,高细节数字艺术', prompt: 'enchanted forest with glowing mushrooms and floating fireflies, volumetric light rays breaking through the canopy, moss covered ancient trees, fantasy atmosphere, magical blue and green glow, highly detailed digital art' },
{ name: '沙漠驼队', promptCn: '日落时分穿越金色沙丘的骆驼商队,长长的戏剧性投影,暖橙色调,国家地理风格,辽阔的沙漠地平线,沙丘波纹质感,广角电影感镜头,空气中扬着沙尘', prompt: 'camel caravan crossing golden sand dunes at sunset, long dramatic shadows, warm orange tones, national geographic style, vast desert horizon, rippled sand texture, wide cinematic shot, dusty air' }
]
},
{
key: 'anime',
label: '✨ 动漫插画',
prompts: [
{ name: '樱花下的少女', prompt: 'anime girl standing under a cherry blossom tree, pink petals drifting in the spring breeze, soft pastel colors, backlit flowers, gentle smile, warm afternoon light, detailed anime illustration, masterpiece quality' },
{ name: '机甲战士', prompt: 'giant mecha robot standing in a ruined city, dramatic low angle, sci-fi anime style, intricate mechanical parts, steam and sparks, dynamic lighting, floating dust, epic sense of scale, highly detailed' },
{ name: '魔法使', prompt: 'young wizard casting a glowing spell, floating arcane runes, dark ancient library background, fantasy anime illustration, vibrant magic effects, rim lighting, sparkling light particles, dynamic pose' },
{ name: '校园日常', prompt: 'anime scene of students walking home at sunset, warm orange sky with towering cumulus clouds, long shadows on the road, slice of life mood, clean lineart, makoto shinkai style, detailed background, nostalgic feeling' },
{ name: '和风少女', prompt: 'girl in a colorful kimono holding japanese wagashi sweet, traditional tatami room with sliding shoji doors, soft diffused light, delicate fabric patterns, elegant and calm, detailed anime art' }
{ name: '樱花下的少女', promptCn: '樱花树下的动漫少女,粉色花瓣随春风飘散,柔和的马卡龙色调,逆光的花朵,浅浅微笑,温暖的午后光线,精细的日系插画,佳作级质量', prompt: 'anime girl standing under a cherry blossom tree, pink petals drifting in the spring breeze, soft pastel colors, backlit flowers, gentle smile, warm afternoon light, detailed anime illustration, masterpiece quality' },
{ name: '机甲战士', promptCn: '矗立在废墟城市中的巨型机甲战士,戏剧性的低角度仰拍,科幻动漫风格,精密的机械细节,蒸汽与火花四溅,动态光影,空气中漂浮尘埃,史诗般的体量感,高细节', prompt: 'giant mecha robot standing in a ruined city, dramatic low angle, sci-fi anime style, intricate mechanical parts, steam and sparks, dynamic lighting, floating dust, epic sense of scale, highly detailed' },
{ name: '魔法使', promptCn: '年轻魔法师施展发光的咒语,符文悬浮飞舞,背景是幽暗的古老图书馆,奇幻动漫插画,绚丽的魔法特效,轮廓光,闪烁的光粒,动态的施法姿态', prompt: 'young wizard casting a glowing spell, floating arcane runes, dark ancient library background, fantasy anime illustration, vibrant magic effects, rim lighting, sparkling light particles, dynamic pose' },
{ name: '校园日常', promptCn: '夕阳下放学回家的校园动漫场景,暖橙色天空与高耸的积云,长长的影子铺在路面上,日常系治愈氛围,干净的线条,新海诚风格,精细背景,怀旧感', prompt: 'anime scene of students walking home at sunset, warm orange sky with towering cumulus clouds, long shadows on the road, slice of life mood, clean lineart, makoto shinkai style, detailed background, nostalgic feeling' },
{ name: '和风少女', promptCn: '身穿色彩斑斓和服的少女,手捧日式和果子,传统榻榻米房间与障子拉门,柔和的漫射光,精致的布料花纹,优雅恬静,精细的日系插画', prompt: 'girl in a colorful kimono holding japanese wagashi sweet, traditional tatami room with sliding shoji doors, soft diffused light, delicate fabric patterns, elegant and calm, detailed anime art' }
]
},
{
key: 'commerce',
label: '🛍 电商海报',
prompts: [
{ name: '产品主图', prompt: 'product photography of a luxury perfume bottle on a white marble pedestal, soft gradient background, diffused studio lighting, subtle reflections, elegant high-end commercial shot, sharp detail, 8k, negative space for text' },
{ name: '美食海报', prompt: 'gourmet burger with melted cheese and sesame bun, steam rising, dark moody background, dramatic side light, commercial food photography, fresh appetizing ingredients, sharp detail, shallow depth of field' },
{ name: '双十一促销', prompt: 'e-commerce sale banner background, red and gold color scheme, floating gift boxes ribbons and confetti, modern 3d render, festive energetic atmosphere, glossy materials, studio lighting, empty center space for headline' },
{ name: '化妆品展示', prompt: 'cosmetic serum bottle surrounded by fresh flowers and water droplets, clean white background, bright natural light, fresh and natural mood, commercial product photo, crisp detail, soft shadows' },
{ name: '数码新品', prompt: 'smartphone floating above a glowing platform, tech product render, blue and purple neon accents, dark background with light streaks, futuristic commercial style, sharp reflections, high detail, 8k' }
{ name: '产品主图', promptCn: '奢侈品香水瓶置于白色大理石台座上的产品摄影,柔和渐变背景,影棚漫射打光,细腻倒影,优雅高级的商业大片,锐利细节,8K,留出文字排版空间', prompt: 'product photography of a luxury perfume bottle on a white marble pedestal, soft gradient background, diffused studio lighting, subtle reflections, elegant high-end commercial shot, sharp detail, 8k, negative space for text' },
{ name: '美食海报', promptCn: '芝士融化的豪华汉堡,芝麻面包,热气升腾,深色氛围背景,戏剧性侧光,商业美食摄影,食材新鲜诱人,锐利细节,浅景深', prompt: 'gourmet burger with melted cheese and sesame bun, steam rising, dark moody background, dramatic side light, commercial food photography, fresh appetizing ingredients, sharp detail, shallow depth of field' },
{ name: '双十一促销', promptCn: '电商大促海报背景,红金配色,漂浮的礼盒、丝带与五彩纸屑,现代 3D 渲染,喜庆热闹的氛围,高光材质,影棚打光,中央留出标题文案空间', prompt: 'e-commerce sale banner background, red and gold color scheme, floating gift boxes ribbons and confetti, modern 3d render, festive energetic atmosphere, glossy materials, studio lighting, empty center space for headline' },
{ name: '化妆品展示', promptCn: '精华液瓶被鲜花与水珠环绕,干净的白色背景,明亮的自然光,清新自然的氛围,商业产品摄影,细节清晰锐利,柔和阴影', prompt: 'cosmetic serum bottle surrounded by fresh flowers and water droplets, clean white background, bright natural light, fresh and natural mood, commercial product photo, crisp detail, soft shadows' },
{ name: '数码新品', promptCn: '悬浮在发光平台之上的智能手机,科技产品渲染,蓝紫霓虹点缀,深色背景配流光线条,未来感商业风格,倒影锐利,高细节,8K', prompt: 'smartphone floating above a glowing platform, tech product render, blue and purple neon accents, dark background with light streaks, futuristic commercial style, sharp reflections, high detail, 8k' }
]
},
{
key: 'icon3d',
label: '🧊 图标3D',
prompts: [
{ name: '3D 立方图标', prompt: '3d icon of a treasure chest, glossy material, soft shadows, pastel gradient background, clay render style, cute rounded shapes, studio lighting, centered composition, app icon design, high quality' },
{ name: '玻璃质感', prompt: 'glassmorphism 3d icon of cloud storage, translucent frosted glass, floating above a soft gradient, soft studio light, subtle refractions and highlights, clean minimal background, modern ui icon' },
{ name: '卡通食物', prompt: 'cute 3d icon of a ramen bowl, kawaii style, thick outlines, vibrant colors, glossy plastic material, swirling steam on top, soft ambient occlusion, centered app icon' },
{ name: '徽章印章', prompt: '3d golden badge icon with a star, metallic material, embossed details, dark blue background, premium look, soft rim light, centered composition, high quality render' },
{ emoji: '🎮', name: '游戏手柄', prompt: '3d gamepad icon, retro controller, matte plastic material, playful colors, soft ambient occlusion, centered on pastel background, rounded cute style, icon design' }
{ name: '3D 立方图标', promptCn: '宝箱造型的 3D 图标,光泽材质,柔和阴影,马卡龙渐变背景,黏土渲染风格,圆润可爱的造型,影棚打光,居中构图,App 图标设计,高质量', prompt: '3d icon of a treasure chest, glossy material, soft shadows, pastel gradient background, clay render style, cute rounded shapes, studio lighting, centered composition, app icon design, high quality' },
{ name: '玻璃质感', promptCn: '云存储主题的玻璃拟态 3D 图标,半透明磨砂玻璃质感,悬浮在柔和渐变背景之上,柔和影棚光,细腻的折射与高光,干净极简背景,现代 UI 图标', prompt: 'glassmorphism 3d icon of cloud storage, translucent frosted glass, floating above a soft gradient, soft studio light, subtle refractions and highlights, clean minimal background, modern ui icon' },
{ name: '卡通食物', promptCn: '拉面碗造型的可爱 3D 图标,卡哇伊风格,粗描边,鲜艳配色,光滑的塑料材质,顶部袅袅升起的蒸汽,柔和的环境光遮蔽,居中 App 图标', prompt: 'cute 3d icon of a ramen bowl, kawaii style, thick outlines, vibrant colors, glossy plastic material, swirling steam on top, soft ambient occlusion, centered app icon' },
{ name: '徽章印章', promptCn: '五角星金色徽章 3D 图标,金属材质,浮雕细节,深蓝色背景,高级质感,柔和的轮廓光,居中构图,高质量渲染', prompt: '3d golden badge icon with a star, metallic material, embossed details, dark blue background, premium look, soft rim light, centered composition, high quality render' },
{ name: '游戏手柄', promptCn: '复古手柄造型的 3D 游戏图标,哑光塑料材质,活泼的配色,柔和的环境光遮蔽,居中放在马卡龙背景上,圆润可爱风格,图标设计', prompt: '3d gamepad icon, retro controller, matte plastic material, playful colors, soft ambient occlusion, centered on pastel background, rounded cute style, icon design' }
]
},
{
key: 'art',
label: '🎨 艺术风格',
prompts: [
{ name: '浮世绘海浪', prompt: 'great wave cresting in ukiyo-e style, hokusai inspired, woodblock print texture, indigo blue palette, foamy claw-like spray, mount fuji in the distance, traditional japanese art, visible paper grain' },
{ name: '梵高星空', prompt: 'starry night style painting, swirling turbulent sky, glowing yellow stars, dark cypress silhouette, thick impasto brushstrokes, post-impressionism, oil painting texture, vibrant blues and yellows' },
{ name: '水彩花卉', prompt: 'delicate watercolor flowers, loose brushstrokes, soft bleeding edges, white background, botanical illustration style, pastel pink and green palette, airy composition, hand painted paper texture' },
{ name: '低多边形', prompt: 'low poly landscape with pine forest and snow mountains, faceted geometry, vibrant sunset colors of orange and purple sky, clean triangles, stylized digital art' },
{ name: '水墨仙鹤', prompt: 'chinese ink wash painting of a crane flying over a lotus pond, minimal confident brush strokes, elegant negative space, rice paper texture, subtle grey ink gradients, oriental aesthetic' }
{ name: '浮世绘海浪', promptCn: '浮世绘风格的巨浪,葛饰北斋《神奈川冲浪里》意境,木版画质感,靛蓝色调,浪花如爪般飞溅,远处可见富士山,传统日式艺术,纸张纹理可见', prompt: 'great wave cresting in ukiyo-e style, hokusai inspired, woodblock print texture, indigo blue palette, foamy claw-like spray, mount fuji in the distance, traditional japanese art, visible paper grain' },
{ name: '梵高星空', promptCn: '《星月夜》风格的油画,漩涡般翻涌的夜空,明亮的黄色星辰,深色柏树剪影,厚重的颜料笔触,后印象派,油画肌理,浓郁的蓝黄对比', prompt: 'starry night style painting, swirling turbulent sky, glowing yellow stars, dark cypress silhouette, thick impasto brushstrokes, post-impressionism, oil painting texture, vibrant blues and yellows' },
{ name: '水彩花卉', promptCn: '精致的水彩花卉,笔触松动随意,边缘自然晕染,白色背景,植物图鉴风格,粉绿柔和色调,构图留白通透,手绘纸张纹理', prompt: 'delicate watercolor flowers, loose brushstrokes, soft bleeding edges, white background, botanical illustration style, pastel pink and green palette, airy composition, hand painted paper texture' },
{ name: '低多边形', promptCn: '低多边形风格的风景,松林与雪山,棱面几何结构,日落的橙紫鲜艳配色,干净利落的三角切面,风格化数字艺术', prompt: 'low poly landscape with pine forest and snow mountains, faceted geometry, vibrant sunset colors of orange and purple sky, clean triangles, stylized digital art' },
{ name: '水墨仙鹤', promptCn: '水墨画风格的仙鹤飞过荷塘,笔法简练自信,大量留白意境,宣纸纹理,微妙的墨色浓淡渐变,东方美学神韵', prompt: 'chinese ink wash painting of a crane flying over a lotus pond, minimal confident brush strokes, elegant negative space, rice paper texture, subtle grey ink gradients, oriental aesthetic' }
]
},
{
key: 'scene',
label: '🏠 室内场景',
prompts: [
{ name: '温馨书房', prompt: 'cozy home library with floor to ceiling bookshelves, leather armchair, warm lamp light, rainy window with droplets, photorealistic, warm amber tones, intimate atmosphere, detailed interior, 8k' },
{ name: '北欧客厅', prompt: 'scandinavian living room, white walls, light oak furniture, large green plants, big windows with natural daylight, minimal decor, interior design photography, airy and clean, bright tones' },
{ name: '咖啡角落', prompt: 'small cafe corner with an espresso machine and glass pastry display, morning sunlight streaming through the window, hygge atmosphere, warm wood tones, steam rising from a cup, photorealistic' },
{ name: '阁楼卧室', prompt: 'attic bedroom with a slanted skylight window, fairy lights, linen bedding, potted plants, soft morning light, aesthetic cozy photo, muted tones, detailed textiles' },
{ name: '赛博房间', prompt: 'futuristic bedroom with floating holographic screens, neon strip lights in cyan and magenta, minimalist furniture, cyberpunk interior, volumetric glow, detailed props, cinematic lighting' }
{ name: '温馨书房', promptCn: '温馨的家庭书房,顶天立地的书架墙,皮质扶手椅,暖黄台灯光,窗外下着雨挂着水珠,写实摄影,琥珀暖色调,私密安逸的氛围,细节丰富,8K', prompt: 'cozy home library with floor to ceiling bookshelves, leather armchair, warm lamp light, rainy window with droplets, photorealistic, warm amber tones, intimate atmosphere, detailed interior, 8k' },
{ name: '北欧客厅', promptCn: '北欧风客厅,白色墙面,浅色橡木家具,大型绿植,大落地窗透进充足自然光,极简装饰,室内设计摄影,通透明亮,清新色调', prompt: 'scandinavian living room, white walls, light oak furniture, large green plants, big windows with natural daylight, minimal decor, interior design photography, airy and clean, bright tones' },
{ name: '咖啡角落', promptCn: '咖啡馆小角落,意式咖啡机与玻璃甜点柜,清晨阳光透过窗户洒入,惬意温暖的氛围,暖色木质调,杯中升起袅袅热气,写实摄影', prompt: 'small cafe corner with an espresso machine and glass pastry display, morning sunlight streaming through the window, hygge atmosphere, warm wood tones, steam rising from a cup, photorealistic' },
{ name: '阁楼卧室', promptCn: '阁楼卧室,倾斜的天窗,星星串灯,亚麻床品,几盆绿植,柔和的清晨光线,文艺清新的氛围照,低饱和色调,织物质感细腻', prompt: 'attic bedroom with a slanted skylight window, fairy lights, linen bedding, potted plants, soft morning light, aesthetic cozy photo, muted tones, detailed textiles' },
{ name: '赛博房间', promptCn: '未来感卧室,悬浮的全息屏幕,青色与洋红的霓虹灯带,极简家具,赛博朋克室内风格,体积光晕,道具细节丰富,电影感打光', prompt: 'futuristic bedroom with floating holographic screens, neon strip lights in cyan and magenta, minimalist furniture, cyberpunk interior, volumetric glow, detailed props, cinematic lighting' }
]
}
];