图像
POST
https://api.deerapi.com/v1/images/generations
请求正文
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.deerapi.com/v1/images/generations' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "dall-e-3",
"prompt": "A cute baby sea otter",
"n": 1,
"size": "1024x1024"
}'
响应示例响应示例
{
"created": 1737352021,
"data": [
{
"revised_prompt": "A small and adorable sea otter pup. It's floating on its back in a tranquil, azure sea, sunlight streaming down on its thick, wet fur. The otter pup is contentedly munching on a bright pink shrimp, holding it between its little paws while remaining completely buoyant, displaying its nimble acrobatic skills that come naturally to its species. The pup's eyes are bright with curiosity and innocence, exploring the vast sea around it while enjoying its meal. The blue-green water around it is dancing with the sunlight, creating a serene environment for the otter pup's mealtime.",
"url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-nRhUPivdBTlVXzF8KaZBo9vY/user-IuAvdMlDArmYuupuySzt6BqQ/img-AtYEsUJaP70OFEPyqFbSuxSE.png?st=2025-01-20T04%3A47%3A01Z&se=2025-01-20T06%3A47%3A01Z&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=2025-01-20T00%3A45%3A01Z&ske=2025-01-21T00%3A45%3A01Z&sks=b&skv=2024-08-04&sig=Op4s4mFKwrX6i/O43KZ/23EAWY2LnQTfY2ooxaFZNM0%3D"
}
]
}
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{api-key}}
Body 参数application/json
返回响应
修改于 2025-04-27 08:51:58