": { "message": "The size does not match the allowed size 1664*928,1472*1140,132...

2025年10月16日 15:45 响应: 1.94秒 状态: success

🚨 错误信息

{ "error": { "message": "The size does not match the allowed size 1664*928,1472*1140,1328*1328,1140*1472,928*1664. (request id: 20251016154406550749648J2Xrr5WH)", "type": "openai_error", "param": "", "code": "InvalidParameter" } }

🤖 AI解决方案

json
{
"error": {
"message": "尺寸不匹配允许的尺寸 1664928,14721140,13281328,11401472,928*1664. (请求 ID: 20251016154406550749648J2Xrr5WH)",
"type": "openai_error",
"param": "",
"code": "InvalidParameter"
}
}

  • 原因分析:请求的图片尺寸不在 API 允许的范围内。

  • 解决方案

  • 将图片尺寸调整为 API 支持的以下任一尺寸:1664928, 14721140, 13281328, 11401472, 928*1664
  • 预防措施

  • 1. 在发送请求前,验证待处理图片的尺寸是否符合 API 文档中列出的要求。
    2. 对不符合尺寸要求的图片,在 API 调用前进行预处理(如裁剪、缩放)。