VideoUltra API
    Preparing search index...

    Interface BackgroundRemoverOptions

    interface BackgroundRemoverOptions {
        maxSide?: number;
        model?: "auto" | BackgroundModel;
        modelHost?: string;
        runtimePath?: string;
    }
    Index
    maxSide?: number

    Longest side of the result in pixels (default 4096; bigger photos are scaled down).

    model?: "auto" | BackgroundModel

    Default auto: see chooseBackgroundModel.

    modelHost?: string

    Where model files come from — self-host them by mirroring the model repos (files are fetched from <modelHost>/<repo>/resolve/main/onnx/<file>). Default https://huggingface.co.

    runtimePath?: string

    Where the runtime's .wasm files are served (default: next to its JS module).