ideogram(文生图)
开发中POST
{{BASE_URL}}/ideogram/generate修改时间: 22 天前
Generates images synchronously based on a given prompt and optional parameters.
根据给定的提示和可选参数同步生成图像。
返回的图像 URL 在 24 小时内有效,超过该时间将无法访问图像。
已反代图片
请求参数
Header 参数
accept
string
必需
示例值:
application/json
content-type
string
必需
示例值:
application/json
Authorization
string
必需
示例值:
sk-7bPwPtHW3nv2Azoz12De1b2a7b4442589d31A62f4617E412
Body 参数application/json
image_request
object
必需
aspect_ratio
string
必需
magic_prompt_option
string
必需
model
string
必需
prompt
string
必需
示例
{
"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."
}
}
示例代码
返回响应
成功(500)
HTTP 状态码: 500
内容格式: JSONapplication/json
数据结构
code
string
必需
message
string
必需
data
null
必需
示例
{
"code": "custom_router_error",
"message": "请求上游地址失败",
"data": null
}
修改于 22 天前