# 简介
海聪AI平台提供了开放接口,主要供公司内部部门对接。
# 快速上手
# 申请接入海聪开放接口权限
新对接的应用需要联系海聪开发人员为其创建对接权限,创建后会颁发 appId和appSecret。
# 接入地址
| url | 环境 |
|---|---|
| svrtest-haicong.huya.info/svr | 预发环境 |
| haicong-open-api.huya.info/svr | 生产环境 |
# 接口文档
接口文档如下: http://svrtest-haicong.huya.info/svr/swagger-ui.html?urls.primaryName=%E6%B5%B7%E8%81%AAopen%20API%E6%96%87%E6%A1%A3#/
# 请求头参数
| 字段名 | 字段类型 | 字段描述 | 是否必须 |
|---|---|---|---|
| X-Haicong-AppID | string | 向海聪申请后提供的 | 是 |
| X-Haicong-Sign | string | 通过 AppId+AppSecret+ X-Haicong-Timestamp 拼接生成的字符串进行32位md5加密 | 是 |
| X-Haicong-Timestamp | string | 当前时间的13位时间戳 | 是 |
| X-Haicong-Operator | string | 对接应用实际请求的oa用户 | 是 |
# 请求示例
以 查询当前用户可用的镜像为例,请求如下:
api请求 GET http://haicong-open-api.huya.info/svr/open-api/images/can-use/my-self
请求头
X-Haicong-AppID : 1
X-Haicong-Sign :c2211ae6ddb6397a60e733d3f947ad17
X-Haicong-Timestamp : 1781977827275
X-Haicong-Operator : dw_fanfangqing
← 模型应用 Notebook 常见问题 →