Skip to content

Commit cc01d7d

Browse files
techpro-aimlapigitbook-bot
authored andcommitted
GITBOOK-706: docs: add klingai/video-o1-video-to-video-reference and update minimax schemas
1 parent bb6ece1 commit cc01d7d

11 files changed

Lines changed: 79 additions & 326 deletions

File tree

docs/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@
285285
* [Luma AI](api-references/video-models/luma-ai/README.md)
286286
* [Luma 1 (Text-to-Video) \[legacy\]](api-references/video-models/luma-ai/luma-ai-text-to-video-v1-legacy.md)
287287
* [Luma Ray 1.6 (Text-to-Video)](api-references/video-models/luma-ai/luma-ai-v2.md)
288-
* [Luma Ray 1.6 (дубль)](api-references/video-models/luma-ai/luma-ray-1.6-dubl.md)
289288
* [Luma Ray 2](api-references/video-models/luma-ai/luma-ray-2.md)
290289
* [Luma Ray Flash 2](api-references/video-models/luma-ai/luma-ray-flash-2.md)
291290
* [MiniMax](api-references/video-models/MiniMax/README.md)

docs/api-references/model-database.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/api-references/video-models/MiniMax/video-01-live2d.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,42 @@ An innovative AI model designed for generating high-quality videos from text pro
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-
Below, you can find two corresponding API schemas.
34+
Below, you can find both corresponding API schemas.
35+
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.
43+
{% endhint %}
3144

3245
### Create a video generation task and send it to the server
3346

34-
{% openapi src="../../../.gitbook/assets/video-01-live2d.json" path="/v2/generate/video/minimax/generation" method="post" %}
35-
[video-01-live2d.json](../../../.gitbook/assets/video-01-live2d.json)
36-
{% endopenapi %}
47+
{% openapi-operation spec="video-01-live2d" path="/v2/video/generations" method="post" %}
48+
[OpenAPI video-01-live2d](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/MiniMax/video-01-live2d.json)
49+
{% endopenapi-operation %}
3750

3851
### Retrieve the generated video from the server
3952

4053
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its `id`, obtained from the endpoint described above.\
4154
If the video generation task status is `complete`, the response will include the final result — with the generated video URL and additional metadata.
4255

43-
{% openapi src="../../../.gitbook/assets/video-01-pair (1).json" path="/v2/generate/video/minimax/generation" method="get" %}
44-
[video-01-pair (1).json](<../../../.gitbook/assets/video-01-pair (1).json>)
45-
{% endopenapi %}
56+
{% openapi-operation spec="fetch-video-universal-endpoint" path="/v2/video/generations" method="get" %}
57+
[OpenAPI fetch-video-universal-endpoint](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/Sber-AI/kandinsky5-t2v-pair.json)
58+
{% endopenapi-operation %}
4659

4760
## Full Example: Generating and Retrieving the Video From the Server
4861

docs/api-references/video-models/MiniMax/video-01.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,28 @@ Generating a video using this model involves sequentially calling two endpoints:
3131
* The first one is for creating and sending a video generation task to the server (returns a generation ID).
3232
* The second one is for requesting the generated video from the server using the generation ID received from the first endpoint.
3333

34-
Below, you can find two corresponding API schemas.
34+
Below, you can find both corresponding API schemas.
3535

3636
</details>
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/video-01.json" path="/v2/generate/video/minimax/generation" method="post" %}
43-
[video-01.json](../../../.gitbook/assets/video-01.json)
44-
{% endopenapi %}
47+
{% openapi-operation spec="video-01" path="/v2/video/generations" method="post" %}
48+
[OpenAPI video-01](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/MiniMax/video-01.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. This endpoint lets you check the status of a video generation task using its `id`, obtained from the endpoint described above.\
4954
If the video generation task status is `complete`, the response will include the final result — with the generated video URL and additional metadata.
5055

51-
{% openapi src="../../../.gitbook/assets/video-01-pair.json" path="/v2/generate/video/minimax/generation" method="get" %}
52-
[video-01-pair.json](../../../.gitbook/assets/video-01-pair.json)
53-
{% endopenapi %}
56+
{% openapi-operation spec="fetch-video-universal-endpoint" path="/v2/video/generations" method="get" %}
57+
[OpenAPI fetch-video-universal-endpoint](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/video-models/Sber-AI/kandinsky5-t2v-pair.json)
58+
{% endopenapi-operation %}

docs/api-references/video-models/README.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/api-references/video-models/kling-ai/video-o1-video-to-video-reference.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
hidden: true
3-
noIndex: true
42
layout:
53
width: default
64
title:
@@ -304,12 +302,29 @@ main();
304302

305303
{% code overflow="wrap" %}
306304
```json5
305+
Generation ID: 6a3ada23-8eb3-4e29-948a-59e5bc2074c5:klingai/video-o1-video-to-video-reference
306+
Status: generating. Checking again in 15 seconds.
307+
Status: generating. Checking again in 15 seconds.
308+
Status: generating. Checking again in 15 seconds.
309+
Status: generating. Checking again in 15 seconds.
310+
Status: generating. Checking again in 15 seconds.
311+
Status: generating. Checking again in 15 seconds.
312+
Status: generating. Checking again in 15 seconds.
313+
Status: generating. Checking again in 15 seconds.
314+
Status: generating. Checking again in 15 seconds.
315+
Status: generating. Checking again in 15 seconds.
316+
Status: generating. Checking again in 15 seconds.
317+
Status: generating. Checking again in 15 seconds.
318+
Status: generating. Checking again in 15 seconds.
319+
Processing complete:
320+
{'id': '6a3ada23-8eb3-4e29-948a-59e5bc2074c5:klingai/video-o1-video-to-video-reference', 'status': 'completed', 'video': {'url': 'https://cdn.aimlapi.com/flamingo/files/b/0a878546/2Wt0iDavlysQHFuP3_8I5_output.mp4'}}
307321
```
308322
{% endcode %}
309323

310324
</details>
311325

312-
**Processing time**: \~ 3 min 55 sec.
326+
**Processing time**: \~ 3 min 23 sec.
313327

314-
**Generated video** (1940x1068, without sound):
328+
**Generated video** (1920x1080, without sound):
315329

330+
{% embed url="https://drive.google.com/file/d/1ok8yiSBH_0rcAGDN76pBxXbfOldbjhgy/view" %}

docs/api-references/video-models/krea/krea-wan-14b-video-to-video.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# krea-wan-14b/video-to-video
22

33
{% columns %}
4-
{% column %}
4+
{% column width="66.66666666666666%" %}
55
{% hint style="info" %}
66
This documentation is valid for the following list of our models:
77

88
* `krea/krea-wan-14b/video-to-video`
99
{% endhint %}
1010
{% endcolumn %}
1111

12-
{% column %}
12+
{% column width="33.33333333333334%" %}
1313
<a href="https://aimlapi.com/app/krea/krea-wan-14b/video-to-video" class="button primary">Try in Playground</a>
1414
{% endcolumn %}
1515
{% endcolumns %}

docs/api-references/video-models/ltxv/ltxv-2-fast.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# ltxv-2-fast
22

33
{% columns %}
4-
{% column %}
4+
{% column width="66.66666666666666%" %}
55
{% hint style="info" %}
66
This documentation is valid for the following list of our models:
77

88
* `ltxv/ltxv-2-fast`
99
{% endhint %}
1010
{% endcolumn %}
1111

12-
{% column %}
12+
{% column width="33.33333333333334%" %}
1313
<a href="https://aimlapi.com/app/ltxv/ltxv-2-fast" class="button primary">Try in Playground</a>
1414
{% endcolumn %}
1515
{% endcolumns %}

docs/api-references/video-models/ltxv/ltxv-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# ltxv-2
22

33
{% columns %}
4-
{% column %}
4+
{% column width="66.66666666666666%" %}
55
{% hint style="info" %}
66
This documentation is valid for the following list of our models:
77

88
* `ltxv/ltxv-2`
99
{% endhint %}
1010
{% endcolumn %}
1111

12-
{% column %}
12+
{% column width="33.33333333333334%" %}
1313
<a href="https://aimlapi.com/app/ltxv/ltxv-2" class="button primary">Try in Playground</a>
1414
{% endcolumn %}
1515
{% endcolumns %}

0 commit comments

Comments
 (0)