Skip to content
EN

Describe(描述)

方法: POST路径: /ideogram/describe

Describe an image 描述一幅图像 具体参数请看官方文档:https://developer.ideogram.ai/api-reference/generate/post-generate-image

请求参数

Header 参数

text
accept
string
必需
示例:
application/json
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}

Body 参数 multipart/form-data

text
image_file
file
必需
示例:
file://E:\Downloads\flux.png

请求示例代码

Shell

bash
curl --location --request POST '/ideogram/describe' \
--header 'accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--form 'image_file=@"E:\\Downloads\\flux.png"'

返回响应

🟢 200 成功

内容类型: application/json

响应结构

text
created
string
必需
data
array
[object]
必需
is_image_safe
boolean
可选
prompt
string
可选
resolution
string
可选
seed
integer
可选
url
string
可选

示例

json
{
    "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."
        }
    ]
}