@runapi.ai/kling 0.6.0 → 0.7.0

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/index.js CHANGED
@@ -20,28 +20,77 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- AuthenticationError: () => import_core8.AuthenticationError,
24
- InsufficientCreditsError: () => import_core8.InsufficientCreditsError,
23
+ AuthenticationError: () => import_core11.AuthenticationError,
24
+ InsufficientCreditsError: () => import_core11.InsufficientCreditsError,
25
25
  KlingClient: () => KlingClient,
26
- NetworkError: () => import_core8.NetworkError,
27
- NotFoundError: () => import_core8.NotFoundError,
28
- RateLimitError: () => import_core8.RateLimitError,
29
- RunApiError: () => import_core8.RunApiError,
30
- ServiceUnavailableError: () => import_core8.ServiceUnavailableError,
31
- TaskFailedError: () => import_core8.TaskFailedError,
32
- TaskTimeoutError: () => import_core8.TaskTimeoutError,
33
- TimeoutError: () => import_core8.TimeoutError,
34
- ValidationError: () => import_core8.ValidationError
26
+ NetworkError: () => import_core11.NetworkError,
27
+ NotFoundError: () => import_core11.NotFoundError,
28
+ RateLimitError: () => import_core11.RateLimitError,
29
+ RunApiError: () => import_core11.RunApiError,
30
+ ServiceUnavailableError: () => import_core11.ServiceUnavailableError,
31
+ TaskFailedError: () => import_core11.TaskFailedError,
32
+ TaskTimeoutError: () => import_core11.TaskTimeoutError,
33
+ TimeoutError: () => import_core11.TimeoutError,
34
+ ValidationError: () => import_core11.ValidationError
35
35
  });
36
36
  module.exports = __toCommonJS(index_exports);
37
37
 
38
38
  // src/client.ts
39
- var import_core7 = require("@runapi.ai/core");
39
+ var import_core10 = require("@runapi.ai/core");
40
40
 
41
- // src/resources/text-to-video.ts
41
+ // src/resources/text-to-image.ts
42
42
  var import_core = require("@runapi.ai/core");
43
43
  var import_internal = require("@runapi.ai/core/internal");
44
- var ENDPOINT = "/api/v1/kling/text_to_video";
44
+ var ENDPOINT = "/api/v1/kling/text_to_image";
45
+ var TextToImage = class {
46
+ constructor(http) {
47
+ this.http = http;
48
+ }
49
+ http;
50
+ /**
51
+ * Generate an image from a text prompt and wait until complete.
52
+ * @param params Text-to-image parameters.
53
+ * @param options Per-request and polling overrides.
54
+ * @returns The completed task with images.
55
+ */
56
+ async run(params, options) {
57
+ const { id } = await this.create(params, options);
58
+ const response = await (0, import_internal.pollUntilComplete)(() => this.get(id, options), {
59
+ maxWaitMs: options?.maxWaitMs,
60
+ pollIntervalMs: options?.pollIntervalMs
61
+ });
62
+ return response;
63
+ }
64
+ /**
65
+ * Create a text-to-image task; returns immediately with a task id.
66
+ * @param params Text-to-image parameters.
67
+ * @param options Per-request overrides.
68
+ * @returns The task creation result with id.
69
+ */
70
+ async create(params, options) {
71
+ const body = (0, import_core.compactParams)(params);
72
+ return this.http.request("POST", ENDPOINT, {
73
+ body,
74
+ ...options
75
+ });
76
+ }
77
+ /**
78
+ * Fetch the current status of a text-to-image task.
79
+ * @param id The task id.
80
+ * @param options Per-request overrides.
81
+ * @returns The current text-to-image task status.
82
+ */
83
+ async get(id, options) {
84
+ return this.http.request("GET", `${ENDPOINT}/${id}`, {
85
+ ...options
86
+ });
87
+ }
88
+ };
89
+
90
+ // src/resources/text-to-video.ts
91
+ var import_core2 = require("@runapi.ai/core");
92
+ var import_internal2 = require("@runapi.ai/core/internal");
93
+ var ENDPOINT2 = "/api/v1/kling/text_to_video";
45
94
  var TextToVideo = class {
46
95
  constructor(http) {
47
96
  this.http = http;
@@ -55,7 +104,7 @@ var TextToVideo = class {
55
104
  */
56
105
  async run(params, options) {
57
106
  const { id } = await this.create(params, options);
58
- const response = await (0, import_internal.pollUntilComplete)(() => this.get(id, options), {
107
+ const response = await (0, import_internal2.pollUntilComplete)(() => this.get(id, options), {
59
108
  maxWaitMs: options?.maxWaitMs,
60
109
  pollIntervalMs: options?.pollIntervalMs
61
110
  });
@@ -68,8 +117,8 @@ var TextToVideo = class {
68
117
  * @returns The task creation result with id.
69
118
  */
70
119
  async create(params, options) {
71
- const body = (0, import_core.compactParams)(params);
72
- return this.http.request("POST", ENDPOINT, {
120
+ const body = (0, import_core2.compactParams)(params);
121
+ return this.http.request("POST", ENDPOINT2, {
73
122
  body,
74
123
  ...options
75
124
  });
@@ -81,16 +130,16 @@ var TextToVideo = class {
81
130
  * @returns The current text-to-video task status.
82
131
  */
83
132
  async get(id, options) {
84
- return this.http.request("GET", `${ENDPOINT}/${id}`, {
133
+ return this.http.request("GET", `${ENDPOINT2}/${id}`, {
85
134
  ...options
86
135
  });
87
136
  }
88
137
  };
89
138
 
90
139
  // src/resources/image-to-video.ts
91
- var import_core2 = require("@runapi.ai/core");
92
- var import_internal2 = require("@runapi.ai/core/internal");
93
- var ENDPOINT2 = "/api/v1/kling/image_to_video";
140
+ var import_core3 = require("@runapi.ai/core");
141
+ var import_internal3 = require("@runapi.ai/core/internal");
142
+ var ENDPOINT3 = "/api/v1/kling/image_to_video";
94
143
  var ImageToVideo = class {
95
144
  constructor(http) {
96
145
  this.http = http;
@@ -104,7 +153,7 @@ var ImageToVideo = class {
104
153
  */
105
154
  async run(params, options) {
106
155
  const { id } = await this.create(params, options);
107
- const response = await (0, import_internal2.pollUntilComplete)(() => this.get(id, options), {
156
+ const response = await (0, import_internal3.pollUntilComplete)(() => this.get(id, options), {
108
157
  maxWaitMs: options?.maxWaitMs,
109
158
  pollIntervalMs: options?.pollIntervalMs
110
159
  });
@@ -117,8 +166,8 @@ var ImageToVideo = class {
117
166
  * @returns The task creation result with id.
118
167
  */
119
168
  async create(params, options) {
120
- const body = (0, import_core2.compactParams)(params);
121
- return this.http.request("POST", ENDPOINT2, {
169
+ const body = (0, import_core3.compactParams)(params);
170
+ return this.http.request("POST", ENDPOINT3, {
122
171
  body,
123
172
  ...options
124
173
  });
@@ -130,16 +179,16 @@ var ImageToVideo = class {
130
179
  * @returns The current image-to-video task status.
131
180
  */
132
181
  async get(id, options) {
133
- return this.http.request("GET", `${ENDPOINT2}/${id}`, {
182
+ return this.http.request("GET", `${ENDPOINT3}/${id}`, {
134
183
  ...options
135
184
  });
136
185
  }
137
186
  };
138
187
 
139
188
  // src/resources/ai-avatar.ts
140
- var import_core3 = require("@runapi.ai/core");
141
- var import_internal3 = require("@runapi.ai/core/internal");
142
- var ENDPOINT3 = "/api/v1/kling/ai_avatar";
189
+ var import_core4 = require("@runapi.ai/core");
190
+ var import_internal4 = require("@runapi.ai/core/internal");
191
+ var ENDPOINT4 = "/api/v1/kling/ai_avatar";
143
192
  var AiAvatar = class {
144
193
  constructor(http) {
145
194
  this.http = http;
@@ -153,7 +202,7 @@ var AiAvatar = class {
153
202
  */
154
203
  async run(params, options) {
155
204
  const { id } = await this.create(params, options);
156
- const response = await (0, import_internal3.pollUntilComplete)(() => this.get(id, options), {
205
+ const response = await (0, import_internal4.pollUntilComplete)(() => this.get(id, options), {
157
206
  maxWaitMs: options?.maxWaitMs,
158
207
  pollIntervalMs: options?.pollIntervalMs
159
208
  });
@@ -166,8 +215,8 @@ var AiAvatar = class {
166
215
  * @returns The task creation result with id.
167
216
  */
168
217
  async create(params, options) {
169
- const body = (0, import_core3.compactParams)(params);
170
- return this.http.request("POST", ENDPOINT3, {
218
+ const body = (0, import_core4.compactParams)(params);
219
+ return this.http.request("POST", ENDPOINT4, {
171
220
  body,
172
221
  ...options
173
222
  });
@@ -179,16 +228,16 @@ var AiAvatar = class {
179
228
  * @returns The current AI avatar task status.
180
229
  */
181
230
  async get(id, options) {
182
- return this.http.request("GET", `${ENDPOINT3}/${id}`, {
231
+ return this.http.request("GET", `${ENDPOINT4}/${id}`, {
183
232
  ...options
184
233
  });
185
234
  }
186
235
  };
187
236
 
188
237
  // src/resources/motion-control.ts
189
- var import_core4 = require("@runapi.ai/core");
190
- var import_internal4 = require("@runapi.ai/core/internal");
191
- var ENDPOINT4 = "/api/v1/kling/motion_control";
238
+ var import_core5 = require("@runapi.ai/core");
239
+ var import_internal5 = require("@runapi.ai/core/internal");
240
+ var ENDPOINT5 = "/api/v1/kling/motion_control";
192
241
  var MotionControl = class {
193
242
  constructor(http) {
194
243
  this.http = http;
@@ -202,7 +251,7 @@ var MotionControl = class {
202
251
  */
203
252
  async run(params, options) {
204
253
  const { id } = await this.create(params, options);
205
- const response = await (0, import_internal4.pollUntilComplete)(() => this.get(id, options), {
254
+ const response = await (0, import_internal5.pollUntilComplete)(() => this.get(id, options), {
206
255
  maxWaitMs: options?.maxWaitMs,
207
256
  pollIntervalMs: options?.pollIntervalMs
208
257
  });
@@ -215,8 +264,8 @@ var MotionControl = class {
215
264
  * @returns The task creation result with id.
216
265
  */
217
266
  async create(params, options) {
218
- const body = (0, import_core4.compactParams)(params);
219
- return this.http.request("POST", ENDPOINT4, {
267
+ const body = (0, import_core5.compactParams)(params);
268
+ return this.http.request("POST", ENDPOINT5, {
220
269
  body,
221
270
  ...options
222
271
  });
@@ -228,16 +277,16 @@ var MotionControl = class {
228
277
  * @returns The current motion control task status.
229
278
  */
230
279
  async get(id, options) {
231
- return this.http.request("GET", `${ENDPOINT4}/${id}`, {
280
+ return this.http.request("GET", `${ENDPOINT5}/${id}`, {
232
281
  ...options
233
282
  });
234
283
  }
235
284
  };
236
285
 
237
286
  // src/resources/extend-video.ts
238
- var import_core5 = require("@runapi.ai/core");
239
- var import_internal5 = require("@runapi.ai/core/internal");
240
- var ENDPOINT5 = "/api/v1/kling/extend_video";
287
+ var import_core6 = require("@runapi.ai/core");
288
+ var import_internal6 = require("@runapi.ai/core/internal");
289
+ var ENDPOINT6 = "/api/v1/kling/extend_video";
241
290
  var ExtendVideo = class {
242
291
  constructor(http) {
243
292
  this.http = http;
@@ -245,24 +294,24 @@ var ExtendVideo = class {
245
294
  http;
246
295
  async run(params, options) {
247
296
  const { id } = await this.create(params, options);
248
- return (0, import_internal5.pollUntilComplete)(() => this.get(id, options), {
297
+ return (0, import_internal6.pollUntilComplete)(() => this.get(id, options), {
249
298
  maxWaitMs: options?.maxWaitMs,
250
299
  pollIntervalMs: options?.pollIntervalMs
251
300
  });
252
301
  }
253
302
  async create(params, options) {
254
- const body = (0, import_core5.compactParams)(params);
255
- return this.http.request("POST", ENDPOINT5, { body, ...options });
303
+ const body = (0, import_core6.compactParams)(params);
304
+ return this.http.request("POST", ENDPOINT6, { body, ...options });
256
305
  }
257
306
  async get(id, options) {
258
- return this.http.request("GET", `${ENDPOINT5}/${id}`, { ...options });
307
+ return this.http.request("GET", `${ENDPOINT6}/${id}`, { ...options });
259
308
  }
260
309
  };
261
310
 
262
311
  // src/resources/edit-video.ts
263
- var import_core6 = require("@runapi.ai/core");
264
- var import_internal6 = require("@runapi.ai/core/internal");
265
- var ENDPOINT6 = "/api/v1/kling/edit_video";
312
+ var import_core7 = require("@runapi.ai/core");
313
+ var import_internal7 = require("@runapi.ai/core/internal");
314
+ var ENDPOINT7 = "/api/v1/kling/edit_video";
266
315
  var EditVideo = class {
267
316
  constructor(http) {
268
317
  this.http = http;
@@ -270,24 +319,73 @@ var EditVideo = class {
270
319
  http;
271
320
  async run(params, options) {
272
321
  const { id } = await this.create(params, options);
273
- return (0, import_internal6.pollUntilComplete)(() => this.get(id, options), {
322
+ return (0, import_internal7.pollUntilComplete)(() => this.get(id, options), {
274
323
  maxWaitMs: options?.maxWaitMs,
275
324
  pollIntervalMs: options?.pollIntervalMs
276
325
  });
277
326
  }
278
327
  async create(params, options) {
279
- const body = (0, import_core6.compactParams)(params);
280
- return this.http.request("POST", ENDPOINT6, { body, ...options });
328
+ const body = (0, import_core7.compactParams)(params);
329
+ return this.http.request("POST", ENDPOINT7, { body, ...options });
281
330
  }
282
331
  async get(id, options) {
283
- return this.http.request("GET", `${ENDPOINT6}/${id}`, { ...options });
332
+ return this.http.request("GET", `${ENDPOINT7}/${id}`, { ...options });
333
+ }
334
+ };
335
+
336
+ // src/resources/keyframe-to-video.ts
337
+ var import_core8 = require("@runapi.ai/core");
338
+ var import_internal8 = require("@runapi.ai/core/internal");
339
+ var ENDPOINT8 = "/api/v1/kling/keyframe_to_video";
340
+ var KeyframeToVideo = class {
341
+ constructor(http) {
342
+ this.http = http;
343
+ }
344
+ http;
345
+ async run(params, options) {
346
+ const { id } = await this.create(params, options);
347
+ return (0, import_internal8.pollUntilComplete)(() => this.get(id, options), {
348
+ maxWaitMs: options?.maxWaitMs,
349
+ pollIntervalMs: options?.pollIntervalMs
350
+ });
351
+ }
352
+ async create(params, options) {
353
+ return this.http.request("POST", ENDPOINT8, { body: (0, import_core8.compactParams)(params), ...options });
354
+ }
355
+ async get(id, options) {
356
+ return this.http.request("GET", `${ENDPOINT8}/${id}`, { ...options });
357
+ }
358
+ };
359
+
360
+ // src/resources/reference-to-video.ts
361
+ var import_core9 = require("@runapi.ai/core");
362
+ var import_internal9 = require("@runapi.ai/core/internal");
363
+ var ENDPOINT9 = "/api/v1/kling/reference_to_video";
364
+ var ReferenceToVideo = class {
365
+ constructor(http) {
366
+ this.http = http;
367
+ }
368
+ http;
369
+ async run(params, options) {
370
+ const { id } = await this.create(params, options);
371
+ return (0, import_internal9.pollUntilComplete)(() => this.get(id, options), {
372
+ maxWaitMs: options?.maxWaitMs,
373
+ pollIntervalMs: options?.pollIntervalMs
374
+ });
375
+ }
376
+ async create(params, options) {
377
+ return this.http.request("POST", ENDPOINT9, { body: (0, import_core9.compactParams)(params), ...options });
378
+ }
379
+ async get(id, options) {
380
+ return this.http.request("GET", `${ENDPOINT9}/${id}`, { ...options });
284
381
  }
285
382
  };
286
383
 
287
384
  // src/client.ts
288
- var KlingClient = class extends import_core7.BaseClient {
385
+ var KlingClient = class extends import_core10.BaseClient {
289
386
  /** Text-to-video generation with multi-shot, sound, and Kling elements support on kling-3.0. */
290
387
  textToVideo;
388
+ textToImage;
291
389
  /** Image-to-video animation from a first-frame image guided by a text prompt. */
292
390
  imageToVideo;
293
391
  /** AI avatar lip-sync: animate a face image to match an audio track. */
@@ -297,19 +395,24 @@ var KlingClient = class extends import_core7.BaseClient {
297
395
  extendVideo;
298
396
  /** Edit a source video with the selected Kling v3 Omni model. */
299
397
  editVideo;
398
+ keyframeToVideo;
399
+ referenceToVideo;
300
400
  constructor(options = {}) {
301
401
  super(options);
402
+ this.textToImage = new TextToImage(this.http);
302
403
  this.textToVideo = new TextToVideo(this.http);
303
404
  this.imageToVideo = new ImageToVideo(this.http);
304
405
  this.aiAvatar = new AiAvatar(this.http);
305
406
  this.motionControl = new MotionControl(this.http);
306
407
  this.extendVideo = new ExtendVideo(this.http);
307
408
  this.editVideo = new EditVideo(this.http);
409
+ this.keyframeToVideo = new KeyframeToVideo(this.http);
410
+ this.referenceToVideo = new ReferenceToVideo(this.http);
308
411
  }
309
412
  };
310
413
 
311
414
  // src/index.ts
312
- var import_core8 = require("@runapi.ai/core");
415
+ var import_core11 = require("@runapi.ai/core");
313
416
  // Annotate the CommonJS export names for ESM import in node:
314
417
  0 && (module.exports = {
315
418
  AuthenticationError,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/client.ts","../src/resources/text-to-video.ts","../src/resources/image-to-video.ts","../src/resources/ai-avatar.ts","../src/resources/motion-control.ts","../src/resources/extend-video.ts","../src/resources/edit-video.ts"],"sourcesContent":["export { KlingClient } from './client';\nexport * from './types';\n\nexport {\n RunApiError,\n AuthenticationError,\n InsufficientCreditsError,\n NotFoundError,\n ValidationError,\n RateLimitError,\n ServiceUnavailableError,\n NetworkError,\n TimeoutError,\n TaskTimeoutError,\n TaskFailedError,\n} from '@runapi.ai/core';\n","import { BaseClient, type ClientOptions } from '@runapi.ai/core';\nimport { TextToVideo } from './resources/text-to-video';\nimport { ImageToVideo } from './resources/image-to-video';\nimport { AiAvatar } from './resources/ai-avatar';\nimport { MotionControl } from './resources/motion-control';\nimport { ExtendVideo } from './resources/extend-video';\nimport { EditVideo } from './resources/edit-video';\n\n/**\n * Kling video generation, AI avatar lip-sync, and motion control API client.\n *\n * @example\n * ```typescript\n * const client = new KlingClient({ apiKey: 'your-api-key' });\n *\n * const result = await client.textToVideo.run({\n * model: 'kling-3.0',\n * prompt: 'A cat walking through a garden',\n * });\n * ```\n */\nexport class KlingClient extends BaseClient {\n /** Text-to-video generation with multi-shot, sound, and Kling elements support on kling-3.0. */\n public readonly textToVideo: TextToVideo;\n /** Image-to-video animation from a first-frame image guided by a text prompt. */\n public readonly imageToVideo: ImageToVideo;\n /** AI avatar lip-sync: animate a face image to match an audio track. */\n public readonly aiAvatar: AiAvatar;\n /** Transfer motion from a reference video onto a subject image. */\n public readonly motionControl: MotionControl;\n public readonly extendVideo: ExtendVideo;\n /** Edit a source video with the selected Kling v3 Omni model. */\n public readonly editVideo: EditVideo;\n\n constructor(options: ClientOptions = {}) {\n super(options);\n this.textToVideo = new TextToVideo(this.http);\n this.imageToVideo = new ImageToVideo(this.http);\n this.aiAvatar = new AiAvatar(this.http);\n this.motionControl = new MotionControl(this.http);\n this.extendVideo = new ExtendVideo(this.http);\n this.editVideo = new EditVideo(this.http);\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type {\n CompletedTextToVideoResponse,\n TextToVideoParams,\n TextToVideoResponse,\n TaskCreateResponse,\n} from '../types';\n\nconst ENDPOINT = '/api/v1/kling/text_to_video';\n\n/** Generate video from text prompts. Supports multi-shot, sound, first/last frame images, and Kling elements on kling-3.0; negative prompts and cfg_scale on V2.x models. */\nexport class TextToVideo {\n constructor(private readonly http: HttpClient) {}\n\n /**\n * Generate a video from a text prompt and wait until complete.\n * @param params Text-to-video parameters.\n * @param options Per-request and polling overrides.\n * @returns The completed task with videos.\n */\n async run(params: TextToVideoParams, options?: RequestOptions & PollingOptions): Promise<CompletedTextToVideoResponse> {\n const { id } = await this.create(params, options);\n const response = await pollUntilComplete<TextToVideoResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n return response as CompletedTextToVideoResponse;\n }\n\n /**\n * Create a text-to-video task; returns immediately with a task id.\n * @param params Text-to-video parameters.\n * @param options Per-request overrides.\n * @returns The task creation result with id.\n */\n async create(params: TextToVideoParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, {\n body,\n ...options,\n });\n }\n\n /**\n * Fetch the current status of a text-to-video task.\n * @param id The task id.\n * @param options Per-request overrides.\n * @returns The current text-to-video task status.\n */\n async get(id: string, options?: RequestOptions): Promise<TextToVideoResponse> {\n return this.http.request<TextToVideoResponse>('GET', `${ENDPOINT}/${id}`, {\n ...options,\n });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type {\n CompletedImageToVideoResponse,\n ImageToVideoParams,\n ImageToVideoResponse,\n TaskCreateResponse,\n} from '../types';\n\nconst ENDPOINT = '/api/v1/kling/image_to_video';\n\n/** Animate a still image into video, guided by a text prompt and first-frame image. */\nexport class ImageToVideo {\n constructor(private readonly http: HttpClient) {}\n\n /**\n * Generate a video from an input image and wait until complete.\n * @param params Image-to-video parameters.\n * @param options Per-request and polling overrides.\n * @returns The completed task with videos.\n */\n async run(params: ImageToVideoParams, options?: RequestOptions & PollingOptions): Promise<CompletedImageToVideoResponse> {\n const { id } = await this.create(params, options);\n const response = await pollUntilComplete<ImageToVideoResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n return response as CompletedImageToVideoResponse;\n }\n\n /**\n * Create an image-to-video task; returns immediately with a task id.\n * @param params Image-to-video parameters.\n * @param options Per-request overrides.\n * @returns The task creation result with id.\n */\n async create(params: ImageToVideoParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, {\n body,\n ...options,\n });\n }\n\n /**\n * Fetch the current status of an image-to-video task.\n * @param id The task id.\n * @param options Per-request overrides.\n * @returns The current image-to-video task status.\n */\n async get(id: string, options?: RequestOptions): Promise<ImageToVideoResponse> {\n return this.http.request<ImageToVideoResponse>('GET', `${ENDPOINT}/${id}`, {\n ...options,\n });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type {\n CompletedAiAvatarResponse,\n AiAvatarParams,\n AiAvatarResponse,\n TaskCreateResponse,\n} from '../types';\n\nconst ENDPOINT = '/api/v1/kling/ai_avatar';\n\n/** Lip-sync a face image to an audio track, producing a talking-head video. */\nexport class AiAvatar {\n constructor(private readonly http: HttpClient) {}\n\n /**\n * Generate an AI avatar video and wait until complete.\n * @param params AI avatar parameters.\n * @param options Per-request and polling overrides.\n * @returns The completed task with videos.\n */\n async run(params: AiAvatarParams, options?: RequestOptions & PollingOptions): Promise<CompletedAiAvatarResponse> {\n const { id } = await this.create(params, options);\n const response = await pollUntilComplete<AiAvatarResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n return response as CompletedAiAvatarResponse;\n }\n\n /**\n * Create an AI avatar generation task; returns immediately with a task id.\n * @param params AI avatar parameters.\n * @param options Per-request overrides.\n * @returns The task creation result with id.\n */\n async create(params: AiAvatarParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, {\n body,\n ...options,\n });\n }\n\n /**\n * Fetch the current status of an AI avatar task.\n * @param id The task id.\n * @param options Per-request overrides.\n * @returns The current AI avatar task status.\n */\n async get(id: string, options?: RequestOptions): Promise<AiAvatarResponse> {\n return this.http.request<AiAvatarResponse>('GET', `${ENDPOINT}/${id}`, {\n ...options,\n });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type {\n CompletedMotionControlResponse,\n MotionControlParams,\n MotionControlResponse,\n TaskCreateResponse,\n} from '../types';\n\nconst ENDPOINT = '/api/v1/kling/motion_control';\n\n/** Transfer motion from a reference video onto a subject image, preserving the subject's appearance. */\nexport class MotionControl {\n constructor(private readonly http: HttpClient) {}\n\n /**\n * Generate a video with motion transfer from a reference video and wait until complete.\n * @param params Motion control parameters.\n * @param options Per-request and polling overrides.\n * @returns The completed task with videos.\n */\n async run(params: MotionControlParams, options?: RequestOptions & PollingOptions): Promise<CompletedMotionControlResponse> {\n const { id } = await this.create(params, options);\n const response = await pollUntilComplete<MotionControlResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n return response as CompletedMotionControlResponse;\n }\n\n /**\n * Create a motion control generation task; returns immediately with a task id.\n * @param params Motion control parameters.\n * @param options Per-request overrides.\n * @returns The task creation result with id.\n */\n async create(params: MotionControlParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, {\n body,\n ...options,\n });\n }\n\n /**\n * Fetch the current status of a motion control task.\n * @param id The task id.\n * @param options Per-request overrides.\n * @returns The current motion control task status.\n */\n async get(id: string, options?: RequestOptions): Promise<MotionControlResponse> {\n return this.http.request<MotionControlResponse>('GET', `${ENDPOINT}/${id}`, {\n ...options,\n });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type { KlingExtendVideoParams, TextToVideoResponse, TaskCreateResponse } from '../types';\n\nconst ENDPOINT = '/api/v1/kling/extend_video';\n\nexport class ExtendVideo {\n constructor(private readonly http: HttpClient) {}\n\n async run(params: KlingExtendVideoParams, options?: RequestOptions & PollingOptions): Promise<TextToVideoResponse> {\n const { id } = await this.create(params, options);\n return pollUntilComplete<TextToVideoResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n }\n\n async create(params: KlingExtendVideoParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, { body, ...options });\n }\n\n async get(id: string, options?: RequestOptions): Promise<TextToVideoResponse> {\n return this.http.request<TextToVideoResponse>('GET', `${ENDPOINT}/${id}`, { ...options });\n }\n}\n","import type { HttpClient, PollingOptions, RequestOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type { EditVideoParams, TaskCreateResponse, TextToVideoResponse } from '../types';\n\nconst ENDPOINT = '/api/v1/kling/edit_video';\n\nexport class EditVideo {\n constructor(private readonly http: HttpClient) {}\n\n async run(params: EditVideoParams, options?: RequestOptions & PollingOptions): Promise<TextToVideoResponse> {\n const { id } = await this.create(params, options);\n return pollUntilComplete<TextToVideoResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n }\n\n async create(params: EditVideoParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, { body, ...options });\n }\n\n async get(id: string, options?: RequestOptions): Promise<TextToVideoResponse> {\n return this.http.request<TextToVideoResponse>('GET', `${ENDPOINT}/${id}`, { ...options });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,eAA+C;;;ACC/C,kBAA8B;AAC9B,sBAAkC;AAQlC,IAAM,WAAW;AAGV,IAAM,cAAN,MAAkB;AAAA,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AAK,cAAc,IAAI,YAAY,KAAK,IAAI;AAC5C,SAAK,eAAe,IAAI,aAAa,KAAK,IAAI;AAC9C,SAAK,WAAW,IAAI,SAAS,KAAK,IAAI;AACtC,SAAK,gBAAgB,IAAI,cAAc,KAAK,IAAI;AAChD,SAAK,cAAc,IAAI,YAAY,KAAK,IAAI;AAC5C,SAAK,YAAY,IAAI,UAAU,KAAK,IAAI;AAAA,EAC1C;AACF;;;ADxCA,IAAAC,eAYO;","names":["import_core","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/client.ts","../src/resources/text-to-image.ts","../src/resources/text-to-video.ts","../src/resources/image-to-video.ts","../src/resources/ai-avatar.ts","../src/resources/motion-control.ts","../src/resources/extend-video.ts","../src/resources/edit-video.ts","../src/resources/keyframe-to-video.ts","../src/resources/reference-to-video.ts"],"sourcesContent":["export { KlingClient } from './client';\nexport * from './types';\n\nexport {\n RunApiError,\n AuthenticationError,\n InsufficientCreditsError,\n NotFoundError,\n ValidationError,\n RateLimitError,\n ServiceUnavailableError,\n NetworkError,\n TimeoutError,\n TaskTimeoutError,\n TaskFailedError,\n} from '@runapi.ai/core';\n","import { BaseClient, type ClientOptions } from '@runapi.ai/core';\nimport { TextToImage } from './resources/text-to-image';\nimport { TextToVideo } from './resources/text-to-video';\nimport { ImageToVideo } from './resources/image-to-video';\nimport { AiAvatar } from './resources/ai-avatar';\nimport { MotionControl } from './resources/motion-control';\nimport { ExtendVideo } from './resources/extend-video';\nimport { EditVideo } from './resources/edit-video';\nimport { KeyframeToVideo } from './resources/keyframe-to-video';\nimport { ReferenceToVideo } from './resources/reference-to-video';\n\n/**\n * Kling video generation, AI avatar lip-sync, and motion control API client.\n *\n * @example\n * ```typescript\n * const client = new KlingClient({ apiKey: 'your-api-key' });\n *\n * const result = await client.textToVideo.run({\n * model: 'kling-3.0',\n * prompt: 'A cat walking through a garden',\n * });\n * ```\n */\nexport class KlingClient extends BaseClient {\n /** Text-to-video generation with multi-shot, sound, and Kling elements support on kling-3.0. */\n public readonly textToVideo: TextToVideo;\n public readonly textToImage: TextToImage;\n /** Image-to-video animation from a first-frame image guided by a text prompt. */\n public readonly imageToVideo: ImageToVideo;\n /** AI avatar lip-sync: animate a face image to match an audio track. */\n public readonly aiAvatar: AiAvatar;\n /** Transfer motion from a reference video onto a subject image. */\n public readonly motionControl: MotionControl;\n public readonly extendVideo: ExtendVideo;\n /** Edit a source video with the selected Kling v3 Omni model. */\n public readonly editVideo: EditVideo;\n public readonly keyframeToVideo: KeyframeToVideo;\n public readonly referenceToVideo: ReferenceToVideo;\n\n constructor(options: ClientOptions = {}) {\n super(options);\n this.textToImage = new TextToImage(this.http);\n this.textToVideo = new TextToVideo(this.http);\n this.imageToVideo = new ImageToVideo(this.http);\n this.aiAvatar = new AiAvatar(this.http);\n this.motionControl = new MotionControl(this.http);\n this.extendVideo = new ExtendVideo(this.http);\n this.editVideo = new EditVideo(this.http);\n this.keyframeToVideo = new KeyframeToVideo(this.http);\n this.referenceToVideo = new ReferenceToVideo(this.http);\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type {\n CompletedTextToImageResponse,\n TextToImageParams,\n TextToImageResponse,\n TaskCreateResponse,\n} from '../types';\n\nconst ENDPOINT = '/api/v1/kling/text_to_image';\n\n/** Generate ordered standard, series, ecommerce, or webpage images. */\nexport class TextToImage {\n constructor(private readonly http: HttpClient) {}\n\n /**\n * Generate an image from a text prompt and wait until complete.\n * @param params Text-to-image parameters.\n * @param options Per-request and polling overrides.\n * @returns The completed task with images.\n */\n async run(params: TextToImageParams, options?: RequestOptions & PollingOptions): Promise<CompletedTextToImageResponse> {\n const { id } = await this.create(params, options);\n const response = await pollUntilComplete<TextToImageResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n return response as CompletedTextToImageResponse;\n }\n\n /**\n * Create a text-to-image task; returns immediately with a task id.\n * @param params Text-to-image parameters.\n * @param options Per-request overrides.\n * @returns The task creation result with id.\n */\n async create(params: TextToImageParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, {\n body,\n ...options,\n });\n }\n\n /**\n * Fetch the current status of a text-to-image task.\n * @param id The task id.\n * @param options Per-request overrides.\n * @returns The current text-to-image task status.\n */\n async get(id: string, options?: RequestOptions): Promise<TextToImageResponse> {\n return this.http.request<TextToImageResponse>('GET', `${ENDPOINT}/${id}`, {\n ...options,\n });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type {\n CompletedTextToVideoResponse,\n TextToVideoParams,\n TextToVideoResponse,\n TaskCreateResponse,\n} from '../types';\n\nconst ENDPOINT = '/api/v1/kling/text_to_video';\n\n/** Generate video from text prompts. Supports multi-shot, sound, first/last frame images, and Kling elements on kling-3.0; negative prompts and cfg_scale on V2.x models. */\nexport class TextToVideo {\n constructor(private readonly http: HttpClient) {}\n\n /**\n * Generate a video from a text prompt and wait until complete.\n * @param params Text-to-video parameters.\n * @param options Per-request and polling overrides.\n * @returns The completed task with videos.\n */\n async run(params: TextToVideoParams, options?: RequestOptions & PollingOptions): Promise<CompletedTextToVideoResponse> {\n const { id } = await this.create(params, options);\n const response = await pollUntilComplete<TextToVideoResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n return response as CompletedTextToVideoResponse;\n }\n\n /**\n * Create a text-to-video task; returns immediately with a task id.\n * @param params Text-to-video parameters.\n * @param options Per-request overrides.\n * @returns The task creation result with id.\n */\n async create(params: TextToVideoParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, {\n body,\n ...options,\n });\n }\n\n /**\n * Fetch the current status of a text-to-video task.\n * @param id The task id.\n * @param options Per-request overrides.\n * @returns The current text-to-video task status.\n */\n async get(id: string, options?: RequestOptions): Promise<TextToVideoResponse> {\n return this.http.request<TextToVideoResponse>('GET', `${ENDPOINT}/${id}`, {\n ...options,\n });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type {\n CompletedImageToVideoResponse,\n ImageToVideoParams,\n ImageToVideoResponse,\n TaskCreateResponse,\n} from '../types';\n\nconst ENDPOINT = '/api/v1/kling/image_to_video';\n\n/** Animate a still image into video, guided by a text prompt and first-frame image. */\nexport class ImageToVideo {\n constructor(private readonly http: HttpClient) {}\n\n /**\n * Generate a video from an input image and wait until complete.\n * @param params Image-to-video parameters.\n * @param options Per-request and polling overrides.\n * @returns The completed task with videos.\n */\n async run(params: ImageToVideoParams, options?: RequestOptions & PollingOptions): Promise<CompletedImageToVideoResponse> {\n const { id } = await this.create(params, options);\n const response = await pollUntilComplete<ImageToVideoResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n return response as CompletedImageToVideoResponse;\n }\n\n /**\n * Create an image-to-video task; returns immediately with a task id.\n * @param params Image-to-video parameters.\n * @param options Per-request overrides.\n * @returns The task creation result with id.\n */\n async create(params: ImageToVideoParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, {\n body,\n ...options,\n });\n }\n\n /**\n * Fetch the current status of an image-to-video task.\n * @param id The task id.\n * @param options Per-request overrides.\n * @returns The current image-to-video task status.\n */\n async get(id: string, options?: RequestOptions): Promise<ImageToVideoResponse> {\n return this.http.request<ImageToVideoResponse>('GET', `${ENDPOINT}/${id}`, {\n ...options,\n });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type {\n CompletedAiAvatarResponse,\n AiAvatarParams,\n AiAvatarResponse,\n TaskCreateResponse,\n} from '../types';\n\nconst ENDPOINT = '/api/v1/kling/ai_avatar';\n\n/** Lip-sync a face image to an audio track, producing a talking-head video. */\nexport class AiAvatar {\n constructor(private readonly http: HttpClient) {}\n\n /**\n * Generate an AI avatar video and wait until complete.\n * @param params AI avatar parameters.\n * @param options Per-request and polling overrides.\n * @returns The completed task with videos.\n */\n async run(params: AiAvatarParams, options?: RequestOptions & PollingOptions): Promise<CompletedAiAvatarResponse> {\n const { id } = await this.create(params, options);\n const response = await pollUntilComplete<AiAvatarResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n return response as CompletedAiAvatarResponse;\n }\n\n /**\n * Create an AI avatar generation task; returns immediately with a task id.\n * @param params AI avatar parameters.\n * @param options Per-request overrides.\n * @returns The task creation result with id.\n */\n async create(params: AiAvatarParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, {\n body,\n ...options,\n });\n }\n\n /**\n * Fetch the current status of an AI avatar task.\n * @param id The task id.\n * @param options Per-request overrides.\n * @returns The current AI avatar task status.\n */\n async get(id: string, options?: RequestOptions): Promise<AiAvatarResponse> {\n return this.http.request<AiAvatarResponse>('GET', `${ENDPOINT}/${id}`, {\n ...options,\n });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type {\n CompletedMotionControlResponse,\n MotionControlParams,\n MotionControlResponse,\n TaskCreateResponse,\n} from '../types';\n\nconst ENDPOINT = '/api/v1/kling/motion_control';\n\n/** Transfer motion from a reference video onto a subject image, preserving the subject's appearance. */\nexport class MotionControl {\n constructor(private readonly http: HttpClient) {}\n\n /**\n * Generate a video with motion transfer from a reference video and wait until complete.\n * @param params Motion control parameters.\n * @param options Per-request and polling overrides.\n * @returns The completed task with videos.\n */\n async run(params: MotionControlParams, options?: RequestOptions & PollingOptions): Promise<CompletedMotionControlResponse> {\n const { id } = await this.create(params, options);\n const response = await pollUntilComplete<MotionControlResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n return response as CompletedMotionControlResponse;\n }\n\n /**\n * Create a motion control generation task; returns immediately with a task id.\n * @param params Motion control parameters.\n * @param options Per-request overrides.\n * @returns The task creation result with id.\n */\n async create(params: MotionControlParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, {\n body,\n ...options,\n });\n }\n\n /**\n * Fetch the current status of a motion control task.\n * @param id The task id.\n * @param options Per-request overrides.\n * @returns The current motion control task status.\n */\n async get(id: string, options?: RequestOptions): Promise<MotionControlResponse> {\n return this.http.request<MotionControlResponse>('GET', `${ENDPOINT}/${id}`, {\n ...options,\n });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type { KlingExtendVideoParams, TextToVideoResponse, TaskCreateResponse } from '../types';\n\nconst ENDPOINT = '/api/v1/kling/extend_video';\n\nexport class ExtendVideo {\n constructor(private readonly http: HttpClient) {}\n\n async run(params: KlingExtendVideoParams, options?: RequestOptions & PollingOptions): Promise<TextToVideoResponse> {\n const { id } = await this.create(params, options);\n return pollUntilComplete<TextToVideoResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n }\n\n async create(params: KlingExtendVideoParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, { body, ...options });\n }\n\n async get(id: string, options?: RequestOptions): Promise<TextToVideoResponse> {\n return this.http.request<TextToVideoResponse>('GET', `${ENDPOINT}/${id}`, { ...options });\n }\n}\n","import type { HttpClient, PollingOptions, RequestOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type { EditVideoParams, TaskCreateResponse, TextToVideoResponse } from '../types';\n\nconst ENDPOINT = '/api/v1/kling/edit_video';\n\nexport class EditVideo {\n constructor(private readonly http: HttpClient) {}\n\n async run(params: EditVideoParams, options?: RequestOptions & PollingOptions): Promise<TextToVideoResponse> {\n const { id } = await this.create(params, options);\n return pollUntilComplete<TextToVideoResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n }\n\n async create(params: EditVideoParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n const body = compactParams(params);\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, { body, ...options });\n }\n\n async get(id: string, options?: RequestOptions): Promise<TextToVideoResponse> {\n return this.http.request<TextToVideoResponse>('GET', `${ENDPOINT}/${id}`, { ...options });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type { KeyframeToVideoParams, KeyframeToVideoResponse, TaskCreateResponse } from '../types';\n\nconst ENDPOINT = '/api/v1/kling/keyframe_to_video';\n\n/** Generate video from ordered Kling 4.0 keyframes. */\nexport class KeyframeToVideo {\n constructor(private readonly http: HttpClient) {}\n\n async run(params: KeyframeToVideoParams, options?: RequestOptions & PollingOptions): Promise<KeyframeToVideoResponse> {\n const { id } = await this.create(params, options);\n return pollUntilComplete<KeyframeToVideoResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n }\n\n async create(params: KeyframeToVideoParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, { body: compactParams(params), ...options });\n }\n\n async get(id: string, options?: RequestOptions): Promise<KeyframeToVideoResponse> {\n return this.http.request<KeyframeToVideoResponse>('GET', `${ENDPOINT}/${id}`, { ...options });\n }\n}\n","import type { HttpClient, RequestOptions, PollingOptions } from '@runapi.ai/core';\nimport { compactParams } from '@runapi.ai/core';\nimport { pollUntilComplete } from '@runapi.ai/core/internal';\nimport type { ReferenceToVideoParams, ReferenceToVideoResponse, TaskCreateResponse } from '../types';\n\nconst ENDPOINT = '/api/v1/kling/reference_to_video';\n\n/** Generate video from Kling 4.0 image, video, subject, and voice references. */\nexport class ReferenceToVideo {\n constructor(private readonly http: HttpClient) {}\n\n async run(params: ReferenceToVideoParams, options?: RequestOptions & PollingOptions): Promise<ReferenceToVideoResponse> {\n const { id } = await this.create(params, options);\n return pollUntilComplete<ReferenceToVideoResponse>(() => this.get(id, options), {\n maxWaitMs: options?.maxWaitMs,\n pollIntervalMs: options?.pollIntervalMs,\n });\n }\n\n async create(params: ReferenceToVideoParams, options?: RequestOptions): Promise<TaskCreateResponse> {\n return this.http.request<TaskCreateResponse>('POST', ENDPOINT, { body: compactParams(params), ...options });\n }\n\n async get(id: string, options?: RequestOptions): Promise<ReferenceToVideoResponse> {\n return this.http.request<ReferenceToVideoResponse>('GET', `${ENDPOINT}/${id}`, { ...options });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAA+C;;;ACC/C,kBAA8B;AAC9B,sBAAkC;AAQ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,SAAS,KAAK,IAAI;AACtC,SAAK,gBAAgB,IAAI,cAAc,KAAK,IAAI;AAChD,SAAK,cAAc,IAAI,YAAY,KAAK,IAAI;AAC5C,SAAK,YAAY,IAAI,UAAU,KAAK,IAAI;AACxC,SAAK,kBAAkB,IAAI,gBAAgB,KAAK,IAAI;AACpD,SAAK,mBAAmB,IAAI,iBAAiB,KAAK,IAAI;AAAA,EACxD;AACF;;;ADjDA,IAAAC,gBAYO;","names":["import_core","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core","import_internal","ENDPOINT","import_core"]}