Flux 创建(OpenAI dall-e-3 格式)
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
model
string
用于图像生成的模型。
prompt
string
Required
所需图像的文本描述。最大长度为 1000 个字符。
n
integer
要生成的图像数。必须介于 1 和 10 之间。
size
string
生成图像的大小。必须是 256x256、512x512 或 1024x1024 之一。
quality
string
生成图像的质量。hd 创建具有更精细细节和更高一致性的图像。此参数仅支持 dall-e-3。
response_format
string
返回生成的图像的格式。必须是 url 或 b64_json 之一。
style
string
风格。
user
string
一个唯一的标识符,代表您的最终用户。
aspect_ratio
string
Required
图片比例。枚举值:21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21
Responses
成功
application/json
object
created
integer
data
object[]