Documentation Index
Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /credits/balance
返回当前认证用户的可用积分与使用统计。需要基于会话的 JWT 访问令牌鉴权。
**第三方集成:**请改用 GET /credits/balance/api 并以 API Key 鉴权。
最近的积分流水。
类型:purchase、usage 或 refund。
curl -X GET https://api.llmgenerator.com/api/v1/credits/balance \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"balance": 450,
"totalPurchased": 1000,
"totalUsed": 550,
"recentTransactions": [
{
"id": "txn_abc123",
"type": "purchase",
"amount": 500,
"description": "Purchased Pro Pack",
"createdAt": "2026-01-15T10:00:00Z"
},
{
"id": "txn_def456",
"type": "usage",
"amount": -50,
"description": "API LLMs.txt generation (enhanced) for example.com (25 URLs)",
"createdAt": "2026-01-20T14:30:00Z"
}
]
}
GET /credits/balance/api
使用 API Key 返回当前用户的积分余额,适合第三方集成与外部应用。
需要 API Key。在 Authorization 请求头中携带:
Authorization: Bearer llmgen_your_api_key_here
与上文 /credits/balance 相同。
curl -X GET https://api.llmgenerator.com/api/v1/credits/balance/api \
-H "Authorization: Bearer llmgen_your_api_key_here"