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

FLUX.2 Klein 4B / Text to Image

flux-2-klein-4b-text-to-image

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

参数

必填
prompt: string必填
aspectRatio: string必填
outputFormat: string必填
高级参数 (2)
customWidth: integer

256–1536

customHeight: integer

customHight 256–1536

请求预览

{
  "model": "flux-2-klein-4b-text-to-image",
  "input": {
    "customWidth": 1024,
    "customHeight": 1024,
    "aspectRatio": "9:16",
    "outputFormat": "png"
  }
}

网页 Playground 使用你的登录会话发送此请求体。在代码中请使用 API Key 发送相同内容。

预计费用

正在加载价格…

任务接收时预留额度,仅成功后扣费。失败任务释放预留额度;结果未确认时会保留额度,直到核实。