Imgix APIsRendering APIBackgroundBackground Removal Model

Background Removal Model

bg-remove-model

The bg-remove-model parameter selects which AI model performs background removal when bg-remove=true is set. Different models may produce better results depending on the subject matter, so this parameter gives you control over which provider handles the removal.

The parameter accepts integer values 1 through 4:

ValueDescription
1bg (Remove.bg): A general-purpose background removal model.
2 (default)bria: Background removal using the Bria AI model.
3fal-ideogram: Background removal using the Fal.ai Ideogram model.
4fal-pixelcut: Background removal using the Fal.ai Pixelcut model.

When bg-remove-model is omitted, the default model is applied automatically.

bg-remove-model=1 (Remove.bg)
sandbox-demo
bg-remove-model=4 (Fal.ai Pixelcut)
sandbox-demo

Billing

Each model value is a separate background removal operation. The first time an image is rendered with a given bg-remove-model value, it is billed as one Premium Render. Further derivatives of that result, such as a different size, crop, or format, are billed as Standard Renders.

Requesting a different model for an image that has already been processed is a new operation, so it is billed as a new Premium Render the first time.

Questions

Please reach out to your Account Manager or to Support if you have any questions or feedback.