# Pixverse

> Generate fast high quality video clips from text and image prompts using PixVerse v4.5


## Overview

- **Endpoint**: `https://fal.run/fal-ai/pixverse/v4.5/image-to-video/fast`
- **Model ID**: `fal-ai/pixverse/v4.5/image-to-video/fast`
- **Category**: image-to-video
- **Kind**: inference
**Tags**: stylized, transform



## Pricing

For **5s video** your request will cost **0.3$ for 360p and 540p, 0.4$ for 720p and 0.8$ for 1080p**. For **$1** you can run this model with **approximately 2 times**.

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`prompt`** (`string`, _required_)
  - Examples: "A woman warrior with her hammer walking with his glacier wolf."

- **`resolution`** (`ResolutionEnum`, _optional_):
  The resolution of the generated video Default value: `"720p"`
  - Default: `"720p"`
  - Options: `"360p"`, `"540p"`, `"720p"`

- **`negative_prompt`** (`string`, _optional_):
  Negative prompt to be used for the generation Default value: `""`
  - Default: `""`
  - Examples: "blurry, low quality, low resolution, pixelated, noisy, grainy, out of focus, poorly lit, poorly exposed, poorly composed, poorly framed, poorly cropped, poorly color corrected, poorly color graded"

- **`style`** (`Enum`, _optional_):
  The style of the generated video
  - Options: `"anime"`, `"3d_animation"`, `"clay"`, `"comic"`, `"cyberpunk"`

- **`seed`** (`integer`, _optional_):
  The same seed and the same prompt given to the same version of the model
  will output the same video every time.

- **`image_url`** (`string`, _required_):
  URL of the image to use as the first frame
  - Examples: "https://v3.fal.media/files/zebra/qL93Je8ezvzQgDOEzTjKF_KhGKZTEebZcDw6T5rwQPK_output.png"

- **`camera_movement`** (`Enum`, _optional_):
  The type of camera movement to apply to the video
  - Options: `"horizontal_left"`, `"horizontal_right"`, `"vertical_up"`, `"vertical_down"`, `"zoom_in"`, `"zoom_out"`, `"crane_up"`, `"quickly_zoom_in"`, `"quickly_zoom_out"`, `"smooth_zoom_in"`, `"camera_rotation"`, `"robo_arm"`, `"super_dolly_out"`, `"whip_pan"`, `"hitchcock"`, `"left_follow"`, `"right_follow"`, `"pan_left"`, `"pan_right"`, `"fix_bg"`



**Required Parameters Example**:

```json
{
  "prompt": "A woman warrior with her hammer walking with his glacier wolf.",
  "image_url": "https://v3.fal.media/files/zebra/qL93Je8ezvzQgDOEzTjKF_KhGKZTEebZcDw6T5rwQPK_output.png"
}
```

**Full Example**:

```json
{
  "prompt": "A woman warrior with her hammer walking with his glacier wolf.",
  "resolution": "720p",
  "negative_prompt": "blurry, low quality, low resolution, pixelated, noisy, grainy, out of focus, poorly lit, poorly exposed, poorly composed, poorly framed, poorly cropped, poorly color corrected, poorly color graded",
  "image_url": "https://v3.fal.media/files/zebra/qL93Je8ezvzQgDOEzTjKF_KhGKZTEebZcDw6T5rwQPK_output.png"
}
```


### Output Schema

The API returns the following output format:

- **`video`** (`File`, _required_):
  The generated video
  - Examples: {"file_size":6420765,"file_name":"output.mp4","content_type":"video/mp4","url":"https://fal.media/files/koala/HEWK7BBwqWrz7F5nAZzp7_output.mp4"}



**Example Response**:

```json
{
  "video": {
    "file_size": 6420765,
    "file_name": "output.mp4",
    "content_type": "video/mp4",
    "url": "https://fal.media/files/koala/HEWK7BBwqWrz7F5nAZzp7_output.mp4"
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/fal-ai/pixverse/v4.5/image-to-video/fast \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "prompt": "A woman warrior with her hammer walking with his glacier wolf.",
     "image_url": "https://v3.fal.media/files/zebra/qL93Je8ezvzQgDOEzTjKF_KhGKZTEebZcDw6T5rwQPK_output.png"
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/pixverse/v4.5/image-to-video/fast",
    arguments={
        "prompt": "A woman warrior with her hammer walking with his glacier wolf.",
        "image_url": "https://v3.fal.media/files/zebra/qL93Je8ezvzQgDOEzTjKF_KhGKZTEebZcDw6T5rwQPK_output.png"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("fal-ai/pixverse/v4.5/image-to-video/fast", {
  input: {
    prompt: "A woman warrior with her hammer walking with his glacier wolf.",
    image_url: "https://v3.fal.media/files/zebra/qL93Je8ezvzQgDOEzTjKF_KhGKZTEebZcDw6T5rwQPK_output.png"
  },
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/fal-ai/pixverse/v4.5/image-to-video/fast)
- [API Documentation](https://fal.ai/models/fal-ai/pixverse/v4.5/image-to-video/fast/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/pixverse/v4.5/image-to-video/fast)

### fal.ai Platform

- [Platform Documentation](https://docs.fal.ai)
- [Python Client](https://docs.fal.ai/clients/python)
- [JavaScript Client](https://docs.fal.ai/clients/javascript)
