From bcd4060952ee0fa4ea0ebbe9c815e4e0919abba8 Mon Sep 17 00:00:00 2001 From: Steve Tietze Date: Wed, 17 Dec 2025 17:31:45 +0700 Subject: [PATCH] feat: add KIE remaining credits node --- docs/KIE_API_NANOBANANA_SPEC.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/KIE_API_NANOBANANA_SPEC.md b/docs/KIE_API_NANOBANANA_SPEC.md index bf29b78..2c43fda 100644 --- a/docs/KIE_API_NANOBANANA_SPEC.md +++ b/docs/KIE_API_NANOBANANA_SPEC.md @@ -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 `; expects JSON `{ "code": 200, "msg": "success", "data": }` and treat non-200 code as error.