> Documentation index: https://api.veed.io/llms.txt. Fetch it to find every other page, as Markdown.

# VideoBackgroundRemovalInput

## Fields

- `output_codec` · enum · optional — Output encoding. vp9 (the default) yields a single webm video with an alpha channel; h264 yields two files (the RGB video and an alpha matte) and is recommended for better RGB quality. Accepts `vp9`, `h264`. Defaults to `"vp9"`.
- `refine_foreground_edges` · boolean · optional — Improves the quality of the extracted subject's edges. Defaults to `true`.
- `subject_is_person` · boolean · optional — Set to false when the subject is not a person. Defaults to `true`.
- `video_url` · url · required — URL of the source video to remove the background from.

## JSON Schema

```json
{
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "examples": [
        "https://api.veed.io/schemas/VideoBackgroundRemovalInput.json"
      ],
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "output_codec": {
      "default": "vp9",
      "description": "Output encoding. vp9 (the default) yields a single webm video with an alpha channel; h264 yields two files (the RGB video and an alpha matte) and is recommended for better RGB quality.",
      "enum": [
        "vp9",
        "h264"
      ],
      "examples": [
        "vp9"
      ],
      "type": "string"
    },
    "refine_foreground_edges": {
      "default": true,
      "description": "Improves the quality of the extracted subject's edges.",
      "type": "boolean"
    },
    "subject_is_person": {
      "default": true,
      "description": "Set to false when the subject is not a person.",
      "type": "boolean"
    },
    "video_url": {
      "description": "URL of the source video to remove the background from.",
      "examples": [
        "https://static-assets.veed.io/api-examples/bg-v2v-input.mp4"
      ],
      "format": "uri",
      "maxLength": 8192,
      "minLength": 1,
      "pattern": "^[Hh][Tt][Tt][Pp][Ss]?://",
      "patternDescription": "an http(s) URL",
      "type": "string"
    }
  },
  "required": [
    "video_url"
  ],
  "type": "object"
}
```

Rendered page: https://api.veed.io/reference/video-background-removal-input
