GET

/api/dashboard/stats

Dashboard statistics

Returns aggregated usage statistics and credit balance for the dashboard.

curl -s "$BASE/api/dashboard/stats" \
  -H "Authorization: Bearer $API_KEY"

响应示例

{
  "success": true,
  "data": {
    "credits": {
      "balance": 1000,
      "totalUsed": 250
    },
    "usage": {
      "totalRequests": 1500,
      "today": 42
    }
  }
}

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test