# Happy Horse Video Edit · Edit Video

Edit and transform video with Happy Horse Video Edit · Edit Video from fal through one Spiral API key. It runs in the background and returns video. Pay as you go, with no subscription.

- Provider: fal
- Category: Video
- Runs: In the background
- Returns: video
- Tool id: `fal` / `alibaba/happy-horse/video-edit`
- Page: https://spiral.ai/tools/fal/alibaba/happy-horse/video-edit

## Pricing

Up to $43.68 per run at the default inputs for 60 seconds of input. `resolution`: 720p $21.84, 1080p (default) $43.68.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 930 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `video_url` (required) | URL or file |  | — | URL of the source video to edit. Formats: MP4, MOV (H.264 recommended). Duration: 3-60 s. Longer side ≤ 2160 px, shorter side ≥ 320 px. Aspect ratio between 1:2.5 and 2.5:1. Frame rate > 8 fps. Max 100 MB. The output video preserves the source aspect ratio. Output duration matches the input video, capped at 15 s (longer inputs are truncated to the first 15 s). Max file size: 100.0MB, Min duration: 3s, Max duration: 60s, Timeout: 30.0s |
| `prompt` (required) | text |  | — | Text prompt describing the desired edit. Reference any supplied reference images using @Image1, @Image2, ... up to @Image5. Max 2500 characters. |
| `reference_image_urls` | URLs or files |  | — | Optional reference images used to guide the edit (up to 5). Formats: JPEG, JPG, PNG, WEBP. Dimensions must be at least 300px. Aspect ratio between 1:2.5 and 2.5:1. Max 10 MB each. |
| `resolution` | one of | 720p, 1080p | 1080p | Output video resolution tier. |
| `audio_setting` | one of | auto, origin | auto | Audio handling. 'auto': model decides whether to regenerate audio. 'origin': preserve the original audio from the input video. |
| `seed` | number (whole) |  | — | Random seed for reproducibility (0-2147483647). |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "alibaba/happy-horse/video-edit",
    "input": {
      "video_url": "https://storage.googleapis.com/falserverless/example_inputs/editto/example_in.mp4",
      "prompt": "Recolor the sky to a deep purple sunset."
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=fal&model=alibaba%2Fhappy-horse%2Fvideo-edit

## Common questions

### Happy Horse Video Edit · Edit Video

**How much does Happy Horse Video Edit · Edit Video cost?**

Up to $43.68 per run at the default inputs for 60 seconds of input. `resolution`: 720p $21.84, 1080p (default) $43.68. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Happy Horse Video Edit · Edit Video through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "alibaba/happy-horse/video-edit"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with fal to use Happy Horse Video Edit · Edit Video?**

No. Spiral runs it on its own fal account and charges your Spiral balance.

**Can my AI agent use Happy Horse Video Edit · Edit Video?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

