众扬汇 AI 开放平台 API 文档

创建任务-flux-dev

OpenAPI Specification

通过 Replicate 兼容路径提交 flux-dev(BFL 兼容路径) 任务,返回任务 ID 与状态;结果查询请使用对应的查询接口。

请求方式:POST

接口地址

text
https://api.allyang.cn/bfl/v1/flux-dev

请求头

  • Content-Type(必填):请求体类型,按本页标注填写。(示例:application/json)
  • Authorization(可选):鉴权头,使用控制台创建的令牌,格式为 Bearer + 令牌。(示例:Bearer {{YOUR_API_KEY}})

请求参数(application/json)

  • prompt(string,必填)
  • width(integer,必填)
  • height(integer,必填)
  • steps(integer,必填)
  • prompt_upsampling(boolean,必填)
  • seed(integer,必填)
  • guidance(integer,必填)
  • safety_tolerance(integer,必填)
  • output_format(string,必填)

返回字段

  • id(string,必填)
  • polling_url(string,必填)

使用提示:需要先明确模型版本或模型路径;任务完成后的产物地址存在有效期,建议及时转存。