# Sima Video Upscaler Lite

> Upscale your videos at real-time speeds with Sima Labs!


## Overview

- **Endpoint**: `https://fal.run/simalabs/sima-video-upscaler-lite`
- **Model ID**: `simalabs/sima-video-upscaler-lite`
- **Category**: video-to-video
- **Kind**: inference
**Tags**: upscale, video-to-video



## Pricing

Your request will cost $0.00025 per megapixel of video data (width × height × frames).
For example, if your upscaled video is 1920×1080 with 121 frames, the total cost will be $0.06.

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:


- **`video_url`** (`string`, _required_):
  URL of the video to upscale
  - Examples: "https://public-bucket-20251031-222058.s3.us-west-2.amazonaws.com/example_nighttime.mp4"

- **`crf`** (`integer`, _optional_):
  CRF quality (lower = better quality, 0-51) Default value: `18`
  - Default: `18`
  - Range: `0` to `51`
  - Examples: 18



**Required Parameters Example**:

```json
{
  "video_url": "https://public-bucket-20251031-222058.s3.us-west-2.amazonaws.com/example_nighttime.mp4"
}
```

**Full Example**:

```json
{
  "video_url": "https://public-bucket-20251031-222058.s3.us-west-2.amazonaws.com/example_nighttime.mp4",
  "crf": 18
}
```


### Output Schema

The API returns the following output format:

- **`video`** (`Video-Output`, _required_):
  The upscaled video
  - Examples: {"content_type":"video/mp4","url":"https://public-bucket-20251031-222120.s3.us-west-2.amazonaws.com/upscaled_nighttime.mp4"}

- **`original_size`** (`array`, _required_):
  Original video dimensions (width, height)

- **`upscaled_size`** (`array`, _required_):
  Upscaled video dimensions (width, height)

- **`frame_rate`** (`string`, _required_):
  Video frame rate



**Example Response**:

```json
{
  "video": {
    "content_type": "video/mp4",
    "url": "https://public-bucket-20251031-222120.s3.us-west-2.amazonaws.com/upscaled_nighttime.mp4"
  },
  "frame_rate": ""
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/simalabs/sima-video-upscaler-lite \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "video_url": "https://public-bucket-20251031-222058.s3.us-west-2.amazonaws.com/example_nighttime.mp4"
   }'
```

### 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(
    "simalabs/sima-video-upscaler-lite",
    arguments={
        "video_url": "https://public-bucket-20251031-222058.s3.us-west-2.amazonaws.com/example_nighttime.mp4"
    },
    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("simalabs/sima-video-upscaler-lite", {
  input: {
    video_url: "https://public-bucket-20251031-222058.s3.us-west-2.amazonaws.com/example_nighttime.mp4"
  },
  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/simalabs/sima-video-upscaler-lite)
- [API Documentation](https://fal.ai/models/simalabs/sima-video-upscaler-lite/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=simalabs/sima-video-upscaler-lite)

### 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)
