ideogram(文生图)
概览
- 方法: POST
- 地址: https://api.winfull.cloud-ip.cc/ideogram/generate
- 简介: Generates images synchronously based on a given prompt and optional parameters. 具体参数请看官方文档:https://developer.ideogram.ai/api-reference/api-reference/describe根据给定的提示和可选参数同步生成图像。 返回的图像 URL 在 24 小时内有效,超过该时间将无法访问图像。 已反代图片
认证
- Header: Authorization: Bearer
<token>
请求参数
- Header: Authorization: Bearer
<token> - Body 类型: application/json
{
"image_request": {
"aspect_ratio": "ASPECT_10_16",
"magic_prompt_option": "AUTO",
"model": "V_1",
"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."
}
}请求示例
curl --location --request POST 'https://api.winfull.cloud-ip.cc/ideogram/generate' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_request": {
"aspect_ratio": "ASPECT_10_16",
"magic_prompt_option": "AUTO",
"model": "V_1",
"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."
}
}'返回示例
🟢200成功 示例
{
"created": "2024-12-15T17:32:00.965408+00:00",
"data": [
{
"is_image_safe": true,
"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.",
"resolution": "768x1232",
"seed": 1785282233,
"style_type": null,
"url": "https://ideogram.ai/api/images/ephemeral/WkoxvqiOTaaCqG1nO2tQoA.png?exp=1734370337&sig=110fe96dc9e01002c8d837e5b4cde1aaa266195561d231ce76e19e095e478ffe"
}
]
}最后更新:2025-11-14 15:11:18
