- 前言(必读)
- OpenAI官方库使用教程
- python调用实例
- 聊天模型(Chat)
- 向量嵌入
- 音频模型(Audio)
- 绘画模型(Painting)
- 音乐创作(suno)
- 视频模型(Video)
- API接口节点
- 入门教程
- GPT4检验方法
- 注意事项
- 常见问题回答
- 联系方式
- 更多接口开发中...
查询令牌额度
GET
https://api.chatgptsb.com/v1/dashboard/billing/subscription
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Authorization
string
令牌KEY
示例值:
Bearer sk-xxxx
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.chatgptsb.com/v1/dashboard/billing/subscription' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json'
返回响应
🟢200成功
application/json
Body
object
string
必需
has_payment_method
integer
必需
soft_limit_usd
string
必需
hard_limit_usd
string
必需
system_hard_limit_usd
string
必需
access_until
string
必需
示例
{
"object": "billing_subscription",
"has_payment_method": true,
"soft_limit_usd": 41.715348,
"hard_limit_usd": 41.715348,
"system_hard_limit_usd": 41.715348,
"access_until": 0
}
修改于 2024-12-16 12:20:10