5.Describe(图生文)
POST
/ideogram/describe
支持的图像格式包括JPEG、PNG和WEBP
请求参数
Header 参数
Authorization
string
必需
示例值:
{{YOUR_API_KEY}}
Body 参数multipart/form-data
image_file
file
图片文件
示例代码
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 'https://openapi.sku.vip/ideogram/describe' \
--header 'Authorization: ed822e3a-ec11-48d5-9739-55f4b402e7b0' \
--form 'image_file=@""'
返回响应
🟢200成功
application/json
Body
descriptions
array [object {1}]
必需
text
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."
}
]
}
修改于 2025-03-09 12:25:55