Skip to content

Commit 831f8ab

Browse files
techpro-aimlapigitbook-bot
authored andcommitted
GITBOOK-684: docs: re-connect all kling schemas (universal endpoint)
1 parent ac2c77d commit 831f8ab

23 files changed

Lines changed: 316 additions & 443 deletions

docs/SUMMARY.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,19 @@
248248
* [Veo 3.1 Fast (Image-to-Video)](api-references/video-models/google/veo-3-1-image-to-video-fast.md)
249249
* [Veo 3.1 Fast (First-Last-Image-to-Video)](api-references/video-models/google/veo-3-1-first-last-image-to-video-fast.md)
250250
* [Kling AI](api-references/video-models/Kling-AI/README.md)
251-
* [v1-standard/image-to-video](api-references/video-models/Kling-AI/v1-standard-image-to-video.md)
252251
* [v1-standard/text-to-video](api-references/video-models/Kling-AI/v1-standard-text-to-video.md)
253-
* [v1-pro/image-to-video](api-references/video-models/Kling-AI/v1-pro-image-to-video.md)
252+
* [v1-standard/image-to-video](api-references/video-models/Kling-AI/v1-standard-image-to-video.md)
254253
* [v1-pro/text-to-video](api-references/video-models/Kling-AI/v1-pro-text-to-video.md)
255-
* [v1.6-standard/image-to-video](api-references/video-models/Kling-AI/v1.6-standart-image-to-video.md)
254+
* [v1-pro/image-to-video](api-references/video-models/Kling-AI/v1-pro-image-to-video.md)
256255
* [v1.6-standard/text-to-video](api-references/video-models/Kling-AI/v1.6-standard-text-to-video.md)
256+
* [v1.6-standard/image-to-video](api-references/video-models/Kling-AI/v1.6-standart-image-to-video.md)
257257
* [v1.6-standard/multi-image-to-video](api-references/video-models/kling-ai/v1.6-standard-multi-image-to-video.md)
258-
* [v1.6-pro/image-to-video](api-references/video-models/Kling-AI/v1.6-pro-image-to-video.md)
259258
* [v1.6-pro/text-to-video](api-references/video-models/kling-ai/v1.6-pro-text-to-video.md)
259+
* [v1.6-pro/image-to-video](api-references/video-models/Kling-AI/v1.6-pro-image-to-video.md)
260260
* [v1.6-standard/effects](api-references/video-models/kling-ai/v1.6-standard-effects.md)
261261
* [v1.6-pro/effects](api-references/video-models/kling-ai/v1.6-pro-effects.md)
262-
* [v2-master/image-to-video](api-references/video-models/kling-ai/v2-master-image-to-video.md)
263262
* [v2-master/text-to-video](api-references/video-models/kling-ai/v2-master-text-to-video.md)
263+
* [v2-master/image-to-video](api-references/video-models/kling-ai/v2-master-image-to-video.md)
264264
* [v2.1-standard/image-to-video](api-references/video-models/kling-ai/v2.1-standard-image-to-video.md)
265265
* [v2.1-pro/image-to-video](api-references/video-models/kling-ai/v2.1-pro-image-to-video.md)
266266
* [v2.1-master-text-to-video](api-references/video-models/kling-ai/v2.1-master-text-to-video.md)
@@ -271,8 +271,6 @@
271271
* [avatar-pro](api-references/video-models/kling-ai/avatar-pro.md)
272272
* [video-v2.6-pro-text-to-video](api-references/video-models/kling-ai/video-v2-6-pro-text-to-video.md)
273273
* [video-v2.6-pro-image-to-video](api-references/video-models/kling-ai/video-v2.6-pro-image-to-video.md)
274-
* [kling o1 models](api-references/video-models/kling-ai/kling-o1-models.md)
275-
* [video o1 reference to video kling ai](api-references/video-models/kling-ai/video-o1-reference-to-video-kling-ai.md)
276274
* [video-o1-image-to-video](api-references/video-models/kling-ai/video-o1-image-to-video.md)
277275
* [Krea](api-references/video-models/krea/README.md)
278276
* [krea-wan-14b/text-to-video](api-references/video-models/krea/krea-wan-14b-text-to-video.md)

docs/api-references/video-models/Kling-AI/v1-pro-image-to-video.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,25 @@ Below, you can find both corresponding API schemas.
3737

3838
## API Schemas
3939

40+
{% hint style="success" %}
41+
Now, all of our API schemas for video models use our new universal short URL — `https://api.aimlapi.com/v2/video/generations`. \
42+
However, you can still call this model using the legacy URL that includes the vendor name.
43+
{% endhint %}
44+
4045
### Create a video generation task and send it to the server
4146

4247
{% hint style="info" %}
4348
The aspect ratio of the generated video is solely determined by the aspect ratio of the input reference image.
4449
{% endhint %}
4550

46-
{% openapi src="../../../.gitbook/assets/v1-pro-image-to-video.json" path="/v2/generate/video/kling/generation" method="post" %}
47-
[v1-pro-image-to-video.json](../../../.gitbook/assets/v1-pro-image-to-video.json)
48-
{% endopenapi %}
51+
{% openapi-operation spec="v1-pro-image-to-video" path="/v2/video/generations" method="post" %}
52+
[OpenAPI v1-pro-image-to-video](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/Kling-AI/v1-pro-image-to-video.json)
53+
{% endopenapi-operation %}
4954

5055
### Retrieve the generated video from the server
5156

5257
After sending a request for video generation, this task is added to the queue. Based on the service's load, the generation can be completed in seconds or take a bit more.
5358

54-
{% openapi src="../../../.gitbook/assets/v1.6-pro-effects-pair.json" path="/v2/generate/video/kling/generation" method="get" %}
55-
[v1.6-pro-effects-pair.json](../../../.gitbook/assets/v1.6-pro-effects-pair.json)
56-
{% endopenapi %}
59+
{% openapi-operation spec="universal-video-endpoint-fetch" path="/v2/video/generations" method="get" %}
60+
[OpenAPI universal-video-endpoint-fetch](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/ByteDance/omnihuman-pair.json)
61+
{% endopenapi-operation %}

docs/api-references/video-models/Kling-AI/v1-pro-text-to-video.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,21 @@ Below, you can find both corresponding API schemas.
3737

3838
## API Schemas
3939

40+
{% hint style="success" %}
41+
Now, all of our API schemas for video models use our new universal short URL — `https://api.aimlapi.com/v2/video/generations`. \
42+
However, you can still call this model using the legacy URL that includes the vendor name.
43+
{% endhint %}
44+
4045
### Create a video generation task and send it to the server
4146

42-
{% openapi src="../../../.gitbook/assets/v1-pro-text-to-video.json" path="/v2/generate/video/kling/generation" method="post" %}
43-
[v1-pro-text-to-video.json](../../../.gitbook/assets/v1-pro-text-to-video.json)
44-
{% endopenapi %}
47+
{% openapi-operation spec="v1-pro-text-to-video" path="/v2/video/generations" method="post" %}
48+
[OpenAPI v1-pro-text-to-video](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/Kling-AI/v1-pro-text-to-video.json)
49+
{% endopenapi-operation %}
4550

4651
### Retrieve the generated video from the server
4752

4853
After sending a request for video generation, this task is added to the queue. Based on the service's load, the generation can be completed in seconds or take a bit more.
4954

50-
{% openapi src="../../../.gitbook/assets/v1.6-pro-effects-pair.json" path="/v2/generate/video/kling/generation" method="get" %}
51-
[v1.6-pro-effects-pair.json](../../../.gitbook/assets/v1.6-pro-effects-pair.json)
52-
{% endopenapi %}
55+
{% openapi-operation spec="universal-video-endpoint-fetch" path="/v2/video/generations" method="get" %}
56+
[OpenAPI universal-video-endpoint-fetch](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/ByteDance/omnihuman-pair.json)
57+
{% endopenapi-operation %}

docs/api-references/video-models/Kling-AI/v1-standard-image-to-video.md

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,41 @@ A model transforms static images into dynamic video clips.
2020

2121
If you don’t have an API key for the AI/ML API yet, feel free to use our [Quickstart guide](https://docs.aimlapi.com/quickstart/setting-up).
2222

23-
## API Schemas
23+
## How to Make a Call
24+
25+
<details>
26+
27+
<summary>Step-by-Step Instructions</summary>
2428

2529
Generating a video using this model involves sequentially calling two endpoints:
2630

2731
* The first one is for creating and sending a video generation task to the server (returns a generation ID).
2832
* The second one is for requesting the generated video from the server using the generation ID received from the first endpoint.
2933

30-
### Create a video generation task and send it to the server
34+
Below, you can find both corresponding API schemas.
3135

32-
{% hint style="warning" %}
33-
The `ratio` and `aspect_ratio` parameters are deprecated. The aspect ratio of the generated video is solely determined by the aspect ratio of the input reference image.
36+
</details>
37+
38+
## API Schemas
39+
40+
{% hint style="success" %}
41+
Now, all of our API schemas for video models use our new universal short URL — `https://api.aimlapi.com/v2/video/generations`. \
42+
However, you can still call this model using the legacy URL that includes the vendor name.
3443
{% endhint %}
3544

36-
{% openapi src="../../../.gitbook/assets/v1-standard-image-to-video.json" path="/v2/generate/video/kling/generation" method="post" %}
37-
[v1-standard-image-to-video.json](../../../.gitbook/assets/v1-standard-image-to-video.json)
38-
{% endopenapi %}
45+
### Create a video generation task and send it to the server
46+
47+
{% openapi-operation spec="v1-standard-image-to-video" path="/v2/video/generations" method="post" %}
48+
[OpenAPI v1-standard-image-to-video](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/Kling-AI/v1-standard-image-to-video.json)
49+
{% endopenapi-operation %}
3950

4051
### Retrieve the generated video from the server
4152

4253
After sending a request for video generation, this task is added to the queue. Based on the service's load, the generation can be completed in seconds or take a bit more.
4354

44-
{% openapi src="../../../.gitbook/assets/v1.6-pro-effects-pair.json" path="/v2/generate/video/kling/generation" method="get" %}
45-
[v1.6-pro-effects-pair.json](../../../.gitbook/assets/v1.6-pro-effects-pair.json)
46-
{% endopenapi %}
55+
{% openapi-operation spec="universal-video-endpoint-fetch" path="/v2/video/generations" method="get" %}
56+
[OpenAPI universal-video-endpoint-fetch](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/ByteDance/omnihuman-pair.json)
57+
{% endopenapi-operation %}
4758

4859
## Full Example: Generating and Retrieving the Video From the Server
4960

docs/api-references/video-models/Kling-AI/v1-standard-text-to-video.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ Below, you can find both corresponding API schemas.
3737

3838
## API Schemas
3939

40+
{% hint style="success" %}
41+
Now, all of our API schemas for video models use our new universal short URL — `https://api.aimlapi.com/v2/video/generations`. \
42+
However, you can still call this model using the legacy URL that includes the vendor name.
43+
{% endhint %}
44+
4045
### Create a video generation task and send it to the server
4146

4247
{% openapi src="../../../.gitbook/assets/v1-standard-text-to-video.json" path="/v2/generate/video/kling/generation" method="post" %}

docs/api-references/video-models/Kling-AI/v1.6-pro-image-to-video.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,25 @@ Below, you can find both corresponding API schemas.
3737

3838
## API Schemas
3939

40+
{% hint style="success" %}
41+
Now, all of our API schemas for video models use our new universal short URL — `https://api.aimlapi.com/v2/video/generations`. \
42+
However, you can still call this model using the legacy URL that includes the vendor name.
43+
{% endhint %}
44+
4045
### Create a video generation task and send it to the server
4146

42-
{% hint style="warning" %}
43-
The ratio/aspect\_ratio parameter is deprecated. The aspect ratio of the generated video is solely determined by the aspect ratio of the input reference image.
47+
{% hint style="info" %}
48+
The aspect ratio of the generated video is solely determined by the aspect ratio of the input reference image.
4449
{% endhint %}
4550

46-
{% openapi src="../../../.gitbook/assets/v1.6-pro-image-to-video.json" path="/v2/generate/video/kling/generation" method="post" %}
47-
[v1.6-pro-image-to-video.json](../../../.gitbook/assets/v1.6-pro-image-to-video.json)
48-
{% endopenapi %}
51+
{% openapi-operation spec="v1-6-pro-image-to-video-2" path="/v2/video/generations" method="post" %}
52+
[OpenAPI v1-6-pro-image-to-video-2](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/Kling-AI/v1.6-pro-image-to-video.json)
53+
{% endopenapi-operation %}
4954

5055
### Retrieve the generated video from the server
5156

5257
After sending a request for video generation, this task is added to the queue. Based on the service's load, the generation can be completed in seconds or take a bit more.
5358

54-
{% openapi src="../../../.gitbook/assets/v1.6-pro-effects-pair.json" path="/v2/generate/video/kling/generation" method="get" %}
55-
[v1.6-pro-effects-pair.json](../../../.gitbook/assets/v1.6-pro-effects-pair.json)
56-
{% endopenapi %}
59+
{% openapi-operation spec="universal-video-endpoint-fetch" path="/v2/video/generations" method="get" %}
60+
[OpenAPI universal-video-endpoint-fetch](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/ByteDance/omnihuman-pair.json)
61+
{% endopenapi-operation %}

docs/api-references/video-models/Kling-AI/v1.6-standard-text-to-video.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,21 @@ Below, you can find both corresponding API schemas.
3737

3838
## API Schemas
3939

40+
{% hint style="success" %}
41+
Now, all of our API schemas for video models use our new universal short URL — `https://api.aimlapi.com/v2/video/generations`. \
42+
However, you can still call this model using the legacy URL that includes the vendor name.
43+
{% endhint %}
44+
4045
### Create a video generation task and send it to the server
4146

42-
{% openapi src="../../../.gitbook/assets/v1.6-standard-text-to-video.json" path="/v2/generate/video/kling/generation" method="post" %}
43-
[v1.6-standard-text-to-video.json](../../../.gitbook/assets/v1.6-standard-text-to-video.json)
44-
{% endopenapi %}
47+
{% openapi-operation spec="v1-6-standard-text-to-video" path="/v2/video/generations" method="post" %}
48+
[OpenAPI v1-6-standard-text-to-video](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/Kling-AI/v1.6-standard-text-to-video.json)
49+
{% endopenapi-operation %}
4550

4651
### Retrieve the generated video from the server
4752

4853
After sending a request for video generation, this task is added to the queue. Based on the service's load, the generation can be completed in seconds or take a bit more.
4954

50-
{% openapi src="../../../.gitbook/assets/v1.6-pro-effects-pair.json" path="/v2/generate/video/kling/generation" method="get" %}
51-
[v1.6-pro-effects-pair.json](../../../.gitbook/assets/v1.6-pro-effects-pair.json)
52-
{% endopenapi %}
55+
{% openapi-operation spec="universal-video-endpoint-fetch" path="/v2/video/generations" method="get" %}
56+
[OpenAPI universal-video-endpoint-fetch](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/ByteDance/omnihuman-pair.json)
57+
{% endopenapi-operation %}

docs/api-references/video-models/Kling-AI/v1.6-standart-image-to-video.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,25 @@ Below, you can find both corresponding API schemas.
3737

3838
## API Schemas
3939

40+
{% hint style="success" %}
41+
Now, all of our API schemas for video models use our new universal short URL — `https://api.aimlapi.com/v2/video/generations`. \
42+
However, you can still call this model using the legacy URL that includes the vendor name.
43+
{% endhint %}
44+
4045
### Create a video generation task and send it to the server
4146

42-
{% hint style="warning" %}
43-
The `ratio` and `aspect_ratio` parameters are now deprecated.\
47+
{% hint style="info" %}
4448
The aspect ratio of the generated video is solely determined by the aspect ratio of the input reference image.
4549
{% endhint %}
4650

47-
{% openapi src="../../../.gitbook/assets/v1.6-standart-image-to-video.json" path="/v2/generate/video/kling/generation" method="post" %}
48-
[v1.6-standart-image-to-video.json](../../../.gitbook/assets/v1.6-standart-image-to-video.json)
49-
{% endopenapi %}
51+
{% openapi-operation spec="v1-6-standard-image-to-video" path="/v2/video/generations" method="post" %}
52+
[OpenAPI v1-6-standard-image-to-video](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/Kling-AI/v1.6-standart-image-to-video.json)
53+
{% endopenapi-operation %}
5054

5155
### Retrieve the generated video from the server
5256

5357
After sending a request for video generation, this task is added to the queue. Based on the service's load, the generation can be completed in seconds or take a bit more.
5458

55-
{% openapi src="../../../.gitbook/assets/v1.6-pro-effects-pair.json" path="/v2/generate/video/kling/generation" method="get" %}
56-
[v1.6-pro-effects-pair.json](../../../.gitbook/assets/v1.6-pro-effects-pair.json)
57-
{% endopenapi %}
59+
{% openapi-operation spec="universal-video-endpoint-fetch" path="/v2/video/generations" method="get" %}
60+
[OpenAPI universal-video-endpoint-fetch](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/ByteDance/omnihuman-pair.json)
61+
{% endopenapi-operation %}

0 commit comments

Comments
 (0)