Hyperspace sports car示例 01flux-pro
通过官方 Flux 渠道给 Flux Pro 提交提示词,生成图像或执行受支持的编辑。
更新于:
Hyperspace sports car示例 01
Consciousness and subconsciousness示例 02
Women riding a panda示例 03
Mystical 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 密钥,按下方字段向接口发送请求。
请求头
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。
发送请求并获取结果
复制当前模型的请求地址、鉴权请求头和请求体。
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"}'