flux-schnell

由 Black Forest Labs 提供图像

Flux Schnell 按固定价格提交文生图异步任务,可指定宽高比。

更新于:
输入提示词文本
模型8款可用
返回方式异步结果链接
价格0.6 quota / 张
Brass and copper fruit orchard under an approaching stormfrontClockwork orchard storm示例 01
Vast ceremonial hall carved from rose and amber saltSalt cathedral interior示例 02
Ornate hot-air balloons parked on a mirror-like salt flat at sunriseSalt-flat balloon caravan示例 03
Magical floating island with waterfalls cascading into the cloudsFloating island waterfalls示例 04
生成示例

从提示词到成图

black forest gateau cake spelling out the words "FLUX SCHNELL", tasty, food photography, dynamic shot

womens street skateboarding final in Paris Olympics 2024

A surreal caravan of ornate hot-air balloons parked across a vast mirror-like salt flat at sunrise, each balloon shaped with distinct craftsmanship: one like a giant porcelain vase with cobalt patterns, one woven from rattan and patchwork fabric, one adorned with brass weather vanes and hanging pennants. Tiny crews unload trunks, folding ladders, painted instruments, and crates of citrus. The ground reflects the entire scene with glassy clarity, creating layered symmetry. In the far distance, thin mountains shimmer in haze, while flocks of white birds arc through a pale apricot sky. Highly detailed textures, crisp edges, rich color separation, whimsical realism, cinematic wide composition, atmospheric depth, soft golden light, clean focus, visually coherent scene.

a tiny astronaut hatching from an egg on the moon

Three magical wizards standing on a yellow table, each holding a sign. On the left, a wizard in black robes holds a sign that says ‘AI’; in the middle, a witch in red robes holds a sign that says ‘is’; and on the right, a wizard in blue robes holds a sign that says ‘cool’

Cute boy with a hat, exploring nature, holding a telescope, backpack, surrounded by flowers, cartoon style, vibrant colors.

a cat holding a sign that says hello world

A vast orchard of brass and copper fruit trees stretching across rolling hills, every branch built from gears, springs, and filigreed metal leaves, heavy pear-shaped glass fruits glowing softly from within. In the distance, a massive stormfront approaches, with spiraling charcoal clouds and shafts of pale sunlight breaking through. Farmers in weathered canvas coats guide tiny wind-up harvest carts along muddy paths, while flocks of mechanical birds scatter into the air. Puddles reflect the sky, scattered fallen fruit reveals intricate clockwork interiors, and a distant hilltop mill turns with oversized cog blades. Cinematic wide composition, dynamic atmosphere, exceptional texture detail, layered perspective, realistic lighting, dramatic scale, imaginative yet believable worldbuilding, crisp focus.

A vast ceremonial hall carved entirely from rose, ivory, and pale amber salt, towering ribbed arches shaped by centuries of wind erosion, crystalline floors with delicate reflective sheen, suspended mineral chandeliers formed from jagged salt clusters, long woven banners in faded saffron and slate, a procession of tiny human figures for scale crossing a geometric inlaid pathway, fine dust drifting through warm angled sunlight from high openings, distant carved alcoves holding weathered stone instruments, ultra-detailed textures, grand architectural fantasy, grounded realism, cinematic composition, rich material contrast, sharp focus, atmospheric depth

模型能力

flux-schnell 能做什么

根据提示词生成

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

常用参数

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

异步查询

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

接入产品

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

计费

按操作计费,单位为 quota

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

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

请求头与提交参数

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

POSThttps://api.ttapi.io/flux/generate

请求头

TT-API-KEYstring必填

填写 TTAPI API 密钥。

Content-Typestring必填

使用 application/json。

请求体

promptstring必填

描述目标图像。

modelstring必填

Flux 模型 ID。

aspect_ratioenum选填

所需输出宽高比。

input_imagestring按条件填写

用于支持编辑的模型的参考图 URL。

output_formatenum选填

可选 png、jpeg 或 webp。

seedinteger选填

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

hookUrlstring选填

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

查看 TTAPI 接入文档
接入示例

发送请求并获取结果

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

curl --request POST \
  --url https://api.ttapi.io/flux/generate \
  --header "TT-API-KEY: $TTAPI_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"prompt":"editorial portrait in soft window light","model":"flux-schnell","aspect_ratio":"1:1","output_format":"jpeg","hookUrl":"https://example.com/webhooks/flux"}'