Fox train traveler示例 01flux-3-image-klein
别名Flux 3 Image KleinFlux 3 Image Klein 支持生成、参考图编辑和组合,可指定宽高、随机种子、输出格式和 1 至 16 个采样步。
更新于:
Fox train traveler示例 01
Moon-cat stamp示例 02
Snow-leopard ledge示例 03
Clay lunar gardener示例 04Flux 3 官方成图示例
Adapted visual description; original generation prompt not published. Japanese woodblock-inspired coastal illustration with a lighthouse keeper and stormy weather.
Adapted visual description; original generation prompt not published. Underwater photography of a diver above a detailed coral landscape in blue water.
Adapted visual description; original generation prompt not published. A detailed wildlife portrait of a snow leopard relaxing on a rocky shelf.
Adapted visual description; original generation prompt not published. A contemporary denim portrait with warm orange studio color and natural facial detail.
Adapted visual description; original generation prompt not published. A documentary-style portrait with a golden eagle and warm evening light.
Adapted visual description; original generation prompt not published. An ornate navy-and-gold postage design featuring a white cat and a crescent moon.
Adapted visual description; original generation prompt not published. A graphic book cover combining bold red color and assertive editorial typography.
Adapted visual description; original generation prompt not published. Macro wildlife photography with a tiny jumping spider, fern textures, and water droplets.
Adapted visual description; original generation prompt not published. A whimsical travel scene with a sleeping fox curled into an old suitcase aboard a train.
flux-3-image-klein 能做什么
文生图
描述场景并明确选择宽高比和分辨率档位。
参考图编辑
通过 images 修改细节、调整画风或组合最多 10 张参考图。
提示词中的构图框
在提示词中用 0–1000 归一化坐标指明元素位置或编辑区域。
各模型的控制选项
Image 支持 grounding;Klein 支持成对宽高、随机种子、JPEG 或 PNG 输出,以及 1–16 个采样步。
按操作计费,单位为 quota
按模型、操作和输出设置扣除 quota。
请求头与提交参数
使用 TTAPI 密钥,按下方字段向接口发送请求。
/bfl/v1/flux-3-image-klein提交 Flux 3 异步任务,以生成、编辑或组合图像。
查看接口文档/flux/fetch凭 jobId 查询任务状态及生成图像。
查看接口文档请求头
TT-API-KEYstring必填填写 TTAPI API 密钥。
Content-Typestring必填使用 application/json。
请求体
promptstring必填描述新图或要修改的内容,按 image 1、image 2 等顺序引用输入图。可在提示词中用 0–1000 网格标记布局框,顺序为上、左、下、右。
imagesstring | string[]选填文生图时省略。编辑、换风格或融合时可提供 1 至 10 张 HTTP(S) 或 Base64 图像,第一张为被编辑的图并决定默认输出尺寸。
aspect_ratioenum选填可用与 FLUX 3 Image 相同的比例或 auto(默认)。auto 按首张输入图的精确比例或提示词,纯文本默认 16:9,同时设置 width 和 height 时忽略此项。
resolutionenum选填可选 768sq、1k、1.5k、2k 或 4k。纯文本默认 1k。编辑默认保留首张图的尺寸,指定 aspect_ratio 时使用最接近的档位。设置宽高后忽略。
safety_toleranceinteger选填范围 0 到 7,默认 2,数值越低越严格。上限以接口和组织权限为准。
webhook_urlstring选填异步回调 URL。提交返回 jobId,可用回调或 Flux Fetch 取得图像。
widthinteger按条件填写宽度为 64 至 6256 像素,须与 height 同时传入。会覆盖 aspect_ratio 和 resolution,面积不超过 16,822,272 像素。
heightinteger按条件填写高度为 64 至 6256 像素,须与 width 同时传入。宽乘高不超过 16,822,272 像素。
seedinteger选填范围 0 至 4294967295,省略时随机选择。
output_formatenum选填可选 jpeg(默认)或 png。
stepsinteger选填去噪步数为 1 至 16,默认 16。
发送请求并获取结果
复制当前模型的请求地址、鉴权请求头和请求体。
curl --request POST \
--url https://api.ttapi.io/bfl/v1/flux-3-image-klein \
--header "TT-API-KEY: $TTAPI_KEY" \
--header 'Content-Type: application/json' \
--data '{"prompt":"Editorial photograph of a ceramic tea set on a linen table, soft daylight and realistic textures.","aspect_ratio":"3:4","resolution":"1k","output_format":"jpeg","steps":16}'