{"modality":"image","operations":["background-remove"],"commonArguments":["references","outputFormat"],"modelSpecificArguments":[],"defaults":{"outputFormat":"png"},"capabilities":{"resolutions":[],"aspectRatios":[],"references":{"types":["image"],"maximum":{"image":1},"totalMaximum":1},"frames":{"first":false,"last":false,"lastOnly":false,"keyframesMaximum":0,"timed":false},"frameReferenceMix":false,"audio":"unsupported","countMaximum":1},"promptRequired":false,"promptMaximum":null,"verification":"documented","sources":[{"url":"https://fal.ai/models/fal-ai/bria/background/remove","checkedAt":"2026-12-01"},{"url":"https://replicate.com/bria/remove-background","checkedAt":"2026-12-01"}],"notices":["Documented background-removal schema for BRIA RMBG 2.0 across fal and Replicate. Produces an alpha-capable cutout (PNG or WebP); open weights are CC BY-NC 4.0 while partner APIs include commercial usage under provider terms."],"modelId":"bria/remove-background","operation":"background-remove","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"references":{"maxItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["image"]},"asset":{"anyOf":[{"type":"object","properties":{"assetKey":{"type":"string","minLength":1,"maxLength":300}},"required":["assetKey"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false}]}},"required":["type","asset"],"additionalProperties":false},"allOf":[{"contains":{"required":["type"],"properties":{"type":{"const":"image"}}},"minContains":0,"maxContains":1}],"minItems":1},"outputFormat":{"type":"string","enum":["png","webp"],"default":"png"}},"additionalProperties":false,"allOf":[{"not":{"required":["size","resolution"]}},{"not":{"required":["size","aspectRatio"]}}],"required":["references"],"x-opengen":{"modelId":"bria/remove-background","operation":"background-remove","capabilities":{"resolutions":[],"aspectRatios":[],"references":{"types":["image"],"maximum":{"image":1},"totalMaximum":1},"frames":{"first":false,"last":false,"lastOnly":false,"keyframesMaximum":0,"timed":false},"frameReferenceMix":false,"audio":"unsupported","countMaximum":1},"notices":["Documented background-removal schema for BRIA RMBG 2.0 across fal and Replicate. Produces an alpha-capable cutout (PNG or WebP); open weights are CC BY-NC 4.0 while partner APIs include commercial usage under provider terms.","Runtime validation also checks model-specific combinations, media contents and regional route restrictions."],"sources":[{"url":"https://fal.ai/models/fal-ai/bria/background/remove","checkedAt":"2026-12-01"},{"url":"https://replicate.com/bria/remove-background","checkedAt":"2026-12-01"}]}},"examples":{"request":{"modelId":"bria/remove-background","operation":"background-remove","input":{"outputFormat":"png","references":[{"type":"image","asset":{"assetKey":"REPLACE_WITH_OWNED_ASSET_KEY"}}]},"billing":"managed"},"generate":{"operationId":"media.generate","input":{"modelId":"bria/remove-background","operation":"background-remove","input":{"outputFormat":"png","references":[{"type":"image","asset":{"assetKey":"REPLACE_WITH_OWNED_ASSET_KEY"}}]},"billing":"managed"},"idempotencyKey":"REPLACE_WITH_SAVED_IDEMPOTENCY_KEY"},"cli":"opengen generate --input request.json --idempotency-key \"$OPENGEN_IDEMPOTENCY_KEY\"","placeholders":["input.references.0.asset.assetKey"],"notices":["Template only. Replace owned asset placeholders after upload prepare/PUT/complete; edit the prompt before submitting.","Inspect published route pricing, regional restrictions and budget before authorizing a separate billable submission. Persist a unique idempotency key with the request before submitting.","Managed billing is explicit in this example. Select BYOK only when the user chooses their provider account as payer; unknown direct charges cannot be capped by OpenGen."]}}