OhMyGPT
Billing

Get credits

GET
/v1/credits

Returns the authenticated account's purchased credit total and lifetime request usage as USD amounts.

授权

ApiKeyAuth
headerAuthorization<token>

响应主体

Credit summary.

application/json
  1. response
data*
示例请求
curl -X GET 'https://api.ohmygpt.com/v1/credits'
示例响应
{  "data": {    "total_credits": 0.1,    "total_usage": 0.1  }}