# Pixelcut Looping Video

> Turn one product photo into a seamless 5 to 15 second video loop with a locked camera, subtle ambient motion or a full 360° spin.


## Overview

- **Endpoint**: `https://fal.run/pixelcut/looping-video`
- **Model ID**: `pixelcut/looping-video`
- **Category**: image-to-video
- **Kind**: inference
**Tags**: image-to-video, looping, e-commerce, product



## Pricing

$0.08 per second at 480p, $0.16 per second at 768p, and $0.32 per second at 1080p

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:


- **`image_url`** (`string`, _required_):
  Input image the video starts and ends on (JPEG, PNG, or WebP)
  - Examples: "https://cdn3.pixelcut.app/fal/looping-video/model.jpg", "https://cdn3.pixelcut.app/fal/looping-video/shirt.jpg"

- **`prompt`** (`string`, _optional_):
  Optional creative direction for the motion. Camera stays locked regardless. Default value: `""`
  - Default: `""`

- **`duration`** (`integer`, _optional_):
  Video duration in seconds Default value: `5`
  - Default: `5`
  - Range: `5` to `15`

- **`resolution`** (`ResolutionEnum`, _optional_):
  Output resolution Default value: `"1080p"`
  - Default: `"1080p"`
  - Options: `"480p"`, `"768p"`, `"1080p"`

- **`motion`** (`MotionEnum`, _optional_):
  Motion style: 'subtle' for gentle ambient movement, 'spin' for one full 360° revolution ending on the source frame Default value: `"subtle"`
  - Default: `"subtle"`
  - Options: `"subtle"`, `"spin"`

- **`include_audio`** (`boolean`, _optional_):
  Keep the generated audio track (off by default; the loop is silent)
  - Default: `false`



**Required Parameters Example**:

```json
{
  "image_url": "https://cdn3.pixelcut.app/fal/looping-video/model.jpg"
}
```

**Full Example**:

```json
{
  "image_url": "https://cdn3.pixelcut.app/fal/looping-video/model.jpg",
  "duration": 5,
  "resolution": "1080p",
  "motion": "subtle"
}
```


### Output Schema

The API returns the following output format:

- **`video`** (`Video`, _optional_):
  Looping MP4 that starts and ends on the input image
  - Examples: {"content_type":"video/mp4","url":"https://cdn3.pixelcut.app/fal/looping-video/model.mp4"}, {"content_type":"video/mp4","url":"https://cdn3.pixelcut.app/fal/looping-video/shirt.mp4"}



**Example Response**:

```json
{
  "video": {
    "content_type": "video/mp4",
    "url": "https://cdn3.pixelcut.app/fal/looping-video/model.mp4"
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/pixelcut/looping-video \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "image_url": "https://cdn3.pixelcut.app/fal/looping-video/model.jpg"
   }'
```

### 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(
    "pixelcut/looping-video",
    arguments={
        "image_url": "https://cdn3.pixelcut.app/fal/looping-video/model.jpg"
    },
    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("pixelcut/looping-video", {
  input: {
    image_url: "https://cdn3.pixelcut.app/fal/looping-video/model.jpg"
  },
  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/pixelcut/looping-video)
- [API Documentation](https://fal.ai/models/pixelcut/looping-video/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=pixelcut/looping-video)

### fal.ai Platform

- [Platform Documentation](https://fal.ai/docs/documentation)
- [Python Client](https://fal.ai/docs/api-reference/client-libraries/python)
- [JavaScript Client](https://fal.ai/docs/api-reference/client-libraries/javascript)

### Other agent-readable surfaces

This file covers one model. To find anything else:

- [Platform overview](https://fal.ai/llms.txt): Entry points and representative endpoint IDs
- [Documentation index](https://fal.ai/docs/llms.txt): Every documentation page
- [Full documentation text](https://fal.ai/docs/llms-full.txt): The whole documentation inlined
- Any other model: `https://fal.ai/models/<endpoint-id>/llms.txt`
