快速开始
莫干山地信实验室模型 API 面向能源资源领域时空地理信息方向,提供基础语言、多模态、视觉、三维重建以及面向国土空间治理的垂类模型能力。
本开放中心统一收录各模型接口规范、请求/响应示例与状态说明,便于政府、企业与科研开发者快速接入。
通用规范
认证方式
部分接口采用 HTTP Header 认证:
http
Authorization: Bearer <API_KEY>具体 API_KEY 请通过平台控制台申请或联系运营人员获取。
请求格式
- 默认请求格式为
application/json。 - 三维重建类接口采用异步任务提交 + 回调通知机制。
- OpenAI 兼容接口遵循标准 Chat Completions 协议。
错误处理
| 场景 | 说明 |
|---|---|
| 同步接口 | 直接返回 HTTP 状态码与错误信息 |
| 异步接口 | 通过回调地址返回 status 与 failReason |
L1 行业大模型
语言基础模型
| 项目 | 内容 |
|---|---|
| API 地址 | http://10.0.0.239:9003/v1/chat/completions |
| 方法 | POST |
| 协议 | OpenAI Chat Completions 兼容格式 |
| 认证 | Authorization: Bearer <API_KEY> |
| 模型 | MXGeo-llm |
请求头:
http
Content-Type: application/json
Authorization: Bearer <API_KEY>请求体示例:
json
{
"model": "MXGeo-llm",
"messages": [
{
"role": "user",
"content": "hello"
}
],
"stream": false
}出参示例:
json
{
"id": "chatcmpl-xxx",
"model": "MXGeo-llm",
"choices": [
{
"message": {
"role": "assistant",
"content": "hello"
}
}
]
}多模态基础模型
| 项目 | 内容 |
|---|---|
| API 地址 | http://8.130.96.200:8010/vllmRS |
| 方法 | POST |
| 协议 | OpenAI Chat Completions 兼容格式 |
| 模型 | MXgeo-mllm |
| 认证 | Authorization: Bearer <API_KEY> |
请求头:
http
Content-Type: application/json
Authorization: Bearer <API_KEY>请求体示例:
json
{
"model": "MXgeo-mllm",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Classify the given image in one of the following classes..."
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/image.jpg"
}
}
]
}
],
"stream": false
}出参示例:
json
{
"id": "chatcmpl-xxx",
"model": "MXgeo-mllm",
"choices": [
{
"message": {
"role": "assistant",
"content": "Airport"
}
}
]
}视觉基础模型
| 项目 | 内容 |
|---|---|
| API 地址 | http://192.168.0.4:18080/vision/analyze |
| 方法 | POST |
| 说明 | 基础模型层通用视觉基础模型 API |
请求体示例:
json
{
"image_path": "/data/eval_data/1.jpg",
"tasks": ["detect", "count", "scene", "multilabel"],
"conf": 0.3
}任务类型:
| task | 能力 |
|---|---|
detect | 目标检测(出框) |
count | 目标计数(按类别数框) |
scene | 场景分类(单标签,45 类) |
multilabel | 地物多标签(17 类) |
出参示例:
json
{
"model": "visionl1",
"results": {
"detect": {
"detections": [
{ "label": "Airplane", "bbox": [173.8, 24.9, 296.3, 133.9], "score": 0.792 }
]
},
"count": {
"counts": { "Airplane": 3 }
},
"scene": {
"label": "airplane",
"confidence": 0.8902
},
"multilabel": {
"labels": ["buildings", "cars", "grass", "pavement", "trees"]
}
}
}三维基础模型
| 项目 | 内容 |
|---|---|
| API 地址 | http://180.184.148.169:5001/api/v1/citygs/submit |
| 方法 | POST |
| 协议 | 异步任务提交 + 回调通知 |
| Content-Type | application/json |
| 适用流程 | 倾斜摄影三维重建、局部区域重建 |
请求体字段:taskId、modelingMode、inputUrls、callbackUrl、bucketName、outputPrefix、minio。
modelingMode 取值:
| 值 | 说明 |
|---|---|
tilt | 倾斜摄影三维重建 |
local_reconstruction | 局部区域重建 |
请求体示例:
json
{
"taskId": "2029480866773737473",
"modelingMode": "tilt",
"inputUrls": [
"https://minio.example.com/yintu-reality-pipeline/xxx/1.jpg"
],
"callbackUrl": "https://bcapi.i-tudou.com/yintu-reality/v1/openapi/modeling-tasks/callback",
"bucketName": "yintu-reality-pipeline",
"outputPrefix": "123456/runs/2029480866773737473/reconstruction/",
"minio": {
"endpoint": "https://minio.example.com",
"access_key": "<ACCESS_KEY>",
"secret_key": "<SECRET_KEY>",
"secure": true
}
}同步响应:
http
HTTP/1.1 202 Accepted局部重建补充字段:
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
regionPolygon | Array | 是 | 局部重建的区域多边形顶点坐标列表 |
parentModelPath | String | 是 | 原始父模型下载地址 |
parentModelFormat | String | 是 | 父模型格式:gs 或 mesh |
回调字段:taskId、status、progress、stage、message、failReason、modelUrl、thumbnailUrl、metadata。
status 枚举:
| 状态 | 说明 |
|---|---|
modeling_processing | 建模进行中 |
modeling_completed | 建模完成 |
modeling_failed | 建模失败 |
modeling_packaging_processing | 建模产物打包中 |
modeling_packaging_completed | 建模产物打包完成 |
modeling_packaging_failed | 建模产物打包失败 |
完成回调示例:
json
{
"taskId": "2029480866773737473",
"status": "modeling_completed",
"progress": 100,
"message": "Modeling completed successfully",
"modelUrl": "https://minio.example.com/yintu-reality-pipeline/1/runs/.../gs_pointCloud.ply",
"thumbnailUrl": "https://minio.example.com/yintu-reality-pipeline/1/runs/.../thumbnail.png",
"metadata": {
"faceCount": 125000,
"pointCloudCount": 500000
}
}失败回调示例:
json
{
"taskId": "2029480866773737473",
"status": "modeling_failed",
"failReason": "Colmap pipeline failed"
}L2 垂类大模型
三维建筑生成大模型
| 项目 | 内容 |
|---|---|
| API 地址 | http://180.184.148.169:5001/api/v1/modeling/submit |
| 方法 | POST |
| 协议 | 异步任务提交 + 回调通知 |
| Content-Type | application/json |
| 适用流程 | 生成式算法建模流程 |
modelingMode 建议使用 generative,用于与三维基础模型流程区分。
请求体示例:
json
{
"taskId": "2029480866773737473",
"modelingMode": "generative",
"inputUrls": [
"https://minio.example.com/yintu-reality-pipeline/xxx/1.jpg"
],
"callbackUrl": "https://bcapi.i-tudou.com/yintu-reality/v1/openapi/modeling-tasks/callback",
"bucketName": "yintu-reality-pipeline",
"outputPrefix": "123456/runs/2029480866773737473/reconstruction/",
"minio": {
"endpoint": "https://minio.example.com",
"access_key": "<ACCESS_KEY>",
"secret_key": "<SECRET_KEY>",
"secure": true
}
}同步响应:
http
HTTP/1.1 202 Accepted回调字段与状态枚举同「三维基础模型」。
完成回调示例:
json
{
"taskId": "2029480866773737473",
"status": "modeling_completed",
"progress": 100,
"message": "Modeling completed successfully",
"modelUrl": "https://minio.example.com/yintu-reality-pipeline/1/runs/.../model.glb",
"thumbnailUrl": "https://minio.example.com/yintu-reality-pipeline/1/runs/.../thumbnail.png",
"metadata": {
"faceCount": 125000,
"pointCloudCount": 500000,
"outputFiles": [
"https://minio.example.com/yintu-reality-pipeline/1/runs/.../model.glb"
]
}
}打包完成回调示例:
json
{
"taskId": "2029480866773737473",
"status": "modeling_packaging_completed",
"progress": 100,
"message": "Modeling package uploaded",
"metadata": {
"download": {
"reconstruction": {
"status": "completed",
"url": "https://minio.example.com/yintu-reality-pipeline/.../reconstruction.zip",
"size": 1048576000,
"packedAt": "2026-03-15T13:05:00Z"
}
}
}
}事件识别大模型
目标检测事件识别
| 项目 | 内容 |
|---|---|
| API 地址 | 摄像头 http://10.0.0.7:46001/det_server
无人机 http://10.0.0.7:46101/det_server |
| 方法 | POST |
| 协议 | 异步任务提交 + 回调通知 |
| Content-Type | application/json |
请求体示例:
json
{
"task_id": "1816054740584828930",
"events_id": ["0xe4d1", "0xe4d2"],
"data_type": "image",
"image_url": "/mnt/cephfs/tudoucity/det/CitySight.jiami/samples/images/ipc/18f9276e.jpeg",
"file_info": {
"file_name": "test.jpg",
"total_frame": 15,
"frame_count": 0
},
"service": {
"host": "10.0.34.60",
"port": 60009,
"pred_page": "callback"
},
"ori_kwargs": {},
"pred": {},
"vis": {}
}出参示例:
json
{
"message_id": "1816054740584828930",
"status": 1,
"data_type": "image",
"image_url": "/xxx/01.jpg",
"file_info": {
"file_name": "01.jpg",
"total_frame": 15,
"frame_count": 0
},
"event_id": ["0xe4d1", "0xe4d2"],
"pred": {
"event": {
"0xe4d1": {
"name": "xxx",
"happen": 1,
"number": 1,
"details": [
{"person": ["x1", "y1", "x2", "y2"]}
]
}
}
},
"vis": {}
}多模态城市事件识别
| 项目 | 内容 |
|---|---|
| API 地址 | <OPENAI_COMPATIBLE_BASE_URL>/v1/chat/completions |
| 方法 | POST |
| 协议 | OpenAI Chat Completions 兼容格式 |
| 模型 | qwen2.5-vl |
请求体示例:
json
{
"model": "qwen2.5-vl",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "请识别图片中的城市治理事件,返回 JSON,字段包含 event、confidence、reason。"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/city-event.jpg"
}
}
]
}
],
"stream": false
}出参示例:
json
{
"id": "chatcmpl-xxx",
"model": "qwen2.5-vl",
"choices": [
{
"message": {
"role": "assistant",
"content": "{"event":"垃圾满溢","confidence":0.89,"reason":"垃圾桶周边存在明显外溢垃圾"}"
}
}
]
}遥感地物分类大模型
| 项目 | 内容 |
|---|---|
| API 地址 | 轻量在线解译 Prod http://10.0.34.65:9415/v1/chat/completions
莫干山现场 http://10.0.0.7:9415/v1/chat/completions |
| 方法 | POST |
| 能力 | 按地物类别对遥感影像进行提取/解译,输出原图和 mask 的叠加图 |
参数说明:
img_url:公有可请求到的图片 URL 地址seg_types:分割类型,字符串用英文逗号隔开,可选:旱地、灌溉农田、乔木林、草地、灌木林、矿井、居民地、建筑物、水田、道路、水体、园地、体育场、广场、天桥、火车站、机场、油罐、工业区、公园、池塘、鱼塘、雪、裸土、温室大棚、硬化地表、光伏、果园
请求体示例:
json
{
"img_url": "https://minio.ngaitb.cn/knowledgebase/2/chat/assets/picture/00e58297_I50G004096_2013_0.tif",
"seg_types": "建筑物,道路"
}出参示例:
json
{
"id": "chatcmpl-a3880baf-e6f5-49b6-8f09-09b2af8b87d0",
"img_url": "https://minio.ngaitb.cn/csjc-public-beta/seg/00e58297_I50G004096_2013_0.png",
"created": "20260707082444",
"model": "remote_sensing_segmentation"
}遥感目标识别大模型
| 项目 | 内容 |
|---|---|
| API 地址 | 待补充 |
| 方法 | 待补充 |
| 入参 | 待补充 |
| 出参 | 待补充 |
遥感变化检测大模型
| 项目 | 内容 |
|---|---|
| API 地址 | 轻量在线解译 Prod http://10.0.34.65:9420/v1/chat/completions
莫干山现场 http://10.0.0.7:9420/v1/chat/completions |
| 方法 | POST |
| 能力 | 基于前后时相影像进行变化检测,输出变化检测前景和后景和 mask 图拼接后得到的图片 URL |
参数说明:
img_url:公有可请求到的图片 URL 地址,要求输入两张图像 URL,英文逗号隔开,两张图像大小一致、区域相同seg_types:变化检测类型,可选:建筑物变化
请求体示例:
json
{
"img_url": "https://minio.ngaitb.cn/knowledgebase/2/chat/assets/picture/acf4f12b_S2Looking_train_2514_3_before.jpg,https://minio.ngaitb.cn/knowledgebase/2/chat/assets/picture/fb3c4212_S2Looking_train_2514_3_after.jpg",
"seg_types": "建筑物变化"
}出参示例:
json
{
"id": "chatcmpl-5cdaab24-d956-4b17-b63d-6cc25fcf7455",
"img_url": "https://minio.ngaitb.cn/csjc-public-beta/change/change_1783414380.0973845.png",
"created": "20260707064051",
"model": "remote_sensing_change"
}核查举证模型
| 项目 | 内容 |
|---|---|
| API 地址 | http://10.0.34.62/proof |
| 方法 | POST |
| 协议 | OpenAI Chat Completions 兼容格式 |
| 模型 | MXGeo-FactChecking |
| 认证 | Authorization: Bearer <API_KEY> |
请求头:
http
Content-Type: application/json
Authorization: Bearer <API_KEY>参数说明:
proof_land:举证地类,必须传入,取值:水田、水浇地、旱地、果园、乔木林地、竹林地、灌木林地、农村宅基地、农村道路、设施农用地、其他地类proof_attribution:举证种植属性,可为空,取值:种植粮食、种植非粮食、粮与非粮轮作、未耕种、休耕、间作套种proof_crops:举证作物,可为空,也可为 1 种或多种作物image_url:图斑包含的一组图像地址
请求体示例:
json
{
"model": "MXGeo-FactChecking",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "{"proof_land":"灌木林地", "proof_attribution":"", "proof_crops":""}"
},
{
"type": "image_url",
"image_url": {
"url": "/***/folder1/"
}
}
]
}
],
"stream": false
}出参示例:
json
{
"id": "chatcmpl-xxx",
"model": "MXGeo-FactChecking",
"choices": [
{
"message": {
"role": "assistant",
"content": {
"...jpg": {
"land": "灌木林地",
"crop": "",
"crop_category": "",
"attribution": ""
}
}
}
}
]
}时空数据分析大模型
| 项目 | 内容 |
|---|---|
| API 地址 | 待补充 |
| 方法 | 待补充 |
| 入参 | 待补充 |
| 出参 | 待补充 |
地图识别模型
请求体
python
{
'image_path': 'tmp.png',
'image_id': 'abc'
}| Name | Type | Description |
|---|---|---|
image_path | String | 图片的绝对路径 |
image_id | String | 图片唯一标识号 |
返回结果
| Name | Type | Description |
|---|---|---|
message | String | 判断结果("Yes"或"No") |
image_id | String | 图片唯一标识符 |
请求示例
python
import requests
import time
import json
url = 'http://192.168.0.4:10001/map_server'
data = {'image_path': 'tmp.png', 'image_id': 'sdfjkghue'}
headers = {'Content-Type': 'application/json'}
st = time.time()
response = requests.post(url, json=data, headers=headers)
end = time.time()
print("time end:", end - st)
print(response)
print(response.text)
res = json.loads(response.text)
print(res['message'])
print(res['image_id'])
if 'Yes' == res['message']:
print("the image contains a map.")
elif 'No' == res['message']:
print("the image does not contain a map.")
else:
print(f"infer error: {res['message']}.")地图诊断模型
请求体
python
{
'image_path': 'tmp.png',
'image_id': 'abc',
'vis': 'true'
}| Name | Type | Description |
|---|---|---|
image_path | String | 图片的绝对路径 |
image_id | String | 图片唯一标识号 |
vis | String | 是否进行可视化('true'/'false') |
返回结果
| Name | Type | Description |
|---|---|---|
message | 字典 | 地图诊断结果 |
image_id | String | 图片唯一标识符 |
message 内容示例:
python
{
'problems': 3,
'results': [
{
'name': '南海区域',
'level': '严重',
'reason': '不完整且无附图',
'coordinate': [499, 267, 551, 311]
}
],
'picture_url': ''
}问题包含:
- 重要区域边界未标注或附图缺失
- 重要区域名称标注错误
- 图面要素压盖、重叠或色彩异常
请求示例
python
import requests
import time
import json
import os
from PIL import Image
from io import BytesIO
url = 'http://10.0.0.7:1001/map_server'
save_path = 'vis'
os.makedirs(save_path, exist_ok=True)
data = {
'image_path': '/data/nfs/lilf/server/test00/tmp.png',
'image_id': 'abc',
'vis': 'true'
}
headers = {'Content-Type': 'application/json'}
st = time.time()
response = requests.post(url, json=data, headers=headers)
end = time.time()
print("time end:", end - st)
response.encoding = 'utf-8'
res = json.loads(response.text)
res = json.loads(res["message"])
print(res)
image_url = res.get('picture_url')
if image_url:
response = requests.get(image_url)
image = Image.open(BytesIO(response.content)).convert("RGB")
img_path = os.path.join(save_path, os.path.basename(image_url))
image.save(img_path, 'PNG')