FLUX.1 Kontext Pro 是支持图片编辑和文生图的上下文感知模型,提供可预测的按张计费和异步任务处理。

Image link valid for 72 hours
透明定价,无隐藏费用。按量付费,用多少付多少。
| 型号 | 黄金价当前价格 | 铂金价 | 钻石价 | 官方价 | 为你节省 |
|---|---|---|---|---|---|
flux-kontext-pro | 0.32Credits(~$0.032)/张 | 0.304Credits(~$0.0304)/张 | 0.288Credits(~$0.0288)/张 | 0.4Credits(~$0.04)/张 | 20% |
* 实际费用以最终输出为准。
以图片编辑为核心,提供明确的输出控制和统一异步流程
需要视觉上下文时传参考图,也可不传参考图直接文生图
创建账号、完成鉴权,然后提交并轮询统一图片任务
登录 APIMart 并为余额充值;同一余额可用于平台支持的多个模型。
在控制台创建密钥,并在 Authorization 请求头中以 Bearer Token 方式发送。
向 /v1/images/generations 发送 POST 请求,读取 data[0].task_id,再轮询 /v1/tasks/{task_id},直至 completed 或 failed。
模型选择、输入、控制参数、计费和任务行为说明
FLUX.1 Kontext Pro 是 Black Forest Labs 的上下文感知图片模型,主要用于根据文本指令编辑图片,也支持纯文生图。
flux-kontext-pro 和 flux-kontext-max 均支持文生图与参考图编辑,Max 定位于更高输出质量。两者均输出约 1MP 图片,最多支持四张参考图。完成时间取决于任务和负载,本页定价详情展示 Pro 的实时价格。
Kontext Pro 根据本型号的原价与实际折扣计算费用,请查看本页实时定价详情。每次请求生成一张图片,宽高比和参考图数量不产生额外费用。实扣金额请以任务结果记录为准。
image_urls 最多可传四个 URL,输出图与全部参考图的总像素不得超过 9MP。多参考图属于实验性能力,并且每个 URL 都必须能从公网直接访问。
Kontext 输出恒约 1MP,resolution 不生效,传入 width 或 height 会被拒绝。size 可填写九种支持比例之一,也可填写 WIDTHxHEIGHT 像素串;像素串会换算为最接近的支持比例。16:9 与 9:16 的实际输出比例可能偏差约 4%。
通过 output_format 选择 png、jpeg 或 webp。seed 为可选参数,默认随机;在输入相同的情况下复用固定 seed,有助于复现结果。
可通过 prompt_upsampling 控制提示词增强。设为 true 开启增强,显式设为 false 可关闭提示词改写。若必须严格保持原始措辞,请检查输出。
提交生成请求后,使用返回的 task_id 轮询,直到 completed 或 failed。失败任务会自动退款。参考图 URL 必须公网可达;会拦截数据中心流量的图床可能导致抓取失败,建议使用稳定的公网地址。
Black Forest Labs FLUX.1 Kontext Pro API 按生成图片的张数计费。本页价格表列出了全部规格,展示的是黄金会员价(8 折,立省 20%),铂金、钻石会员更优惠,最高可省 28%,且只为成功的请求付费。
注册 APIMart 账号后,在控制台的 API Keys 页面创建密钥即可。同一个 Key 可以调用 Black Forest Labs FLUX.1 Kontext Pro API 以及平台上的全部模型,按量付费,无需订阅。
将 APIMart API Key 作为 Bearer Token 放入请求头,向 /v1/images/generations 发送 POST 请求,model 设为 flux-kontext-pro,并传入提示词和可选的 image_urls。从响应中读取 data[0].task_id,轮询 /v1/tasks/{task_id} 直到任务变为 completed 或 failed。Flux Kontext API 的完整参数和代码示例见 APIMart 文档(docs.apimart.ai)。
不是。FLUX.1 Kontext Pro API 在 APIMart 上没有免费额度,按量付费、按生成图片张数计费,失败任务自动退款。黄金会员享 8 折(立省 20%),铂金、钻石会员最高立省 28%。Kontext Pro 的实时价格请查看本页价格表。
APIMart 通过同一个 Flux API 提供 Black Forest Labs 的两个模型系列:FLUX.1 Kontext(flux-kontext-pro、flux-kontext-max)专注上下文感知的图像编辑;FLUX.2(flux-2-pro、flux-2-max、flux-2-flex)支持最多 8 张参考图的生成与编辑。两者都使用 POST /v1/images/generations 和同一个 API Key。
你可以通过页面右下角的在线客服、发送邮件至 [email protected],或在 Discord 社区中联系我们。我们的团队会尽快回复你的问题。
探索同类型的其他模型。

Hy Image V3.5 Preview
HY Image 3.5 Preview is an image generation and editing model developed by Tencent Hunyuan. It supports text-to-image creation, reference-based generation, and multi-turn editing, allowing users to refine images through conversational instructions. With support for up to 4K output and flexible image dimensions, it offers a versatile tool for creating and refining visual content.

Flux 3 Image Klein
FLUX 3 Image Klein is a compact, open-weight image generation and editing model developed by Black Forest Labs. It combines text-to-image creation, image editing, and composition using up to 10 reference images in a single model. With support for up to 4K resolution and bounding-box layout control, it gives creators flexible tools to bring their ideas to life.

Mai Image 2.6
MAI-Image-2.6 is Microsoft's image model for text-to-image, single-image editing and composition with up to 5 reference images. It is available in high-quality and Flash versions, with 1K and 2K output and sharp text rendering.

Mai Image 2.6 Flash
MAI-Image-2.6 Flash is the Flash version of Microsoft MAI-Image-2.6 for text-to-image and image editing with up to 5 references, 1K/2K PNG output and optional Bing grounding, billed by actual token usage.