Skip to content

Commit e4ceb25

Browse files
feat: gen klings v2.6 pro
1 parent f833680 commit e4ceb25

3 files changed

Lines changed: 801 additions & 427 deletions

File tree

Lines changed: 381 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,381 @@
1+
{
2+
"openapi": "3.0.0",
3+
"info": {
4+
"title": "AIML API",
5+
"version": "1.0.0"
6+
},
7+
"servers": [
8+
{
9+
"url": "https://api.aimlapi.com"
10+
}
11+
],
12+
"paths": {
13+
"/v2/video/generations": {
14+
"post": {
15+
"operationId": "_v2_video_generations",
16+
"requestBody": {
17+
"required": true,
18+
"content": {
19+
"application/json": {
20+
"schema": {
21+
"type": "object",
22+
"properties": {
23+
"model": {
24+
"type": "string",
25+
"enum": [
26+
"klingai/video-v2-6-pro-image-to-video"
27+
]
28+
},
29+
"prompt": {
30+
"type": "string",
31+
"maxLength": 2500,
32+
"description": "The text description of the scene, subject, or action to generate in the video."
33+
},
34+
"image_url": {
35+
"type": "string",
36+
"format": "uri",
37+
"description": "A direct link to an online image or a Base64-encoded local image that will serve as the visual base or the first frame for the video."
38+
},
39+
"duration": {
40+
"type": "integer",
41+
"description": "The length of the output video in seconds.",
42+
"enum": [
43+
5,
44+
10
45+
],
46+
"default": "5"
47+
},
48+
"negative_prompt": {
49+
"type": "string",
50+
"description": "The description of elements to avoid in the generated video."
51+
},
52+
"generate_audio": {
53+
"type": "boolean",
54+
"default": true,
55+
"description": "Whether to generate audio for the video."
56+
}
57+
},
58+
"required": [
59+
"model",
60+
"prompt",
61+
"image_url"
62+
],
63+
"title": "klingai/video-v2-6-pro-image-to-video"
64+
}
65+
}
66+
}
67+
},
68+
"responses": {
69+
"200": {
70+
"content": {
71+
"application/json": {
72+
"schema": {
73+
"type": "object",
74+
"properties": {
75+
"id": {
76+
"type": "string"
77+
},
78+
"status": {
79+
"type": "string",
80+
"enum": [
81+
"failed",
82+
"succeeded",
83+
"queued",
84+
"running",
85+
"uploading",
86+
"cancelled",
87+
"unknown"
88+
]
89+
},
90+
"video": {
91+
"type": "object",
92+
"nullable": true,
93+
"properties": {
94+
"url": {
95+
"type": "string",
96+
"format": "uri"
97+
}
98+
},
99+
"required": [
100+
"url"
101+
]
102+
},
103+
"error": {
104+
"type": "object",
105+
"nullable": true,
106+
"properties": {
107+
"name": {
108+
"type": "string"
109+
},
110+
"message": {
111+
"type": "string"
112+
}
113+
},
114+
"required": [
115+
"name",
116+
"message"
117+
]
118+
}
119+
},
120+
"required": [
121+
"id",
122+
"status"
123+
]
124+
}
125+
}
126+
}
127+
}
128+
},
129+
"x-hideTryItPanel": true
130+
}
131+
},
132+
"/v1/video/generations": {
133+
"post": {
134+
"operationId": "_v1_video_generations",
135+
"requestBody": {
136+
"required": true,
137+
"content": {
138+
"application/json": {
139+
"schema": {
140+
"type": "object",
141+
"properties": {
142+
"model": {
143+
"type": "string",
144+
"enum": [
145+
"klingai/video-v2-6-pro-image-to-video"
146+
]
147+
},
148+
"prompt": {
149+
"type": "string",
150+
"maxLength": 2500,
151+
"description": "The text description of the scene, subject, or action to generate in the video."
152+
},
153+
"image_url": {
154+
"type": "string",
155+
"format": "uri",
156+
"description": "A direct link to an online image or a Base64-encoded local image that will serve as the visual base or the first frame for the video."
157+
},
158+
"duration": {
159+
"type": "integer",
160+
"description": "The length of the output video in seconds.",
161+
"enum": [
162+
5,
163+
10
164+
],
165+
"default": "5"
166+
},
167+
"negative_prompt": {
168+
"type": "string",
169+
"description": "The description of elements to avoid in the generated video."
170+
},
171+
"generate_audio": {
172+
"type": "boolean",
173+
"default": true,
174+
"description": "Whether to generate audio for the video."
175+
}
176+
},
177+
"required": [
178+
"model",
179+
"prompt",
180+
"image_url"
181+
],
182+
"title": "klingai/video-v2-6-pro-image-to-video"
183+
}
184+
}
185+
}
186+
},
187+
"responses": {
188+
"200": {
189+
"content": {
190+
"application/json": {
191+
"schema": {
192+
"type": "object",
193+
"properties": {
194+
"id": {
195+
"type": "string"
196+
},
197+
"status": {
198+
"type": "string",
199+
"enum": [
200+
"failed",
201+
"succeeded",
202+
"queued",
203+
"running",
204+
"uploading",
205+
"cancelled",
206+
"unknown"
207+
]
208+
},
209+
"video": {
210+
"type": "object",
211+
"nullable": true,
212+
"properties": {
213+
"url": {
214+
"type": "string",
215+
"format": "uri"
216+
}
217+
},
218+
"required": [
219+
"url"
220+
]
221+
},
222+
"error": {
223+
"type": "object",
224+
"nullable": true,
225+
"properties": {
226+
"name": {
227+
"type": "string"
228+
},
229+
"message": {
230+
"type": "string"
231+
}
232+
},
233+
"required": [
234+
"name",
235+
"message"
236+
]
237+
}
238+
},
239+
"required": [
240+
"id",
241+
"status"
242+
]
243+
}
244+
}
245+
}
246+
}
247+
},
248+
"x-hideTryItPanel": true
249+
}
250+
},
251+
"/video/generations": {
252+
"post": {
253+
"operationId": "_video_generations",
254+
"requestBody": {
255+
"required": true,
256+
"content": {
257+
"application/json": {
258+
"schema": {
259+
"type": "object",
260+
"properties": {
261+
"model": {
262+
"type": "string",
263+
"enum": [
264+
"klingai/video-v2-6-pro-image-to-video"
265+
]
266+
},
267+
"prompt": {
268+
"type": "string",
269+
"maxLength": 2500,
270+
"description": "The text description of the scene, subject, or action to generate in the video."
271+
},
272+
"image_url": {
273+
"type": "string",
274+
"format": "uri",
275+
"description": "A direct link to an online image or a Base64-encoded local image that will serve as the visual base or the first frame for the video."
276+
},
277+
"duration": {
278+
"type": "integer",
279+
"description": "The length of the output video in seconds.",
280+
"enum": [
281+
5,
282+
10
283+
],
284+
"default": "5"
285+
},
286+
"negative_prompt": {
287+
"type": "string",
288+
"description": "The description of elements to avoid in the generated video."
289+
},
290+
"generate_audio": {
291+
"type": "boolean",
292+
"default": true,
293+
"description": "Whether to generate audio for the video."
294+
}
295+
},
296+
"required": [
297+
"model",
298+
"prompt",
299+
"image_url"
300+
],
301+
"title": "klingai/video-v2-6-pro-image-to-video"
302+
}
303+
}
304+
}
305+
},
306+
"responses": {
307+
"200": {
308+
"content": {
309+
"application/json": {
310+
"schema": {
311+
"type": "object",
312+
"properties": {
313+
"id": {
314+
"type": "string"
315+
},
316+
"status": {
317+
"type": "string",
318+
"enum": [
319+
"failed",
320+
"succeeded",
321+
"queued",
322+
"running",
323+
"uploading",
324+
"cancelled",
325+
"unknown"
326+
]
327+
},
328+
"video": {
329+
"type": "object",
330+
"nullable": true,
331+
"properties": {
332+
"url": {
333+
"type": "string",
334+
"format": "uri"
335+
}
336+
},
337+
"required": [
338+
"url"
339+
]
340+
},
341+
"error": {
342+
"type": "object",
343+
"nullable": true,
344+
"properties": {
345+
"name": {
346+
"type": "string"
347+
},
348+
"message": {
349+
"type": "string"
350+
}
351+
},
352+
"required": [
353+
"name",
354+
"message"
355+
]
356+
}
357+
},
358+
"required": [
359+
"id",
360+
"status"
361+
]
362+
}
363+
}
364+
}
365+
}
366+
},
367+
"x-hideTryItPanel": true
368+
}
369+
}
370+
},
371+
"components": {
372+
"securitySchemes": {
373+
"access-token": {
374+
"scheme": "bearer",
375+
"bearerFormat": "<YOUR_AIMLAPI_KEY>",
376+
"type": "http",
377+
"description": "Bearer key"
378+
}
379+
}
380+
}
381+
}

0 commit comments

Comments
 (0)