Background
Imgix provides AI-powered parameters for modifying image backgrounds. You can remove a background entirely to isolate a subject, replace it with AI-generated scenery using a text prompt, or combine both with additional modifiers like shadow generation, foreground type hints, and AI model selection.
Background Removal
The bg-remove parameter detects the primary subject in an image and removes its background, returning a transparent PNG. Use bg-remove-model to select from multiple AI providers, bg-remove-add-shadow to add an AI-generated shadow beneath the subject, and bg-remove-fg-type to provide a subject type hint for improved accuracy. The bg parameter can be combined with bg-remove to replace the transparent area with a solid color.
Loading images...
Background Replacement
The bg-replace parameter identifies the subject in an image and replaces the background with AI-generated content based on a text prompt. Use bg-replace-neg-prompt to exclude unwanted elements from the generated scene, and bg-replace-fallback to control behavior when replacement fails.

