- 指南
- 通知设置-WebHook参数介绍
- 列出模型
- 聊天(Chat)
- RAG(嵌入、重排序
- 视频模型
- 数字人
- 绘图模型
- 生图模型简介
- OpenAI Dall-e 格式
- OpenAI 聊天格式
- Mid journey 文生图
- Flux 文生图
- Ideogram(官方格式
- recraft 官方格式
- 快手可灵(官方格式)
- SeedEdit(图片编辑
- Replicate
- 豆包智能绘图
- 音频接口
- 文件上传(Files)
- PPT接口
- 帮助中心
- 平台API
- 废弃、未开放
Describe(描述)
POST
{{BASE_URL}}/ideogram/describe
最后修改时间:2024-09-22 09:19:32
描述一幅图像
具体参数请看官方文档:https://developer.ideogram.ai/api-reference/generate/post-generate-image
请求参数
Query 参数
string
可选
Header 参数
accept
string
必需
示例值:
application/json
Authorization
string
必需
示例值:
sk-7bPwPtHW3nv2Azoz12De1b2a7b4442589d31A62f4617E412
string
可选
Body 参数multipart/form-data
image_file
file
必需
示例值:
file://E:\Downloads\flux.png
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/ideogram/describe' \
--header 'accept: application/json' \
--header 'Authorization: sk-7bPwPtHW3nv2Azoz12De1b2a7b4442589d31A62f4617E412' \
--form 'image_file=@"E:\\Downloads\\flux.png"' \
--form '=""'
返回响应
🟢200成功
application/json
Body
created
string
必需
data
array [object {5}]
必需
is_image_safe
boolean
可选
prompt
string
可选
resolution
string
可选
seed
integer
可选
url
string
可选
示例
{
"descriptions": [
{
"text": "A meticulously illustrated cat with striped patterns, sitting upright. The cat's eyes are a captivating shade of yellow, and it appears to be gazing intently at something. The background consists of abstract, swirling patterns in shades of black, white, and beige, creating an almost fluid or wavy appearance. The cat is positioned in the foreground, with the background elements fading into the distance, giving a sense of depth to the image."
},
{
"text": "A meticulously illustrated cat with striped patterns, sitting upright. The cat's eyes are a captivating shade of yellow, and it appears to be gazing intently at something. The background consists of abstract, swirling patterns in shades of black, white, and beige, creating an almost fluid or wavy appearance. The cat is positioned in the foreground, with the background elements fading into the distance, giving a sense of depth to the image."
}
]
}
修改于 2024-09-22 09:19:32