mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
✨ feat(models): Add Qwen Image Edit model (#8851)
This commit is contained in:
parent
64a5d51f87
commit
4d7a060268
1 changed files with 26 additions and 1 deletions
|
|
@ -20,6 +20,8 @@ export const fluxKreaParamsSchema: ModelParamsSchema = {
|
|||
|
||||
export const qwenImageParamsSchema: ModelParamsSchema = {
|
||||
cfg: { default: 2.5, max: 20, min: 0, step: 0.1 },
|
||||
// 实测 fal 宽高 最大就支持到 1536
|
||||
// 默认值取自 https://chat.qwen.ai/ 官网的默认值
|
||||
height: { default: 1328, max: 1536, min: 512, step: 1 },
|
||||
prompt: { default: '' },
|
||||
seed: { default: null },
|
||||
|
|
@ -27,6 +29,16 @@ export const qwenImageParamsSchema: ModelParamsSchema = {
|
|||
width: { default: 1328, max: 1536, min: 512, step: 1 },
|
||||
};
|
||||
|
||||
export const qwenEditParamsSchema: ModelParamsSchema = {
|
||||
cfg: { default: 4, max: 20, min: 0, step: 0.1 },
|
||||
height: { default: 1328, max: 1536, min: 512, step: 1 },
|
||||
imageUrl: { default: null },
|
||||
prompt: { default: '' },
|
||||
seed: { default: null },
|
||||
steps: { default: 30, max: 50, min: 2, step: 1 },
|
||||
width: { default: 1328, max: 1536, min: 512, step: 1 },
|
||||
};
|
||||
|
||||
const falImageModels: AIImageModelCard[] = [
|
||||
{
|
||||
description: '专注于图像编辑任务的FLUX.1模型,支持文本和图像输入。',
|
||||
|
|
@ -112,7 +124,20 @@ const falImageModels: AIImageModelCard[] = [
|
|||
},
|
||||
{
|
||||
description:
|
||||
'Qwen团队带来的强大生图模型,具有令人印象深刻的中文文字生成能力和多样图片视觉风格。',
|
||||
'Qwen 团队发布的专业图像编辑模型,支持语义编辑和外观编辑,能够精确编辑中英文文字,实现风格转换、对象旋转等高质量图像编辑。',
|
||||
displayName: 'Qwen Edit',
|
||||
enabled: true,
|
||||
id: 'qwen-image-edit',
|
||||
parameters: qwenEditParamsSchema,
|
||||
pricing: {
|
||||
units: [{ name: 'imageGeneration', rate: 0.025, strategy: 'fixed', unit: 'image' }],
|
||||
},
|
||||
releasedAt: '2025-08-19',
|
||||
type: 'image',
|
||||
},
|
||||
{
|
||||
description:
|
||||
'Qwen 团队带来的强大生图模型,具有令人印象深刻的中文文字生成能力和多样图片视觉风格。',
|
||||
displayName: 'Qwen Image',
|
||||
enabled: true,
|
||||
id: 'qwen-image',
|
||||
|
|
|
|||
Loading…
Reference in a new issue