feat: add KIE remaining credits node

This commit is contained in:
Steve Tietze
2025-12-17 17:31:45 +07:00
parent 09a35be346
commit bcd4060952
+14 -1
View File
@@ -1,5 +1,18 @@
## Credits (official)
GET https://api.kie.ai/api/v1/chat/credit
Header: Authorization: Bearer YOUR_API_KEY
Response:
{
"code": 200,
"msg": "success",
"data": 100
}
- data = remaining credits (integer)
# KIE Nano Banana Pro API (Pinned)
- API key loaded from config/kie_key.txt
- Create task: POST /api/v1/jobs/createTask
- Poll task: GET /api/v1/jobs/recordInfo?taskId=
- Credits: use remaining-credits endpoint
- Credits: GET https://api.kie.ai/api/v1/chat/credit with header `Authorization: Bearer <token>`; expects JSON `{ "code": 200, "msg": "success", "data": <remaining_credits_int> }` and treat non-200 code as error.