Skip to content

Commit ad32b31

Browse files
committed
feat: docs ai update
1 parent caee5d4 commit ad32b31

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

pages/public-api.mdx

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,23 @@ Response:
226226
}
227227
```
228228

229+
---
230+
229231
## NEW! (Generate videos with AI)
230232

233+
Request:
231234
```http
232235
POST https://api.postiz.com/public/v1/generate-video
233236
```
234237

238+
Response:
239+
```json
240+
[{
241+
"id": "string",
242+
"path": "URL of the generated video"
243+
}]
244+
```
245+
235246
### Payload (Slides of images)
236247
```json
237248
{
@@ -244,13 +255,30 @@ POST https://api.postiz.com/public/v1/generate-video
244255
}
245256
```
246257

258+
Get voices
259+
```http
260+
POST https://api.postiz.com/public/v1/video/image-text-slides/loadVoices
261+
```
262+
263+
Response
264+
```json
265+
{
266+
"voices": [
267+
{
268+
"id": "string",
269+
"name": "string"
270+
}
271+
]
272+
}
273+
```
274+
247275
### Payload (VEO3 fast video) - Subscribed users after trial
248276
```json
249277
{
250278
"type": "veo3",
251279
"output": "vertical|horizontal",
252280
"customParams": {
253-
"voice": "",
281+
"prompt": "",
254282
// images - optional (Maximum 3 images)
255283
"images": [{"id": "string", "path": "string"}]
256284
}

0 commit comments

Comments
 (0)