@nodetool-ai/kie-nodes 0.8.3 → 0.8.4-a13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.nodetool-build-stamp +1 -1
- package/dist/kie-pricing-api.d.ts +1 -86
- package/dist/kie-pricing-api.d.ts.map +1 -1
- package/dist/kie-pricing-api.js +1 -242
- package/dist/kie-pricing-api.js.map +1 -1
- package/dist/unit-pricing-catalog.d.ts +2 -15
- package/dist/unit-pricing-catalog.d.ts.map +1 -1
- package/dist/unit-pricing-catalog.js +1 -11
- package/dist/unit-pricing-catalog.js.map +1 -1
- package/package.json +5 -4
- package/dist/generated/kie-unit-pricing.json +0 -1302
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-10-
|
|
1
|
+
2026-10-15T22:44:31.004Z
|
|
@@ -1,87 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Fetch and normalize kie.ai public model pricing from the pricing page API.
|
|
3
|
-
*
|
|
4
|
-
* POST https://api.kie.ai/client/v1/model-pricing/page
|
|
5
|
-
* (same endpoint the kie.ai/pricing page uses — no API key required)
|
|
6
|
-
*/
|
|
7
|
-
export declare const KIE_MODEL_PRICING_PAGE_URL = "https://api.kie.ai/client/v1/model-pricing/page";
|
|
8
|
-
export declare const KIE_PRICING_PAGE_SIZE = 100;
|
|
9
|
-
export interface KiePricingPageRecord {
|
|
10
|
-
modelDescription: string;
|
|
11
|
-
interfaceType: string;
|
|
12
|
-
provider: string;
|
|
13
|
-
creditPrice: string;
|
|
14
|
-
creditUnit: string;
|
|
15
|
-
usdPrice: string;
|
|
16
|
-
falPrice: string;
|
|
17
|
-
discountRate: number;
|
|
18
|
-
anchor: string;
|
|
19
|
-
discountPrice: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface KiePricingPageResponse {
|
|
22
|
-
code?: number;
|
|
23
|
-
msg?: string;
|
|
24
|
-
data?: {
|
|
25
|
-
records?: KiePricingPageRecord[];
|
|
26
|
-
total?: number;
|
|
27
|
-
size?: number;
|
|
28
|
-
current?: number;
|
|
29
|
-
pages?: number;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
/** Aggregated list price for a kie model id (may span multiple tiers). */
|
|
33
|
-
export interface KieModelPricingSummary {
|
|
34
|
-
model_id: string;
|
|
35
|
-
unit_price: number;
|
|
36
|
-
billing_unit: string;
|
|
37
|
-
currency: "credits";
|
|
38
|
-
usd_price?: number;
|
|
39
|
-
tier_count: number;
|
|
40
|
-
pricing_url?: string;
|
|
41
|
-
}
|
|
42
|
-
/** Extract `model` query param from a kie.ai pricing row anchor URL. */
|
|
43
|
-
export declare function modelIdFromKiePricingAnchor(anchor: string): string | null;
|
|
44
|
-
/** Base model page URL without the `model=` query (for external links). */
|
|
45
|
-
export declare function kiePricingPageUrlFromAnchor(anchor: string): string | undefined;
|
|
46
|
-
/** Lowercase, strip non-alphanumerics — collapses kie's slug variants to a comparable key. */
|
|
47
|
-
export declare function normalizeKieModelId(id: string): string;
|
|
48
|
-
/**
|
|
49
|
-
* Resolve the kie model identifier for a pricing row. kie encodes it in three
|
|
50
|
-
* inconsistent places, so we try, highest-confidence first:
|
|
51
|
-
* 1. the `?model=` anchor query param (canonical generation id)
|
|
52
|
-
* 2. a slug-like prefix of modelDescription (e.g. "bytedance/seedance-2")
|
|
53
|
-
* 3. the anchor URL path (e.g. "qwen/image-edit", "topaz-image-upscale")
|
|
54
|
-
*/
|
|
55
|
-
export declare function kieModelKeyForRecord(record: KiePricingPageRecord): string | null;
|
|
56
|
-
/**
|
|
57
|
-
* Collapse paginated pricing rows into one summary per kie `model_id`.
|
|
58
|
-
* Uses the minimum credit price when multiple tiers exist for the same model.
|
|
59
|
-
* The billing unit is kept when every priced tier shares it (e.g. "per second"
|
|
60
|
-
* for a video model), and only falls back to "varies" when tiers genuinely
|
|
61
|
-
* disagree — so a per-second model reads "From 9 credits per second" rather
|
|
62
|
-
* than dropping the unit entirely.
|
|
63
|
-
*/
|
|
64
|
-
export declare function aggregateKiePricingByModelId(records: readonly KiePricingPageRecord[]): Record<string, KieModelPricingSummary>;
|
|
65
|
-
/**
|
|
66
|
-
* Hand-verified map from our manifest model id → the kie catalog key, for cases
|
|
67
|
-
* where kie's pricing id can't be derived from ours by normalization. Each pair
|
|
68
|
-
* was checked against kie's live provider/price (see kie-pricing-api.test.ts).
|
|
69
|
-
*
|
|
70
|
-
* Suno music nodes: kie lists Suno operations under internal `ai-music-api/*`
|
|
71
|
-
* ids (every such row has provider "Suno"). Kling avatars: kie inserts a `v1`
|
|
72
|
-
* version token. Do NOT add pairs that merely look similar — e.g. seedance-2 vs
|
|
73
|
-
* seedance-2-fast or seedream-v4 vs 4.5 are different models with different prices.
|
|
74
|
-
*/
|
|
75
|
-
export declare const KIE_MODEL_ID_ALIASES: Readonly<Record<string, string>>;
|
|
76
|
-
/**
|
|
77
|
-
* Find the pricing for a manifest model id in an aggregated catalog, trying:
|
|
78
|
-
* 1. exact key, 2. curated alias, 3. a unique normalized-key match.
|
|
79
|
-
* Returns undefined when nothing matches or a normalized match is ambiguous.
|
|
80
|
-
*/
|
|
81
|
-
export declare function resolveKiePricing(catalog: Record<string, KieModelPricingSummary>, modelId: string): KieModelPricingSummary | undefined;
|
|
82
|
-
export declare function fetchKiePricingPage(pageNum: number, pageSize?: number, fetchImpl?: typeof fetch): Promise<KiePricingPageResponse>;
|
|
83
|
-
/** Fetch all pricing rows across paginated responses. */
|
|
84
|
-
export declare function fetchAllKiePricingRecords(fetchImpl?: typeof fetch): Promise<KiePricingPageRecord[]>;
|
|
85
|
-
/** Full catalog keyed by kie model id. */
|
|
86
|
-
export declare function fetchKiePricingCatalog(fetchImpl?: typeof fetch): Promise<Record<string, KieModelPricingSummary>>;
|
|
1
|
+
export * from "@nodetool-ai/model-pricing/kie-pricing-api";
|
|
87
2
|
//# sourceMappingURL=kie-pricing-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kie-pricing-api.d.ts","sourceRoot":"","sources":["../src/kie-pricing-api.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"kie-pricing-api.d.ts","sourceRoot":"","sources":["../src/kie-pricing-api.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC"}
|
package/dist/kie-pricing-api.js
CHANGED
|
@@ -1,243 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Fetch and normalize kie.ai public model pricing from the pricing page API.
|
|
3
|
-
*
|
|
4
|
-
* POST https://api.kie.ai/client/v1/model-pricing/page
|
|
5
|
-
* (same endpoint the kie.ai/pricing page uses — no API key required)
|
|
6
|
-
*/
|
|
7
|
-
export const KIE_MODEL_PRICING_PAGE_URL = "https://api.kie.ai/client/v1/model-pricing/page";
|
|
8
|
-
export const KIE_PRICING_PAGE_SIZE = 100;
|
|
9
|
-
function parsePositiveNumber(raw) {
|
|
10
|
-
if (raw == null || raw.trim() === "") {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
const n = Number.parseFloat(raw);
|
|
14
|
-
return Number.isFinite(n) && n >= 0 ? n : null;
|
|
15
|
-
}
|
|
16
|
-
/** Extract `model` query param from a kie.ai pricing row anchor URL. */
|
|
17
|
-
export function modelIdFromKiePricingAnchor(anchor) {
|
|
18
|
-
try {
|
|
19
|
-
const id = new URL(anchor).searchParams.get("model");
|
|
20
|
-
return id != null && id.trim() !== "" ? id.trim() : null;
|
|
21
|
-
}
|
|
22
|
-
catch {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
/** Base model page URL without the `model=` query (for external links). */
|
|
27
|
-
export function kiePricingPageUrlFromAnchor(anchor) {
|
|
28
|
-
try {
|
|
29
|
-
const url = new URL(anchor);
|
|
30
|
-
url.search = "";
|
|
31
|
-
url.hash = "";
|
|
32
|
-
return url.toString();
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
return undefined;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function normalizeBillingUnit(creditUnit) {
|
|
39
|
-
const trimmed = creditUnit.trim();
|
|
40
|
-
if (trimmed !== "") {
|
|
41
|
-
return trimmed.replace(/^per\s+/i, "").trim() || trimmed;
|
|
42
|
-
}
|
|
43
|
-
return "run";
|
|
44
|
-
}
|
|
45
|
-
/** A slug-like token already looks like a model id (lowercase, no spaces, has a separator). */
|
|
46
|
-
const KIE_SLUG_LIKE = /^[a-z0-9]+([._/-][a-z0-9.]+)+$/;
|
|
47
|
-
/** Lowercase, strip non-alphanumerics — collapses kie's slug variants to a comparable key. */
|
|
48
|
-
export function normalizeKieModelId(id) {
|
|
49
|
-
return id.toLowerCase().replace(/[^a-z0-9]+/g, "");
|
|
50
|
-
}
|
|
51
|
-
/** Model id taken from the modelDescription prefix, but only when it already looks like one. */
|
|
52
|
-
function modelIdFromDescription(description) {
|
|
53
|
-
const prefix = (description.split(",")[0] ?? "").trim();
|
|
54
|
-
return prefix !== "" && KIE_SLUG_LIKE.test(prefix) ? prefix : null;
|
|
55
|
-
}
|
|
56
|
-
/** Model id from the anchor URL path (kie's marketing slugs / generation ids). */
|
|
57
|
-
function modelIdFromAnchorPath(anchor) {
|
|
58
|
-
try {
|
|
59
|
-
const url = new URL(anchor);
|
|
60
|
-
if (url.hostname.includes("docs")) {
|
|
61
|
-
return null; // doc links point at API guides, not model pages
|
|
62
|
-
}
|
|
63
|
-
const segments = url.pathname.split("/").filter(Boolean);
|
|
64
|
-
if (segments.length === 0) {
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
return segments.slice(-2).join("/");
|
|
68
|
-
}
|
|
69
|
-
catch {
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Resolve the kie model identifier for a pricing row. kie encodes it in three
|
|
75
|
-
* inconsistent places, so we try, highest-confidence first:
|
|
76
|
-
* 1. the `?model=` anchor query param (canonical generation id)
|
|
77
|
-
* 2. a slug-like prefix of modelDescription (e.g. "bytedance/seedance-2")
|
|
78
|
-
* 3. the anchor URL path (e.g. "qwen/image-edit", "topaz-image-upscale")
|
|
79
|
-
*/
|
|
80
|
-
export function kieModelKeyForRecord(record) {
|
|
81
|
-
return (modelIdFromKiePricingAnchor(record.anchor ?? "") ??
|
|
82
|
-
modelIdFromDescription(record.modelDescription ?? "") ??
|
|
83
|
-
modelIdFromAnchorPath(record.anchor ?? ""));
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Collapse paginated pricing rows into one summary per kie `model_id`.
|
|
87
|
-
* Uses the minimum credit price when multiple tiers exist for the same model.
|
|
88
|
-
* The billing unit is kept when every priced tier shares it (e.g. "per second"
|
|
89
|
-
* for a video model), and only falls back to "varies" when tiers genuinely
|
|
90
|
-
* disagree — so a per-second model reads "From 9 credits per second" rather
|
|
91
|
-
* than dropping the unit entirely.
|
|
92
|
-
*/
|
|
93
|
-
export function aggregateKiePricingByModelId(records) {
|
|
94
|
-
const grouped = new Map();
|
|
95
|
-
for (const record of records) {
|
|
96
|
-
if (record.interfaceType === "chat") {
|
|
97
|
-
continue; // LLM/token pricing — not a media node we surface
|
|
98
|
-
}
|
|
99
|
-
const modelId = kieModelKeyForRecord(record);
|
|
100
|
-
if (modelId == null) {
|
|
101
|
-
continue;
|
|
102
|
-
}
|
|
103
|
-
const bucket = grouped.get(modelId);
|
|
104
|
-
if (bucket) {
|
|
105
|
-
bucket.push(record);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
grouped.set(modelId, [record]);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const out = {};
|
|
112
|
-
for (const [modelId, rows] of grouped) {
|
|
113
|
-
let minCredits = null;
|
|
114
|
-
let minUsd = null;
|
|
115
|
-
let minUnit = "";
|
|
116
|
-
let pricingUrl;
|
|
117
|
-
const units = new Set();
|
|
118
|
-
for (const row of rows) {
|
|
119
|
-
const credits = parsePositiveNumber(row.creditPrice);
|
|
120
|
-
if (credits == null) {
|
|
121
|
-
continue;
|
|
122
|
-
}
|
|
123
|
-
const unit = normalizeBillingUnit(row.creditUnit);
|
|
124
|
-
units.add(unit);
|
|
125
|
-
if (minCredits == null || credits < minCredits) {
|
|
126
|
-
minCredits = credits;
|
|
127
|
-
minUsd = parsePositiveNumber(row.usdPrice);
|
|
128
|
-
minUnit = unit;
|
|
129
|
-
}
|
|
130
|
-
pricingUrl ??= kiePricingPageUrlFromAnchor(row.anchor);
|
|
131
|
-
}
|
|
132
|
-
if (minCredits == null) {
|
|
133
|
-
continue;
|
|
134
|
-
}
|
|
135
|
-
out[modelId] = {
|
|
136
|
-
model_id: modelId,
|
|
137
|
-
unit_price: minCredits,
|
|
138
|
-
billing_unit: units.size === 1 ? minUnit : "varies",
|
|
139
|
-
currency: "credits",
|
|
140
|
-
usd_price: minUsd ?? undefined,
|
|
141
|
-
tier_count: rows.length,
|
|
142
|
-
pricing_url: pricingUrl,
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
return out;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Hand-verified map from our manifest model id → the kie catalog key, for cases
|
|
149
|
-
* where kie's pricing id can't be derived from ours by normalization. Each pair
|
|
150
|
-
* was checked against kie's live provider/price (see kie-pricing-api.test.ts).
|
|
151
|
-
*
|
|
152
|
-
* Suno music nodes: kie lists Suno operations under internal `ai-music-api/*`
|
|
153
|
-
* ids (every such row has provider "Suno"). Kling avatars: kie inserts a `v1`
|
|
154
|
-
* version token. Do NOT add pairs that merely look similar — e.g. seedance-2 vs
|
|
155
|
-
* seedance-2-fast or seedream-v4 vs 4.5 are different models with different prices.
|
|
156
|
-
*/
|
|
157
|
-
export const KIE_MODEL_ID_ALIASES = {
|
|
158
|
-
"generate-music": "ai-music-api/generate",
|
|
159
|
-
"upload-and-cover-audio": "ai-music-api/upload-and-cover-audio",
|
|
160
|
-
"upload-and-extend-audio": "ai-music-api/extend",
|
|
161
|
-
"add-instrumental": "ai-music-api/add-instrumental",
|
|
162
|
-
"get-timestamped-lyrics": "ai-music-api/timeStamped-lyrics",
|
|
163
|
-
"boost-music-style": "ai-music-api/boost-music-style",
|
|
164
|
-
"generate-cover": "ai-music-api/cover-generate",
|
|
165
|
-
"generate-mashup": "ai-music-api/mashup",
|
|
166
|
-
"convert-to-wav": "ai-music-api/convert-to-wav-format",
|
|
167
|
-
"separate-vocals": "ai-music-api/separate-vocals",
|
|
168
|
-
"generate-midi": "ai-music-api/generate-midi-from-audio",
|
|
169
|
-
"create-music-video": "ai-music-api/create-music-video",
|
|
170
|
-
"generate-sounds": "ai-music-api/sounds",
|
|
171
|
-
"kling/ai-avatar-pro": "kling/ai-avatar-v1-pro",
|
|
172
|
-
"kling/ai-avatar-standard": "kling/v1-avatar-standard",
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* Find the pricing for a manifest model id in an aggregated catalog, trying:
|
|
176
|
-
* 1. exact key, 2. curated alias, 3. a unique normalized-key match.
|
|
177
|
-
* Returns undefined when nothing matches or a normalized match is ambiguous.
|
|
178
|
-
*/
|
|
179
|
-
export function resolveKiePricing(catalog, modelId) {
|
|
180
|
-
const exact = catalog[modelId];
|
|
181
|
-
if (exact) {
|
|
182
|
-
return exact;
|
|
183
|
-
}
|
|
184
|
-
const aliased = KIE_MODEL_ID_ALIASES[modelId];
|
|
185
|
-
if (aliased && catalog[aliased]) {
|
|
186
|
-
return catalog[aliased];
|
|
187
|
-
}
|
|
188
|
-
const target = normalizeKieModelId(modelId);
|
|
189
|
-
let match;
|
|
190
|
-
let count = 0;
|
|
191
|
-
for (const [key, summary] of Object.entries(catalog)) {
|
|
192
|
-
if (normalizeKieModelId(key) === target) {
|
|
193
|
-
match = summary;
|
|
194
|
-
count += 1;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return count === 1 ? match : undefined;
|
|
198
|
-
}
|
|
199
|
-
export async function fetchKiePricingPage(pageNum, pageSize = KIE_PRICING_PAGE_SIZE, fetchImpl = fetch) {
|
|
200
|
-
const res = await fetchImpl(KIE_MODEL_PRICING_PAGE_URL, {
|
|
201
|
-
method: "POST",
|
|
202
|
-
headers: {
|
|
203
|
-
"content-type": "application/json",
|
|
204
|
-
origin: "https://kie.ai",
|
|
205
|
-
referer: "https://kie.ai/",
|
|
206
|
-
},
|
|
207
|
-
body: JSON.stringify({
|
|
208
|
-
pageNum,
|
|
209
|
-
pageSize,
|
|
210
|
-
modelDescription: "",
|
|
211
|
-
interfaceType: "",
|
|
212
|
-
}),
|
|
213
|
-
});
|
|
214
|
-
if (!res.ok) {
|
|
215
|
-
throw new Error(`KIE pricing page HTTP ${res.status}: ${await res.text().catch(() => "")}`);
|
|
216
|
-
}
|
|
217
|
-
return (await res.json());
|
|
218
|
-
}
|
|
219
|
-
/** Fetch all pricing rows across paginated responses. */
|
|
220
|
-
export async function fetchAllKiePricingRecords(fetchImpl = fetch) {
|
|
221
|
-
const records = [];
|
|
222
|
-
let pageNum = 1;
|
|
223
|
-
let totalPages = 1;
|
|
224
|
-
while (pageNum <= totalPages) {
|
|
225
|
-
const json = await fetchKiePricingPage(pageNum, KIE_PRICING_PAGE_SIZE, fetchImpl);
|
|
226
|
-
if (json.code !== undefined && json.code !== 200) {
|
|
227
|
-
throw new Error(`KIE pricing page error ${json.code}: ${json.msg ?? ""}`);
|
|
228
|
-
}
|
|
229
|
-
const page = json.data;
|
|
230
|
-
if (page?.records?.length) {
|
|
231
|
-
records.push(...page.records);
|
|
232
|
-
}
|
|
233
|
-
totalPages = page?.pages ?? pageNum;
|
|
234
|
-
pageNum += 1;
|
|
235
|
-
}
|
|
236
|
-
return records;
|
|
237
|
-
}
|
|
238
|
-
/** Full catalog keyed by kie model id. */
|
|
239
|
-
export async function fetchKiePricingCatalog(fetchImpl = fetch) {
|
|
240
|
-
const records = await fetchAllKiePricingRecords(fetchImpl);
|
|
241
|
-
return aggregateKiePricingByModelId(records);
|
|
242
|
-
}
|
|
1
|
+
export * from "@nodetool-ai/model-pricing/kie-pricing-api";
|
|
243
2
|
//# sourceMappingURL=kie-pricing-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kie-pricing-api.js","sourceRoot":"","sources":["../src/kie-pricing-api.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"kie-pricing-api.js","sourceRoot":"","sources":["../src/kie-pricing-api.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC"}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* plain module so consumers import it (and bundlers inline it) instead of
|
|
4
|
-
* reading JSON off disk at runtime.
|
|
5
|
-
*
|
|
6
|
-
* Keyed by kie `model_id` — the same id that lands on a node's provider-model
|
|
7
|
-
* property when a model is selected.
|
|
8
|
-
*/
|
|
9
|
-
export interface KieUnitPricingCatalog {
|
|
10
|
-
schemaVersion: number;
|
|
11
|
-
writtenAt: string;
|
|
12
|
-
prices?: Record<string, unknown>;
|
|
13
|
-
}
|
|
14
|
-
export declare const kieUnitPricingCatalog: KieUnitPricingCatalog;
|
|
15
|
-
export default kieUnitPricingCatalog;
|
|
1
|
+
export { default, kieUnitPricingCatalog } from "@nodetool-ai/model-pricing/kie-unit-pricing-catalog";
|
|
2
|
+
export type { KieUnitPricingCatalog } from "@nodetool-ai/model-pricing/kie-unit-pricing-catalog";
|
|
16
3
|
//# sourceMappingURL=unit-pricing-catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-pricing-catalog.d.ts","sourceRoot":"","sources":["../src/unit-pricing-catalog.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"unit-pricing-catalog.d.ts","sourceRoot":"","sources":["../src/unit-pricing-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACrG,YAAY,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC"}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* The kie.ai unit-price catalog written by `packages/kie-codegen`, exposed as a
|
|
3
|
-
* plain module so consumers import it (and bundlers inline it) instead of
|
|
4
|
-
* reading JSON off disk at runtime.
|
|
5
|
-
*
|
|
6
|
-
* Keyed by kie `model_id` — the same id that lands on a node's provider-model
|
|
7
|
-
* property when a model is selected.
|
|
8
|
-
*/
|
|
9
|
-
import catalog from "./generated/kie-unit-pricing.json" with { type: "json" };
|
|
10
|
-
export const kieUnitPricingCatalog = catalog;
|
|
11
|
-
export default kieUnitPricingCatalog;
|
|
1
|
+
export { default, kieUnitPricingCatalog } from "@nodetool-ai/model-pricing/kie-unit-pricing-catalog";
|
|
12
2
|
//# sourceMappingURL=unit-pricing-catalog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-pricing-catalog.js","sourceRoot":"","sources":["../src/unit-pricing-catalog.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"unit-pricing-catalog.js","sourceRoot":"","sources":["../src/unit-pricing-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22.0.0"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.8.
|
|
7
|
+
"version": "0.8.4-a13.1",
|
|
8
8
|
"description": "Kie.ai model nodes for the TS workflow runner",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
"lint": "node ../../scripts/run-tsc.mjs --noEmit"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@nodetool-ai/config": "0.8.
|
|
18
|
-
"@nodetool-ai/node-sdk": "0.8.
|
|
19
|
-
"@nodetool-ai/runtime": "0.8.
|
|
17
|
+
"@nodetool-ai/config": "0.8.4-a13.1",
|
|
18
|
+
"@nodetool-ai/node-sdk": "0.8.4-a13.1",
|
|
19
|
+
"@nodetool-ai/runtime": "0.8.4-a13.1",
|
|
20
|
+
"@nodetool-ai/model-pricing": "0.8.4-a13.1"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"@types/node": "^22.0.0",
|