For the complete documentation index, see llms.txt. This page is also available as Markdown.

预估价格

预估价格

预估租赁费用

get
Authorizations
CF-ACCESS-KEYstringRequired
CF-ACCESS-SIGNstringRequired
CF-ACCESS-TIMESTAMPstringRequired
Query parameters
quantityinteger · int32 · min: 60000Required

租赁的能量数量,不少于 65,000。

durationstringRequired

租赁时长,目前仅支持 1h(1 小时)。

Header parameters
CF-ACCESS-KEYstringRequired

用于身份验证的 API Key。

Example: your api key
CF-ACCESS-SIGNstringRequired

使用 HMAC-SHA256 计算并经 Base64 编码的请求签名。生成方式见请求签名说明。

Example: signature
CF-ACCESS-TIMESTAMPstringRequired

请求发起时间,使用 UTC 时间,例如 2008-08-08T08:08:08.888Z。

Responses
200

接口响应。请查看 code 和 msg 判断业务处理结果。

application/json
codeinteger · int32Optional

业务结果码。0 表示接口调用成功,其他值表示错误。

msgstringOptional

结果说明;发生错误时提供错误信息。

sub_codestringOptional
sub_msgstringOptional
datainteger · int64Optional
get/v1/estimate
GET /v1/estimate?quantity=1&duration=text HTTP/1.1
Host: api.catfee.io
CF-ACCESS-KEY: text
CF-ACCESS-SIGN: text
CF-ACCESS-TIMESTAMP: text
Accept: */*
200

接口响应。请查看 code 和 msg 判断业务处理结果。

{
  "code": 1,
  "msg": "text",
  "sub_code": "text",
  "sub_msg": "text",
  "data": 1
}

Last updated