Flux 1.1 Pro Ultura 图像生成
line1
https://cn2us02.opapi.win
line1
https://cn2us02.opapi.win
POST
/api/v1/ai/draw/flux/pro-ultra-11
参数名 | 类型 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|
model | string | "flux-11-pro-ultra" | 固定为"flux-1.1-pro-ultra" | 使用的模型名称,此接口仅支持"flux-11-pro-ultra" |
prompt | string | - | - | 用于生成图像的文本提示,是必填项。提示内容会直接影响生成图像的内容和风格,需要尽可能详细和具体地描述您想要生成的图像 |
image_prompt | string | - | 合法的URL | 图像提示,用于与文本提示一起引导生成。必须是jpeg、png或webp格式的图片URL |
image_prompt_strength | number | 0.1 | 0~1 | 控制提示词与图像提示之间的混合程度 |
aspect_ratio | string | "1:1" | "21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16", "9:21" | 生成图像的宽高比 |
safety_tolerance | integer | 5 | 1~6 | 内容安全容差,1表示最严格,6表示最宽松 |
seed | integer | - | - | 随机种子。设置后可以获得可复现的生成结果 |
output_format | string | "jpg" | "jpg", "png" | 输出图像的格式 |
raw | boolean | false | true/false | 是否生成更少处理、更自然的图像 |
response_format | string | "url" | "url", "b64_json" | 返回的图像数据格式。默认返回图像URL。设置为"b64_json"时直接返回base64编码的图像数据 |
请求参数
Body 参数application/x-www-form-urlencoded
model
string
模型名称-必填
示例值:
flux-1.1-pro-ultra
prompt
string
必需
示例值:
black forest gateau cake spelling out the words \"OhMyGPT\", tasty, food photography, dynamic shot
response_format
string
可选
["url", "b64_json"]
默认url,如果此项指定为b64_json则会额外返回图像的Base64数据,这样就无需额外获取链接中的图像了示例值:
b64_json
示例代码
返回响应
修改于 2024-11-22 02:35:49