跳到主要内容
Black Forest Labs检查中

FLUX.2 Dev / Text to Image

flux-2-dev-text-to-image

文生图输出: 图像输入: 文本
正在加载价格…
官方原价 · 未验证

模型能力

Generate an image from a text prompt.

Optional custom size · fixed price

输入参数

仅列出此模型接受的字段。必填字段必须提供。

字段类型必填默认值可选值与约束
prompt
string必填—
aspectRatio
string必填"9:16"

The size of the generated media in pixels

可选值: "1:1", "3:4", "4:3", "9:16", "16:9", "2:3", "3:2", "custom"

customWidth
integer可选1024

256–1536

customHeight
integer可选1024

customHight

256–1536

outputFormat
string必填"png"

可选值: "png", "jpeg", "webp(lossless)", "webp(lossy)"

限制与行为

  • 仅支持异步:先提交任务,再轮询结果。
  • customWidth: 256–1536
  • customHeight: 256–1536