flux-pro

由 Black Forest Labs 提供图像

通过官方 Flux 渠道给 Flux Pro 提交提示词,生成图像或执行受支持的编辑。

更新于:
输入提示词文本
模型8款可用
返回方式异步结果链接
价格2 quota / 张
Futuristic sports car racing through a neon hyperspace tunnelHyperspace sports car示例 01
Artistic interpretation of human consciousness and subconsciousnessConsciousness and subconsciousness示例 02
Renaissance sci-fi painting of women riding a panda in a flower fieldWomen riding a panda示例 03
Mystical landscape with blueberries and the text FLUX 1.1 ProMystical blueberry landscape示例 04
生成示例

从提示词到成图

Write this poem with cursive text on a background that fits the words: Roses are red Violets are blue, Sugar is sweet And so are you.

A dark-haired woman in her early thirties playing the piano accordion in the middle of an octagonal wooden dance floor with a wooden roof in the swedish forest, surrounded by dancers dancing in pairs

Surreal futuristic abstract portrait style of a woman with vibrant, liquid chrome textures and neon colors blending across her face.

A tense diplomatic negotiation in a grand hall, featuring representatives from 20 different countries, each wearing traditional attire. The scene should include interpreters, aides whispering to their leaders, and visible emotional reactions ranging from frustration to hope.

Elevated view of a quaint 18th-century German village in the Black Forest, captured with a fisheye lens. The scene shows a group of cheerful villagers in period attire gathered in the town square, enjoying slices of Black Forest cake and mugs of beer. The distorted wide-angle view encompasses thatched-roof houses, surrounding forest, and perhaps a church spire, giving a sense of the village nestled in the broader landscape.

Futuristic sports car racing through a neon-lit hyperspace tunnel with glowing light trails and vibrant colors. High-speed motion blur, retro synthwave aesthetic, cosmic background.

The world's largest black forest cake, the size of a building, surrounded by trees of the black forest

Dark surreal creature with a vintage TV for a head, displaying a foggy cityscape on the screen. Twisted, organic black roots form its body, creating a melancholic, monochromatic atmosphere.

Magazine photography of high-fashion model wearing an avant-garde dessert-inspired outfit resembling chocolate and cream with cherry accents. Modeling on a runway.

模型能力

flux-pro 能做什么

根据提示词生成

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

常用参数

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

异步查询

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

接入产品

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

计费

按操作计费,单位为 quota

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

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

请求头与提交参数

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

POSThttps://api.ttapi.io/bfl/v1/flux-pro

请求头

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-pro \
  --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"}'