以下是包含图片的对话请求示例:

curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gpt-4o-mini",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "请提取中包含的文字,并以列表形式输出"
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "https://static.geekai.co/storage/2025/03/08/1741444660440.jpg"
            }
          }
        ]
      }
    ],
    "stream": true
}'

需要注意的是,仅支持图片识别的模型能够进行图片分析,其他模型暂不支持,所有支持图片识别的模型可以在模型广场通过筛选查看。