文本响应
图片分析
以下是包含图片识别分析的响应请求示例:
Copy
curl --location --request POST 'https://geekai.co/api/v1/responses' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4o-mini",
"input": [
{
"type": "message",
"role": "user",
"content": [
{"type": "input_text", "text": "图片中包含什么内容?"},
{
"type": "input_image",
"image_url": "https://static.geekai.co/logo/geekai-logo-main-tr.png"
}
]
}
]
}'
多张图片识别传入多个图片对象到 content 列表即可:
Copy
{
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "找出两张图片中的不同点?"
},
{
"type": "input_image",
"image_url": "https://static.geekai.co/storage/2025/05/14/image1.jpg"
},
{
"type": "input_image",
"image_url": "https://static.geekai.co/storage/2025/05/14/image2.jpg"
}
]
}
助手
Responses are generated using AI and may contain mistakes.