创建 DALL·E 3
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
model
string
用于图像生成的模型。
prompt
string
Required
所需图像的文本描述。最大长度为 1000 个字符。
n
integer
要生成的图像数。必须介于 1 和 10 之间。
size
string
生成图像的大小。适用于 dall-e-3 的选项:1024x1024、1792x1024 或 1024x1792。
quality
string
生成图像的质量。hd 创建具有更精细细节和更高一致性的图像。此参数仅支持 dall-e-3。
response_format
string
返回生成的图像的格式。必须是 url 或 b64_json 之一。
style
string
生成图像的风格。此参数仅支持 dall-e-3。必须是 vivid 或 natural 之一。vivid 倾向于生成超现实和戏剧性的图像,natural 则生成更自然的图像。
user
string
一个唯一的标识符,代表您的最终用户,这可以帮助 OpenAI 监控和检测滥用行为。
Responses
成功
application/json
object
created
integer
data
object[]