🖼️ Flux 系列模型
Flux 是一系列强大的图像生成模型,支持文生图、图生图、多图生图等多种功能。包含 Dev、Pro、Max 等不同版本,适应不同的使用场景和质量需求。
模型概述
模型版本 | 功能特点 | 适用场景 | 质量等级 |
---|---|---|---|
Flux Dev | 基础图像生成 | 开发测试、快速原型 | ⭐⭐⭐ |
Flux Pro | 高质量图像生成 | 商业应用、专业设计 | ⭐⭐⭐⭐ |
Flux Max | 最高质量图像生成 | 顶级作品、艺术创作 | ⭐⭐⭐⭐⭐ |
💰 模型价格
模型 | 基础价格 | VIP1价格 | 非VIP价格 | 说明 |
---|---|---|---|---|
Flux Dev 图生图st-ai/flux-kontext/dev |
10积分 | 15积分 | 20积分 | 基础图像生成,性价比高 |
Flux Pro 文生图st-ai/flux-pro/kontext/text-to-image |
15积分 | 22积分 | 30积分 | 高质量文生图 |
Flux Pro 图生图st-ai/flux-pro/kontext |
15积分 | 22积分 | 30积分 | 高质量图像编辑 |
Flux Pro 多图生图st-ai/flux-pro/kontext/text-to-image/multi |
10积分 | 15积分 | 20积分 | 多图参考生成 |
Flux Max 文生图st-ai/flux-pro/kontext/max/text-to-image |
30积分 | 45积分 | 60积分 | 最高质量文生图 |
Flux Max 图生图st-ai/flux-pro/kontext/max |
30积分 | 45积分 | 60积分 | 最高质量图像编辑 |
Flux Max 多图生图st-ai/flux-pro/kontext/max/multi |
35积分 | 52积分 | 70积分 | 最高质量多图生成 |
📋 详细模型案例
1. Flux Dev 图生图模型
APP
st-ai/flux-kontext/dev
{ "app_name": "st-ai/flux-kontext/dev", "input_params": { "prompt": "Change the setting to a day time, add a lot of people walking the sidewalk while maintaining the same style of the painting", "image_url": "https://storage.googleapis.com/falserverless/example_inputs/kontext_example_input.webp", "num_inference_steps": 28, "guidance_scale": 2.5, "num_images": 1, "enable_safety_checker": true, "output_format": "jpeg", "acceleration": "none", "resolution_mode": "match_input" } }
2. Flux Pro 图生图模型
APP
st-ai/flux-pro/kontext
{ "app_name": "st-ai/flux-pro/kontext", "input_params": { "prompt": "Put a donut next to the flour.", "guidance_scale": 3.5, "num_images": 1, "output_format": "jpeg", "safety_tolerance": "2", "image_url": "https://v3.fal.media/files/rabbit/rmgBxhwGYb2d3pl3x9sKf_output.png", "aspect_ratio": "16:9" } }
3. Flux Pro 文生图模型
APP
st-ai/flux-pro/kontext/text-to-image
{ "app_name": "st-ai/flux-pro/kontext/text-to-image", "input_params": { "prompt": "Extreme close-up of a single tiger eye, direct frontal view. Detailed iris and pupil. Sharp focus on eye texture and color. Natural lighting to capture authentic eye shine and depth. The word \"FLUX\" is painted over it in big, white brush strokes with visible texture.", "guidance_scale": 3.5, "num_images": 1, "output_format": "jpeg", "safety_tolerance": "2", "aspect_ratio": "1:1" } }
4. Flux Max 文生图模型
APP
st-ai/flux-pro/kontext/max/text-to-image
{ "app_name": "st-ai/flux-pro/kontext/max/text-to-image", "input_params": { "prompt": "Extreme close-up of a single tiger eye, direct frontal view. Detailed iris and pupil. Sharp focus on eye texture and color. Natural lighting to capture authentic eye shine and depth. The word \"FLUX\" is painted over it in big, white brush strokes with visible texture.", "guidance_scale": 3.5, "num_images": 1, "output_format": "jpeg", "safety_tolerance": "2", "aspect_ratio": "1:1" } }
5. Flux Max 图生图模型
APP
st-ai/flux-pro/kontext/max
{ "app_name": "st-ai/flux-pro/kontext/max", "input_params": { "prompt": "Put a donut next to the flour.", "guidance_scale": 3.5, "num_images": 1, "output_format": "jpeg", "safety_tolerance": "2", "image_url": "https://v3.fal.media/files/rabbit/rmgBxhwGYb2d3pl3x9sKf_output.png", "aspect_ratio": "16:9" } }
6. Flux Max 多图生图模型
APP
st-ai/flux-pro/kontext/max/multi
{ "app_name": "st-ai/flux-pro/kontext/max/multi", "input_params": { "prompt": "Put the little duckling on top of the woman's t-shirt.", "guidance_scale": 3.5, "num_images": 1, "output_format": "jpeg", "safety_tolerance": "2", "image_urls": [ "https://v3.fal.media/files/penguin/XoW0qavfF-ahg-jX4BMyL_image.webp", "https://v3.fal.media/files/tiger/bml6YA7DWJXOigadvxk75_image.webp" ], "aspect_ratio": "16:9" } }
📝 Flux 模型参数说明
参数名 | 类型 | 描述 | 可选值/范围 |
---|---|---|---|
prompt | string | 图像描述提示词 | 任意文本 |
image_url | string | 输入图像URL(图生图) | 有效的图像URL |
image_urls | array | 多图输入URL数组 | 图像URL数组 |
guidance_scale | number | 引导强度 | 1.0 - 20.0 |
num_images | integer | 生成图片数量 | 1 - 4 |
aspect_ratio | string | 图像比例 | 1:1, 16:9, 9:16, 4:3, 3:4 |
output_format | string | 输出格式 | jpeg, png, webp |
safety_tolerance | string | 安全等级 | 1, 2, 3, 4, 5 |
💡 使用技巧
- 提示词优化:使用具体、详细的描述可以获得更好的结果
- 引导强度:较高的 guidance_scale 会更严格遵循提示词,但可能降低创意性
- 安全等级:数值越高,对内容的安全检查越严格
- 图像比例:选择合适的比例可以避免图像变形
- 多图生图:可以同时使用多张参考图片来获得更好的风格融合
🎯 最佳实践
- 从简单开始:先使用 Flux Dev 测试效果,满意后再使用高级版本
- 合理设置参数:根据实际需求调整 guidance_scale 和 num_images
- 优化提示词:使用英文提示词通常效果更好
- 选择合适版本:Dev 适合测试,Pro 适合商用,Max 适合高质量作品