DALL-E-3
POST
/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
内容格式: JSONapplication/json
数据结构
created
integer
必需
data
array [object {2}]
必需
revised_prompt
string
可选
url
string
可选
示例
{
"created": 1726381830,
"data": [
{
"revised_prompt": "Create a detailed image of a Siamese cat featuring its signature sleek, short, and glossy coat that is predominantly white in color. The cat should possess striking blue almond-shaped eyes, which are a characteristic trait of this breed. Its ears, paws, tail, and mask should be darker, consistent with the unique color-point pattern that Siamese cats are known for. The environment should be comfortable and homely, perhaps with a soft carpet or a warm blanket nearby for the cat to cozy up in. The cat's stance should depict elegance and grace, inherent traits of this exotic breed.",
"url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-RNgYUEswmoeVDC6Ta92lJvyX/user-rnKAAtSiEyuaNpCddZDl0mb6/img-sxoWVi7llzk2j8rDJmHfsWcn.png?st=2024-09-15T05%3A30%3A30Z&se=2024-09-15T07%3A30%3A30Z&sp=r&sv=2024-08-04&sr=b&rscd=inline&rsct=image/png&skoid=d505667d-d6c1-4a0a-bac7-5c84a87759f8&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-09-14T23%3A38%3A38Z&ske=2024-09-15T23%3A38%3A38Z&sks=b&skv=2024-08-04&sig=U/viKKHYVRtFm9lFWxKXouD/Q7STp6q6FbE3oC1S4U4%3D"
}
]
}
最后修改时间: 7 个月前