DALL-E-3
/v1/images/generations
请求参数
Header 参数
Authorization
string
必需
示例值:
{{KEY}}
Body 参数application/json
model
string
必需
prompt
string
必需
n
integer
必需
size
string
必需
示例
{
"model": "dall-e-3",
"prompt": "a white siamese cat",
"n": 1,
"size": "1024x1024"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSON
数据结构
created
integer
必需
data
array [object {2}]
必需
revised_prompt
string
可选
url
string
可选
示例
{
"created": 1711260552,
"data": [
{
"revised_prompt": "A portrait of a Siamese cat with a creamy white coat color lying gracefully. The cat's characteristic seal points – areas of darker fur on its ears, paws, face, and tail – should be distinct and appear in contrast to its lighter fur. The cat's eyes are a vibrant blue, full of curiosity and attentiveness. The background of the image is neutral and soft, to not draw attention away from the beauty of the Siamese cat.",
"url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-ZcYNaQhZjYsH7amVPEgT65gz/user-SKxxshtstheb91O7SWW6x6jc/img-Q28RjetZWe9r6O8qQMFS8Hso.png?st=2024-03-24T05%3A09%3A12Z&se=2024-03-24T07%3A09%3A12Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-23T21%3A08%3A36Z&ske=2024-03-24T21%3A08%3A36Z&sks=b&skv=2021-08-06&sig=8EfJ%2Bxns%2Bvtu5nGrWDtIimPpJUjl8pZfLdhPRLzypf4%3D"
}
]
}
修改于 4 个月前