---
title: "p-video-infiniteworlds"
url: "https://docs.api.pruna.ai/guides/models/p-video-infiniteworlds"
image: "https://docs.api.pruna.ai/_og/d/c_Ocean.takumi,title_p-video-infiniteworlds,props_eyJ0aGVtZSI6eyJtb2RlIjoibGlnaHQiLCJjb2xvcnMiOnsicHJpbWFyeSI6IiM3YzNhZWQifX19,p_Ii9ndWlkZXMvbW9kZWxzL3AtdmlkZW8taW5maW5pdGV3b3JsZHMi,s_t8Bo4eUxaSzPcZOb.png"
---

# p-video-infiniteworlds

Generate immersive world-exploration videos from a text prompt, optionally seeded with a starting image

## [Overview](#overview)

p-video-infiniteworlds generates world-exploration videos from a text prompt. You can optionally provide a starting image (image-to-video), a reference image for the last frame, or an audio track to condition the generation.

**Rate Limit:** 50 requests per minute

**Category:** Video Generation

**Pricing:**

| Configuration   | Price                            |
| :-------------- | :------------------------------- |
| All resolutions | 0.01$ per second of output video |

## [Quickstart](#quickstart)

##### Text-to-Video (Synchronous)

```bash
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: p-video-infiniteworlds' \
-H 'Try-Sync: true' \
-d '{
"input": {
"prompt": "A drone flight over an endless floating archipelago at sunset.",
"duration": 5
}
}'
```

##### Text-to-Video (Asynchronous)

```bash
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: p-video-infiniteworlds' \
-d '{
"input": {
"prompt": "A drone flight over an endless floating archipelago at sunset.",
"duration": 5,
"fps": 24
}
}'
```

##### Image-to-Video

Upload a starting image, then reference its URL:

```bash
curl -X POST "https://api.pruna.ai/v1/files" \
  -H "apikey: YOUR_API_KEY" \
  -F "content=@/path/to/start.jpg"
```

```bash
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: p-video-infiniteworlds' \
-d '{
"input": {
"prompt": "The camera drifts forward through the scene.",
"image": "https://your-url.com/start.jpg"
}
}'
```

#### [Parameters](#parameters)

###### Required Parameters

| Parameter | Type   | Description                      |
| :-------- | :----- | :------------------------------- |
| prompt    | string | Text prompt for video generation |

##### Optional Parameters

| Parameter        | Type    | Default | Description                                                                      |
| :--------------- | :------ | :------ | :------------------------------------------------------------------------------- |
| duration         | integer | 5       | Duration of the video in seconds (1-20). Ignored when audio is provided          |
| fps              | integer | 24      | Frames per second of the video. Options: 24, 48                                  |
| image            | string  | -       | Input image to generate video from (image-to-video). Supports jpg, jpeg, png, webp |
| last_frame_image | string  | -       | Reference image for the last frame of the video. Supports jpg, jpeg, png, webp   |
| audio            | string  | -       | Input audio to condition video generation. Supports flac, mp3, wav               |
| save_audio       | boolean | true    | Save the video with audio                                                        |
| seed             | integer | random  | Random seed. Set for reproducible generation                                     |