Flux Kontext Max Edit API

blackforestlabs/flux-kontext-max
image_urls · size · output_format

Flux Kontext Max Edit 根据复杂复合指令重塑源图像,具备顶尖的人像保真、艺术风格迁移与图内文字重构能力。它在实现大幅度创意修改的同时,牢固锚定全局构图与环境光影。

获取 API 密钥
Input
必填0/2000
必填
可选
可选
Output待生成

生成的图片将在此处显示

预估费用: 16 credits · $0.080

每次生成 16 credits($0.080)。

继续使用

示例

max-edit-01-output.png

Move this exact same musician, still seated on the same wooden chair and playing the same cello, from the practice room to the middle of a vast frozen lake at blue hour. Keep his face, curly black hair, round tortoiseshell glasses, closed eyes, moss-green cable-knit sweater with rolled sleeves, charcoal trousers, brown boots, bow position and the honey-brown cello with its worn varnish identical. The new setting: smooth dark ice with white cracks and a light dusting of snow around the chair, snow-covered pine forest and mountains on the far shore, a deep blue twilight sky with a thin pink glow on the horizon and the first stars. A small warm light from a lantern on the ice beside the chair lights his face and the cello, while the rest of the scene is cool blue. His breath is faintly visible in the cold air. Remove the practice room completely.

max-edit-02-output.jpg

Transform this photograph into a traditional leaded stained-glass window. Keep the exact composition: the four turf-roofed houses with white fronts and red doors, the stone wall, the gravel path, the waterfall on the basalt cliff, the sheep and the cloudy sky, all in the same positions. Render every shape as pieces of colored cathedral glass separated by thick dark lead came lines, with deep emerald and moss greens for the grass roofs and meadow, cobalt and pale blue glass for the sky and waterfall, ruby red for the doors, and milky white glass for the house fronts and sheep. Show light shining through the glass with subtle bubbles, streaks and uneven thickness, and a thin dark iron frame around the whole window.

max-edit-03-output.jpg

Restore and colorize this old photograph. Remove all dust specks, scratches and the diagonal crease, and repair the torn corner so the scene continues naturally. Recover sharp detail and natural contrast. Colorize realistically: vivid young green rice seedlings, muddy brown-green water reflecting a pale blue sky, warm natural skin tones, faded indigo and red traditional woven clothing, grey stone terrace walls with green moss, lush green mountainside and soft white mist on the peaks. Keep the three farmers' faces, poses, hands, positions and the composition exactly the same as the original.

Flux Kontext Max Edit

Flux Kontext Max Edit 是 Black Forest Labs 研发的旗舰级上下文图像编辑模型。基于扩展流匹配架构,无需手绘遮罩即可应对多重复合指令,同步完成服装、微表情与光照重构,并在深度艺术风格迁移中严格锁死主体面容与骨骼比例。模型支持像素级图内文字重塑,为高端商业摄影精修与视觉资产定制提供强大保障。

为什么选择 Flux Kontext Max Edit API?

  • 攻克高难度多属性复合编辑指令精准解析并同步执行包含服装更换、色彩置换、元素增删与背景迁移的复合文本指令,杜绝属性混淆与细节丢失。

  • 顶峰级人像面容与骨骼特征锁定基于深度上下文特征提取器,在实施全身换装、极端姿态调整或复杂景别变化时,主体面部骨相与神态高度保真。

  • 深度艺术风格迁移与介质重构支持将现代写实摄影无缝转化为经典油画、水彩、铅笔素描或波普艺术,在颠覆性材质重构中完整保留原始画面构图。

  • 工业级包装与招牌字迹像素重塑以极高精度替换商品标签、酒标、海报与户外巨幅看板上的英文文案,完全贴合曲面透视与局部自然阴影。

参数说明

参数要求说明
prompt必填

描述要编辑的内容,长度为 1–2,000 个字符,包含至少一个非空白字符。

image_urls必填

提供 1 个公开可访问的 HTTP(S) 图片 URL 作为源图片,可填写 URL 或上传图片。

size可选

输出图片的宽高比,默认 1:1。

默认值1:14:33:416:99:1621:99:21
output_format可选

输出图片的文件格式,可选 png 或 jpg。

pngjpg

使用方法

  1. 上传参考图片并构思精细指令上传 1 张高清源图片 URL,撰写详尽的编辑指令,精准列明各项属性变更与需要严格锁定的面部五官或场景特征。

  2. 配置交付画幅比例与格式根据广告位或展布场景设定合适画幅(默认 1:1,支持 16:9、9:16、21:9 等 7 种比例),并选择 png 或 jpg 图片格式。

  3. 提交任务并取回商业级成品调用统一提交端点取得 task_id,通过轮询或 webhook 接口接收处理完毕的超高清图片,也可将结果图片继续用于深度多轮精修。

计费说明

每次生成 16 credits($0.080),输出 1 张旗舰级编辑图片。

用量价格说明
旗舰编辑16 credits/次 · $0.080/次适用于所有 size 比例与 output_format 格式选项

适用场景

  • 影视道具与跨时代概念二创将现有现代人物剧照深度重塑为中世纪维京铠甲战士或赛博朋克警探,同时面部生物识别特征严格一致。

  • 高端消费品跨国包装改版与本地化替换香水瓶身、数码产品外盒与红酒标签上的印刷标语,微观贴合玻璃凹凸质感与烫金反光。

  • 艺术画廊级媒介风格转化将高精度肖像照片转化为具有厚涂笔触感、画布纹理与古典色调的文艺复兴油画,赋予数字资产深厚艺术价值。

实用技巧

  • 分层次锚定面容特征:在处理大幅度造型改变时,明确强调保留项,如 Change the business suit into intricate golden ceremonial armor while preserving the exact facial features, eye color, and confident expression.
  • 风格迁移标注介质与笔触:转化艺术形式时,详细指明材料细节,如 Transform to classic oil painting with thick impasto textures and visible brush strokes, maintaining the original composition and gaze.
  • 微观文字引号排版定位:处理复杂包装标签时,指明行间关系,如 Replace 'ORGANIC TEA' with 'ROYAL BREW' on the ceramic jar label, matching the original curved serif font.

注意事项

  • 单图输入约束:本端点严格接收恰好 1 张公开的 HTTP(S) 图片 URL;若无需源图仅需文本创作,请调用 Flux Kontext Max Text to Image 端点。
  • 指令文本规范:去除首尾空白字符后,指令字符长度需在 1 至 2,000 字符之间。
  • 稳健计费保障:单次调用扣除 16 credits($0.080),若在生成过程中出现网络或系统异常未产出有效图片,积分将全额自动返还。

相关模型

Flux Kontext Max Edit API 常见问题

Flux Kontext Max Edit API 是什么?

Flux Kontext Max Edit 是 Black Forest Labs 用于极高难度指令式图像编辑的旗舰级流匹配大模型。它根据 1 张输入图片与复杂的自然语言指令生成高保真重塑图像,具备顶尖的多属性复合修改理解、极高保真度的主体面容锁定与深层艺术风格迁移能力。基于深层上下文流匹配架构,它在解析多重创意变革的同时,严密维持源图空间骨骼、物理采光与构图平衡。你可以通过 API 进行程序化调用,也可以在上方体验区直接在线试用。

Flux Kontext Max Edit 在处理复合修改指令时表现如何?

表现极为稳健。相比常规编辑模型,Max 版本针对包含多重变更目标的复合提示词(例如同时修改人物服饰、发色、手持物品并替换室外背景)具备深层语义隔离能力,能精准落实每项调整而不会互相干扰。

Flux Kontext Max Edit 在大幅度风格迁移时能否锁定义容?

能够高度保真。无论将现代高清摄影转化为水彩、版画还是厚涂油画,模型的深层上下文注意力机制都能精准锚定人脸五官间距、鼻梁轮廓与眼神神态,使艺术化重绘后的人物依旧极易辨识。

Flux Kontext Max Edit 如何精准修改复杂商标与包装文字?

对于具有弧度贴合、浮雕烫金或反光效果的商品包装文字,在提示词中用半角单双引号精确定义原文字与新文字(例如 Replace 'LUXURY' with 'PREMIUM' on the perfume bottle),模型将自动识别曲面透视并以匹配的字体与光影重新渲染。

Flux Kontext Max Edit 单次任务的生成费用是多少?

每次成功编辑固定扣除 16 credits(折合 $0.080)。该费率涵盖所有 7 种画幅比例与输出格式,任务提交时预扣积分,若因不可抗力导致生成失败系统将全额自动返还。

Flux Kontext Max Edit 支持多张参考图同时输入吗?

本端点当前契约严格规范为单图指令编辑,每次请求接收恰好 1 张源图片 URL;若您的生产管线中存在多张参考图特征交叉融合的强需求,推荐关注同系列的 FLUX.2 Flex 模型。

高保真 IP 角色多场景重构时为什么推荐 Max Edit?

IP 角色重构对核心特征的防漂移能力要求极高。Max Edit 拥有业界最顶尖的生物特征锁定能力,在反复更换极端动作、复杂服装与光照环境时,依然能完美维系角色的标志性面部特征与质感,极大降低后期人工修饰成本。