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

# VideoBackgroundRemovalJob

## Fields

- `credits_charged` · integer · optional — Credits charged for the job. Present once the job is COMPLETED and the final charge is known.
- `credits_estimated` · integer · optional — Credits quoted before the job ran. Present only on the response that created the job. This is an estimate, not the price: the charged amount can be higher or lower.
- `error` · object · optional — Failure information. Present once the job has FAILED.
- `job_id` · uuid · required — Stable identifier of the job and of the resource it produces.
- `result` · object · optional — The produced resource. Present once the job is COMPLETED.
- `status` · enum · required — Current lifecycle state of the job. Accepts `PROCESSING`, `COMPLETED`, `FAILED`, `CANCELLED`.

## JSON Schema

```json
{
  "additionalProperties": false,
  "properties": {
    "credits_charged": {
      "description": "Credits charged for the job. Present once the job is COMPLETED and the final charge is known.",
      "format": "int32",
      "type": "integer"
    },
    "credits_estimated": {
      "description": "Credits quoted before the job ran. Present only on the response that created the job. This is an estimate, not the price: the charged amount can be higher or lower.",
      "format": "int32",
      "type": "integer"
    },
    "error": {
      "description": "Failure information. Present once the job has FAILED.",
      "additionalProperties": false,
      "properties": {
        "code": {
          "description": "Stable, machine-readable failure code for this job type.",
          "enum": [
            "input_validation",
            "content_moderation",
            "invalid_file",
            "audio_too_long",
            "transload_failed",
            "generation_failed",
            "timeout",
            "insufficient_credits"
          ],
          "type": "string"
        },
        "details": {
          "description": "Optional structured failure details.",
          "items": {
            "additionalProperties": false,
            "properties": {
              "field": {
                "description": "Dotted path to the offending input, when applicable.",
                "type": "string"
              },
              "message": {
                "description": "Human-readable explanation of this detail.",
                "type": "string"
              },
              "type": {
                "description": "The category of this detail entry.",
                "type": "string"
              }
            },
            "required": [
              "type",
              "message"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "message": {
          "description": "Human-readable failure message.",
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "job_id": {
      "description": "Stable identifier of the job and of the resource it produces.",
      "format": "uuid",
      "type": "string"
    },
    "result": {
      "description": "The produced resource. Present once the job is COMPLETED.",
      "additionalProperties": false,
      "properties": {
        "files": {
          "description": "Rendered background-removed file(s): one webm with alpha for vp9; the RGB video and the alpha matte (two files) for h264.",
          "items": {
            "additionalProperties": false,
            "properties": {
              "content_type": {
                "description": "The mime type of the file.",
                "examples": [
                  "video/mp4"
                ],
                "type": "string"
              },
              "file_name": {
                "description": "The name of the file.",
                "type": "string"
              },
              "file_size": {
                "description": "The size of the file in bytes.",
                "format": "int64",
                "type": "integer"
              },
              "url": {
                "description": "The URL where the file can be downloaded from.",
                "type": "string"
              }
            },
            "required": [
              "url"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "files"
      ],
      "type": "object"
    },
    "status": {
      "description": "Current lifecycle state of the job.",
      "enum": [
        "PROCESSING",
        "COMPLETED",
        "FAILED",
        "CANCELLED"
      ],
      "type": "string"
    }
  },
  "required": [
    "job_id",
    "status"
  ],
  "type": "object"
}
```

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