# 接口分类

# 1. Gateway后端接口(需要签名认证)

认证方式: 签名认证 适用范围: 直接处理AI任务的底层接口,使用严格的签名认证机制

请求头要求:

X-APPID: your-AppID-here
X-Request-ID: uuid-request-id
X-Timestamp: 1677652288
X-Nonce: random-nonce-string
X-Signature: calculated-signature

签名计算规则:

signature = HMAC-SHA256(Secret-Key, timestamp + "\n" + nonce + "\n" + request_id + "\n" + request_body)

参数说明:

Secret-Key和AppID可以通过https://weknora.weixin.qq.com/platform/openapi获取

X-Request-ID与X-Nonce为用户生成string

X-Timestamp为当前时间戳