data.choices[0].message.content 按 JSON 解析即可读取结果。{
"device_id": "替换为已授权设备ID",
"temperature": 0.2,
"top_p": 0.7,
"thinking": {
"type": "disabled"
},
"messages": [
{
"role": "system",
"content": "判断图中是否有人,仅输出包含布尔字段 human 的 JSON 对象。"
},
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://images.example.com/snapshot.jpg"
}
}
]
}
]
}curl --location 'http://openapi-cn01.tange365.com/v2/ai/server/llm_inference/chat/completions' \
--header 'X-Tg-App-Id: xxx' \
--header 'X-Tg-Platform: {{platform}}' \
--header 'X-Tg-Sdk-Version: 23910000' \
--header 'X-Tg-App-Store: {{appstore}}' \
--header 'X-Tg-App-Version: {{app_version}}' \
--header 'X-Tg-App-Pkgname: {{pkgname}}' \
--header 'X-Tg-Date: {{currentUTCTime}}' \
--header 'Accept-Language: zh-CN' \
--header 'Authorization: ' \
--header 'X-Tg-Api-Version: 2.1' \
--header 'Content-Type: application/json' \
--data '{
"device_id": "替换为已授权设备ID",
"temperature": 0.2,
"top_p": 0.7,
"thinking": {
"type": "disabled"
},
"messages": [
{
"role": "system",
"content": "判断图中是否有人,仅输出包含布尔字段 human 的 JSON 对象。"
},
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://images.example.com/snapshot.jpg"
}
}
]
}
]
}'{
"code": 200,
"message": "success",
"request_id": "integration-demo-001",
"data": {
"choices": [
{
"message": {
"content": "{\"human\":true}"
}
}
],
"usage": {
"prompt_tokens": 100,
"completion_tokens": 10,
"total_tokens": 110
}
}
}