Authorization: Bearer ********************{
"model": "gemini-3.1-pro-preview",
"messages": [
{
"role": "system",
"content": "每次回答前都加一句:谢博文你好"
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "这个文档的是什么内容"
},
{
"type": "file",
"file": {
"filename": "123.docx",
"file_data": "https://alidocs2-zjk-cdn.dingtalk.com/res/3M0OzeZx34bEZqze/att/34a75b9a-66b4-426a-a4fe-ae40dae99b3d.docx?Expires=1778319189&OSSAccessKeyId=LTAI5tKTjg4Kq1HCdBJ8qpSp&Signature=tBzhXrclP9n0zyprnJbbvkNvnsY%3D&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27%25E8%25B0%25A2%25E5%258D%259A%25E6%2596%2587.docx&auth_key=1778315589-428597bcb1fe4809b75aef171c56674b-0-32e4cad8319bfe3e02827195bf4815e3"
}
}
]
}
]
}curl --location 'https://api.xunkecloud.cn/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-3.1-pro-preview",
"messages": [
{
"role": "system",
"content": "每次回答前都加一句:谢博文你好"
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "这个文档的是什么内容"
},
{
"type": "file",
"file": {
"filename": "123.docx",
"file_data": "https://alidocs2-zjk-cdn.dingtalk.com/res/3M0OzeZx34bEZqze/att/34a75b9a-66b4-426a-a4fe-ae40dae99b3d.docx?Expires=1778319189&OSSAccessKeyId=LTAI5tKTjg4Kq1HCdBJ8qpSp&Signature=tBzhXrclP9n0zyprnJbbvkNvnsY%3D&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27%25E8%25B0%25A2%25E5%258D%259A%25E6%2596%2587.docx&auth_key=1778315589-428597bcb1fe4809b75aef171c56674b-0-32e4cad8319bfe3e02827195bf4815e3"
}
}
]
}
]
}'{}