Generate 3.0(文生图)
测试中
POST
https://api.deerapi.com/ideogram/v1/ideogram-v3/generate
具体参数请看官方文档:https://developer.ideogram.ai/api-reference/api-reference/generate-v3
返回的图像 URL 在 24 小时内有效,超过该时间将无法访问图像。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.deerapi.com/ideogram/v1/ideogram-v3/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there is an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset."
}'
响应示例响应示例
{
"created": "2000-01-23 04:56:07+00:00",
"data": [
{
"prompt": "A photo of a cat sleeping on a couch.",
"resolution": "1024x1024",
"is_image_safe": true,
"seed": 12345,
"url": "https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804&sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89",
"style_type": "GENERAL"
}
]
}
请求参数
Header 参数
Authorization
string
可选
示例值:
{{api-key}}
accept
string
可选
示例值:
application/json
content-type
string
可选
示例值:
application/json
Body 参数application/json