{"version":"1","model":{"id":"fal-ai/flux-pro/v1/erase","name":"FLUX.1 Pro Erase","kind":"image","availability":"available","available":true,"restricted":false,"api_key_only":false,"description":"FLUX.1 Pro Erase — remove objects or text from images using a binary mask with Black Forest Labs' Pro model.","categories":["inpaint"],"prompt_required":false,"prompt_supported":true,"supports":{"referenceImage":true},"requires":{"referenceImage":true},"aspect_ratios":[],"resolutions":[],"durations":[],"output_formats":["jpeg","png"],"max_images":4,"base_credits":7,"api_gross_margin_percent":20,"added_at":"2026-05-21","popularity_rank":112,"example_prompt":"","preview":{"image":"https://cdn.artemotion.ai/file/artemotion-ai-bckt/model-previews/flux-lora-inpainting-sm.webp"},"schema_url":"/api/v1/models?id=fal-ai%2Fflux-pro%2Fv1%2Ferase","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://www.artemotion.ai/api/v1/models?id=fal-ai%2Fflux-pro%2Fv1%2Ferase","title":"FLUX.1 Pro Erase generation request","description":"Request body accepted by POST /api/v1/generate for fal-ai/flux-pro/v1/erase.","type":"object","properties":{"model_id":{"type":"string","const":"fal-ai/flux-pro/v1/erase","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"},"dilate_pixels":{"title":"Dilate Pixels","description":"Number of pixels to expand the mask edges by. Higher values produce cleaner erase results around the masked region.","default":10,"type":"number","minimum":0,"maximum":100,"multipleOf":1},"output_format":{"title":"Output Format","description":"The format of the generated image.","default":"jpeg","type":"string","enum":["jpeg","png"]},"mask_url":{"title":"Mask Url","description":"The URL of a black/white mask image where white (255) marks pixels to erase and black (0) marks pixels to keep. Needs to match the dimensions of the i","type":"string"},"num_images":{"type":"integer","minimum":1,"maximum":4},"reference_image_url":{"type":"string","format":"uri"}},"required":["model_id","mask_url","reference_image_url"],"additionalProperties":false},"parameters":[{"key":"dilate_pixels","label":"Dilate Pixels","type":"number","default":10,"min":0,"max":100,"step":1,"description":"Number of pixels to expand the mask edges by. Higher values produce cleaner erase results around the masked region."},{"key":"output_format","label":"Output Format","type":"select","default":"jpeg","options":["jpeg","png"],"description":"The format of the generated image."},{"key":"mask_url","label":"Mask Url","type":"text","required":true,"description":"The URL of a black/white mask image where white (255) marks pixels to erase and black (0) marks pixels to keep. Needs to match the dimensions of the i"}]}}