flux-kontext-max

由 Black Forest Labs 提供图像

通过官方 Flux 渠道提交提示词和参考图,用 Flux Kontext Max 按上下文编辑。

更新于:
输入提示词文本
模型8款可用
返回方式异步结果链接
价格5 quota / 张
Samurai in bloodstained armor standing before a burning pagodaBloodstained samurai示例 01
3D letters floating above a city street after the Kontext editFloating 3D letters示例 02
Restored mid-century desert cinema with STAR DUNE CINEMA signageSTAR DUNE CINEMA示例 03
Futuristic museum entrance with AETHER HALL typography on the feature wallAETHER HALL museum示例 04
生成示例

从提示词到成图

Make the letters 3D, floating in space on a city street

Change the jacket and t-shirt to be viking warrior clothing

In the text "Choose joy", change 'joy' to 'Max', so it says "Choose Max"

Convert to a 90s cartoon

A lone warrior in bloodstained samurai armor stands before a pagoda engulfed in flames, cinematic dark fantasy realism

Put a donut next to the flour.

Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table

Reimagine the reference image as a meticulously restored mid-century desert cinema at blue hour, viewed from the front in a wide cinematic composition. Keep the building layout and perspective from the reference, but transform the scene into a polished contemporary editorial photograph. The marquee displays sharp, perfectly legible premium typography reading: STAR DUNE CINEMA and beneath it TONIGHT: SILENT COMET. Warm incandescent bulbs glow around the sign, casting elegant highlights across smooth stucco and brushed metal trim. Add a few parked vintage-inspired cars, drifting sand ribbons across the asphalt, tall dry grasses at the edges, glowing ticket window, subtle neon accents in amber and turquoise, distant mesas silhouetted against a dramatic violet-to-copper sky. Highly detailed textures, realistic reflections, clean composition, strong local edits, precise signage, commercial-grade finish.

Transform the references into a high-end futuristic museum entrance interior, preserving the architectural layout from the first image while applying the visual identity cues from the second. Feature a sweeping feature wall with large, elegant typography reading AETHER HALL, directional signage, inset illuminated lettering, refined cobalt and ivory graphic bands, brushed aluminum accents, polished concrete, subtle reflections, sparse sculptural seating, and a premium cultural-institution aesthetic. Sharp text rendering, believable scale, clean composition, editorial architectural photography style, quiet sophisticated mood, highly detailed surfaces, no people.

模型能力

flux-kontext-max 能做什么

根据提示词生成

提交简洁提示词,通过一个 TTAPI 任务获取图像结果。

常用参数

设置提示词、模型、输出参数和回调即可接入。

异步查询

通过轮询或 Webhook 接收结果,避免耗时生成阻塞界面。

接入产品

Flux 2 Pro 的输出可以展示、保存或交给后续流程处理。

计费

按操作计费,单位为 quota

按模型、操作和输出设置扣除 quota。

图像生成与编辑官方定价
模型TTAPI 计费计费单位
flux-kontext-max5 quota/ 次请求
API 请求

请求头与提交参数

使用 TTAPI 密钥,按下方字段向接口发送请求。

生成POST
/bfl/v1/flux-kontext-max

提交 flux-kontext-max 图像任务。

查看接口文档
POSThttps://api.ttapi.io/bfl/v1/flux-kontext-max

请求头

TT-API-KEYstring必填

填写 TTAPI API 密钥。

Content-Typestring必填

使用 application/json。

请求体

promptstring必填

描述目标图像。

input_imagestring选填

参考图 URL 或 Base64 内容。

input_image_2string选填

第二张参考图,仅适用于支持该参数的 Flux.2 模型。

input_image_3string选填

第三张参考图,仅适用于支持该参数的 Flux.2 模型。

input_image_4string选填

第四张参考图,仅适用于支持该参数的 Flux.2 模型。

widthstring选填

所需输出宽度。

heightstring选填

所需输出高度。

seedstring选填

用于复现生成结果的随机种子。

output_formatenum选填

可选 jpeg 或 png,取决于模型支持。

safety_tolerancestring选填

模型支持的内容安全容忍度。

webhook_urlstring选填

异步任务完成时通知的回调 URL。

查看 TTAPI 接入文档
接入示例

发送请求并获取结果

复制当前模型的请求地址、鉴权请求头和请求体。

curl --request POST \
  --url https://api.ttapi.io/bfl/v1/flux-kontext-max \
  --header "TT-API-KEY: $TTAPI_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"prompt":"editorial portrait in soft window light","output_format":"jpeg","webhook_url":"https://example.com/webhooks/flux"}'