":{"message":"input.content[1].image_url.url must be a public https URL","type":...
错误信息
[worker] 失败 video (a6824746-92e1-4a6b-a944-4a25941b8b66),耗时 36.52s: 视频模型请求失败 HTTP 400: {"error":{"message":"input.content[1].image_url.url must be a public https URL","type":"dmxapi_error","param":"input.content[1].image_url.url","code":"dmxapi_invalid_value"}}
AI 解决方案
原文:input.content[1].image_url.url must be a public https URL
译文:input.content[1].image_url.url 必须是公开的 https URL
🎯 原因分析
1 位(数组下标从 0 开始,即第二个元素)的输入内容中,指定的图像 URL 格式不合法(可能使用了非 HTTPS 协议或私有地址)。💡 解决方案
确保传入的图片链接满足以下条件:
https:// 协议# 修复后的代码示例
content = [
{
"type": "text",
"text": "描述这张图片"
},
{
"type": "image_url",
"image_url": {
# 确保使用公网 https 链接
"url": "https://example.com/valid-image.jpg"
}
}
]
🛡️ 预防措施
https:// 开头且非内网地址。