flux-dev

由 Black Forest Labs 提供图像

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

更新于:
输入提示词文本
模型8款可用
返回方式异步结果链接
价格1.5 quota / 张
Bearded man in a navy blazer and grey t-shirt smiling with arms crossed in a bright studioReal estate developer portrait示例 01
Woman in a black halter jumpsuit holding a gold-chain bag in a golden-hour parking lotGolden-hour parking lot示例 02
Ancient stone beacon tower rising through a thundercloud with a glowing lantern chamberCloud-borne beacon示例 03
Ivy-covered stone archway framing a sunlit forest path lined with wildflowersIvy forest archway示例 04
生成示例

从提示词到成图

silver ring demonic band, a teardrop obsidian gem in the middle, single white opal teardrop-shaped gems next to the onyx on each side, silver ring, slender band, a teardrop obsidian gem in the middle, single white opal marquise-shaped gems next to the obsidian on each side, t- pose, front, side, back view

A realistic male AI character, web developer and digital entrepreneur, specializing in websites and lead generation for real estate agents. He looks confident, empathetic, intelligent, and trustworthy. Medium height, fit but not muscular, healthy appearance, well-groomed beard or light stubble, expressive eyes, warm smile. Wearing modern casual-elegant clothing: fitted blazer or clean jacket, neutral t-shirt or shirt, stylish sneakers or loafers. Standing in a modern office or minimal studio with soft lighting, laptop and phone nearby, subtle tech and real estate elements in the background. Professional but approachable vibe — someone you would trust with your business and online presence. Cinematic lighting, shallow depth of field, ultra-realistic, high detail, 4K quality, natural skin texture, sharp focus, modern influencer aesthetic. Perfect for Instagram, TikTok, LinkedIn, and YouTube branding.

Create a softly lit, mellow early autumn scene set in a lush rural area. A rustic, charming dirt path, edged by ferns and grasses, winds gently through the landscape, bordered by tall, lushly overgrown hedges bursting with vines, blue morning glories, vibrant wildflowers, mushrooms and berries. Majestic trees with a spectrum of color-changing foliage—fiery reds, bright oranges, brilliant greens, deep maroons, and sunny yellows—contrast against the blue sky, where fluffy white clouds float lazily. Varied leaves of different sizes, colors and species flutter down in a gentle breeze, and migratory birds fly in the distance. A sparkling creek meanders nearby, reflecting the kaleidoscope of colors surrounding it, as rolling hills undulate in the background, bathed in warm golden sunlight. Consider a dreamy watercolor illustration style that captures the ethereal beauty and tranquility of this idyllic setting. Oils.

Abstract art in red and black tones depicting the proud expression of a short straight bob cut on the bias hair woman who vaguely looks like actress Evan Rachel Wood playing a xylophone, a mallet in each hand, vibrant tones, expressive brushstrokes.

Femeie, 45 ani, aspect românesc aspect natural, blând, îmbrăcată casual (de casă). Locație: O cameră de zi luminoasă sau o bucătărie curată.

Envision a glitch portrait of a steampunk woman, his goggles dissolving into digital noise and her form flickering between dimensions. The background is a chaotic mix of distorted pixels and fragmented clockwork mechanisms, creating a mesmerizing and unsettling effect, rendered in a hyper-detailed, psychedelic style reminiscent of Alex Grey and Ernst Haeckel, with vibrant colors and intricate textures, creating a mesmerizing and otherworldly atmosphere.

A amber heard look alike woman with shoulder length, blond hair, white skin, and a fit build. She's short black lululeamon pants and a white tube shirt with a toronto maple leafs logo in the middle. She is fit and attractive withe a nice smilem red lipstick. She wears a small toronto maple leafs necklace. Her vibe is laid-back and confident, with a natural, effortless charm.

A young woman standing outdoors in a parking lot during golden hour. She has smooth medium-brown skin, long wavy black hair with one shaved side, and soft glam makeup with winged eyeliner and natural lashes. She's wearing a stylish black halter-neck jumpsuit with a deep draped neckline. She holds a small black designer handbag with gold accents in her left hand and lightly lifts her right hand with a confident, playful pose. Her expression is warm and self-assured with a slight smile. She wears layered delicate gold necklaces, a bracelet, and bangles. The sunlight casts a warm glow on her face and outfit, creating soft highlights and shadows. Luxury cars surround her, and the background includes trees and a building structure.

masterpiece, 8k, HDR, best quality, photography, analog style, real life, extremely beautiful, (highly detailed, intricately detailed), (highly detailed skin), (alluring eyes), (full body), abstract style. The main objects are cut at intervals along a diagonal, and each interval features a different material: the first material is mosaics and the second is vines; the remaining materials are what the main object would have originally had.

模型能力

flux-dev 能做什么

根据提示词生成

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

常用参数

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

异步查询

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

接入产品

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

计费

按操作计费,单位为 quota

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

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

请求头与提交参数

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

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

请求头

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