{"version":"1","model":{"id":"bria/replace-background","name":"Bria Replace Background","kind":"image","availability":"available","available":true,"restricted":false,"api_key_only":false,"description":"Bria Replace Background — replaces the background of a photo using a text prompt while keeping the subject perfectly intact.","pricing_note":"$0.04 / image (1 Bria credit)","categories":["background"],"prompt_required":false,"prompt_supported":true,"supports":{"referenceImage":true},"requires":{"referenceImage":true},"aspect_ratios":[],"resolutions":[],"durations":[],"max_images":1,"max_reference_images":2,"base_credits":5,"api_gross_margin_percent":20,"added_at":"2026-05-25","popularity_rank":208,"example_prompt":"A sunlit café terrace in Paris, warm afternoon light, blurred bokeh background, outdoor café chairs and tables","preview":{"image":"https://cdn.artemotion.ai/file/artemotion-ai-bckt/model-previews/bria-bg-remove-sm.webp"},"schema_url":"/api/v1/models?id=bria%2Freplace-background","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://www.artemotion.ai/api/v1/models?id=bria%2Freplace-background","title":"Bria Replace Background generation request","description":"Request body accepted by POST /api/v1/generate for bria/replace-background.","type":"object","properties":{"model_id":{"type":"string","const":"bria/replace-background","description":"ArtEmotion model identifier."},"extra":{"type":"object","additionalProperties":true,"description":"Model-specific settings may also be nested here."},"max_credits":{"type":"number","minimum":1,"description":"Reject before submission if the estimated list price exceeds this cap."},"webhook_url":{"type":"string","format":"uri","maxLength":2048},"webhook_secret":{"type":"string","maxLength":512},"folder_id":{"type":"string"},"prompt":{"type":"string"},"mode":{"title":"Mode","description":"High Control follows the prompt/reference most closely; Fast trades quality for speed.","default":"high_control","type":"string","enum":["high_control","base","fast"]},"negative_prompt":{"title":"Negative Prompt","description":"Describe what to avoid in the generated background.","default":"","type":"string"},"refine_prompt":{"title":"Refine Prompt","description":"Let Bria auto-refine your prompt for better backgrounds.","default":true,"type":"boolean"},"enhance_ref_images":{"title":"Enhance Reference","description":"Enhance the optional background reference image (second upload) before using it. Note: use a reference OR a prompt, not both.","default":true,"type":"boolean"},"original_quality":{"title":"Original Quality","description":"Preserve the input image's original resolution/quality.","default":false,"type":"boolean"},"force_background_detection":{"title":"Force Background Detection","description":"Force re-detection of the background even when an alpha channel is present.","default":false,"type":"boolean"},"seed":{"title":"Seed","description":"Random seed for reproducibility.","type":"integer"},"reference_image_urls":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":2}},"required":["model_id","reference_image_urls"],"additionalProperties":false},"parameters":[{"key":"mode","label":"Mode","type":"select","default":"high_control","options":["high_control","base","fast"],"description":"High Control follows the prompt/reference most closely; Fast trades quality for speed."},{"key":"negative_prompt","label":"Negative Prompt","type":"text","default":"","description":"Describe what to avoid in the generated background."},{"key":"refine_prompt","label":"Refine Prompt","type":"toggle","default":true,"description":"Let Bria auto-refine your prompt for better backgrounds."},{"key":"enhance_ref_images","label":"Enhance Reference","type":"toggle","default":true,"description":"Enhance the optional background reference image (second upload) before using it. Note: use a reference OR a prompt, not both."},{"key":"original_quality","label":"Original Quality","type":"toggle","default":false,"description":"Preserve the input image's original resolution/quality."},{"key":"force_background_detection","label":"Force Background Detection","type":"toggle","default":false,"description":"Force re-detection of the background even when an alpha channel is present."},{"key":"seed","label":"Seed","type":"seed","description":"Random seed for reproducibility."}]}}