> ## Documentation Index
> Fetch the complete documentation index at: https://docs.framelane.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Effects Examples

> Request bodies for visual effects on video elements.

Effects are set via the `effects` array on `video` elements. Each entry has a `type` and an optional `intensity` (0–100, defaults to `50`). Only fields that differ from their defaults are shown.

<Warning>
  Effects are only supported on `video` elements — not on `image`. The API returns `422` if you add `effects` to an image element.
</Warning>

## Single effect

```json theme={null}
{
  "width": 1920,
  "height": 1080,
  "elements": [
    {
      "type": "video",
      "source_url": "https://cdn.example.com/clip.mp4",
      "effects": [{ "type": "vintage", "intensity": 70 }]
    }
  ]
}
```

## Chroma key (green screen)

Remove a green background. Tune the HSL bounds via `chroma_settings` (defaults shown below target a standard green screen).

```json theme={null}
{
  "width": 1920,
  "height": 1080,
  "elements": [
    {
      "type": "video",
      "source_url": "https://cdn.example.com/greenscreen.mp4",
      "effects": [
        {
          "type": "chroma_key",
          "intensity": 100,
          "chroma_settings": {
            "hue_min": 60,
            "hue_max": 180,
            "sat_min": 0.3,
            "sat_max": 1.0,
            "lum_min": 0.2,
            "lum_max": 0.9
          }
        }
      ]
    }
  ]
}
```

## Multiple effects

Stack effects on the same element.

```json theme={null}
{
  "width": 1920,
  "height": 1080,
  "elements": [
    {
      "type": "video",
      "source_url": "https://cdn.example.com/clip.mp4",
      "effects": [
        { "type": "add_grain", "intensity": 40 },
        { "type": "cc_halftone", "intensity": 50 }
      ]
    }
  ]
}
```

## Film and retro

| `type`      | Description              |
| ----------- | ------------------------ |
| `vintage`   | Aged film / vintage look |
| `polaroid`  | Polaroid-style frame     |
| `portra`    | Kodak Portra emulation   |
| `super8`    | Super 8mm grain          |
| `filmic`    | Cinematic tone           |
| `add_grain` | Dusty film grain         |

## Digital

| `type`                 | Description             |
| ---------------------- | ----------------------- |
| `rgb_split`            | RGB channel separation  |
| `chromatic_aberration` | Color fringing at edges |
| `ghosting`             | Motion ghost trails     |
| `displacement_map`     | Heavy displacement warp |

## Blur and lens

| `type`                | Description             |
| --------------------- | ----------------------- |
| `camera_lens_blur`    | Bokeh light circles     |
| `camera_lens_blur_bg` | Bokeh blur background   |
| `box_blur`            | Uniform box blur        |
| `mosaic`              | Block pixelation        |
| `optics_compensation` | Fisheye lens distortion |
| `viewfinder`          | Camera viewfinder frame |

## Color and tone

| `type`         | Description          |
| -------------- | -------------------- |
| `invert`       | Invert colors        |
| `posterize`    | Reduce color levels  |
| `cc_halftone`  | Halftone dot pattern |
| `night_vision` | Green night vision   |
| `thermal`      | Heat map colors      |

## Overlay and atmosphere

| `type`         | Description                         |
| -------------- | ----------------------------------- |
| `lens_flare`   | Lens flare streaks                  |
| `strobe_light` | Strobing flash                      |
| `snow`         | Falling snow particles              |
| `glow`         | Soft diffusion glow                 |
| `sepia`        | Warm sepia tone with vignette       |
| `echo`         | Motion echo / double-exposure trail |
