Skip to content

Commit 9213fc9

Browse files
feat: gen pixverse/v5.5 (t2v and i2v)
1 parent d6d2cb9 commit 9213fc9

4 files changed

Lines changed: 439 additions & 9 deletions

File tree

Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
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+
"pixverse/v5.5/image-to-video"
27+
]
28+
},
29+
"prompt": {
30+
"type": "string",
31+
"description": "The text description of the scene, subject, or action to generate in the video."
32+
},
33+
"image_url": {
34+
"type": "string",
35+
"format": "uri",
36+
"description": "URL of the image to be used as the first frame of the video."
37+
},
38+
"resolution": {
39+
"type": "string",
40+
"enum": [
41+
"360p",
42+
"540p",
43+
"720p",
44+
"1080p"
45+
],
46+
"default": "720p",
47+
"description": "An enumeration where the short side of the video frame determines the resolution."
48+
},
49+
"duration": {
50+
"type": "integer",
51+
"description": "The output video length in seconds. The 1080p quality option does not support 8-second videos.",
52+
"enum": [
53+
5,
54+
8,
55+
10
56+
],
57+
"default": "5"
58+
},
59+
"negative_prompt": {
60+
"type": "string",
61+
"description": "The description of elements to avoid in the generated video."
62+
},
63+
"style": {
64+
"type": "string",
65+
"enum": [
66+
"anime",
67+
"3d_animation",
68+
"clay",
69+
"comic",
70+
"cyberpunk"
71+
],
72+
"description": "The style of the generated video."
73+
},
74+
"seed": {
75+
"type": "integer",
76+
"description": "Varying the seed integer is a way to get different results for the same other request parameters. Using the same value for an identical request will produce similar results. If unspecified, a random number is chosen."
77+
},
78+
"generate_audio_switch": {
79+
"type": "boolean",
80+
"description": "Audio switch. Controls whether the video has audio. true: Audio on, false: Audio off"
81+
},
82+
"generate_multi_clip_switch": {
83+
"type": "boolean",
84+
"description": "Single or multi-clip switch. Controls single-clip and multi-clip generation modes. true: Multi-clip, false: Single-clip"
85+
},
86+
"thinking_type": {
87+
"type": "string",
88+
"enum": [
89+
"enabled",
90+
"disabled",
91+
"auto"
92+
],
93+
"description": "Prompt reasoning enhancement. Controls whether the system should enhance your prompt with internal reasoning and optimization. \"enabled\": Turn on system-level optimization. \"disabled\": Turn off system-level optimization. \"auto\" or omitted: Let the model decide automatically"
94+
}
95+
},
96+
"required": [
97+
"model",
98+
"prompt",
99+
"image_url"
100+
],
101+
"title": "pixverse/v5.5/image-to-video"
102+
}
103+
}
104+
}
105+
},
106+
"responses": {
107+
"200": {
108+
"content": {
109+
"application/json": {
110+
"schema": {
111+
"type": "object",
112+
"properties": {
113+
"id": {
114+
"type": "string",
115+
"description": "The ID of the generated video.",
116+
"example": "60ac7c34-3224-4b14-8e7d-0aa0db708325"
117+
},
118+
"status": {
119+
"type": "string",
120+
"enum": [
121+
"queued",
122+
"generating",
123+
"completed",
124+
"error"
125+
],
126+
"description": "The current status of the generation task.",
127+
"example": "completed"
128+
},
129+
"video": {
130+
"type": "object",
131+
"nullable": true,
132+
"properties": {
133+
"url": {
134+
"type": "string",
135+
"format": "uri",
136+
"description": "The URL where the file can be downloaded from.",
137+
"example": "https://cdn.aimlapi.com/generations/hedgehog/1759866285599-0cdfb138-c03a-49d4-a601-4f6413e27b15.mp4"
138+
}
139+
},
140+
"required": [
141+
"url"
142+
]
143+
},
144+
"error": {
145+
"type": "object",
146+
"nullable": true,
147+
"properties": {
148+
"name": {
149+
"type": "string"
150+
},
151+
"message": {
152+
"type": "string"
153+
}
154+
},
155+
"required": [
156+
"name",
157+
"message"
158+
],
159+
"description": "Description of the error, if any."
160+
},
161+
"meta": {
162+
"type": "object",
163+
"nullable": true,
164+
"properties": {
165+
"usage": {
166+
"type": "object",
167+
"nullable": true,
168+
"properties": {
169+
"credits_used": {
170+
"type": "number",
171+
"description": "The number of tokens consumed during generation.",
172+
"example": 120000
173+
}
174+
},
175+
"required": [
176+
"credits_used"
177+
]
178+
}
179+
},
180+
"description": "Additional details about the generation."
181+
}
182+
},
183+
"required": [
184+
"id",
185+
"status"
186+
]
187+
}
188+
}
189+
}
190+
}
191+
},
192+
"x-hideTryItPanel": true
193+
}
194+
}
195+
},
196+
"components": {
197+
"securitySchemes": {
198+
"access-token": {
199+
"scheme": "bearer",
200+
"bearerFormat": "<YOUR_AIMLAPI_KEY>",
201+
"type": "http",
202+
"description": "Bearer key"
203+
}
204+
}
205+
}
206+
}

0 commit comments

Comments
 (0)