{"version":"1","model":{"id":"fal-ai/flux-general/inpainting","name":"FLUX.1 General Inpainting","kind":"image","availability":"available","available":true,"restricted":false,"api_key_only":false,"description":"FLUX.1 General Inpainting — advanced masked inpainting with NAG and full LoRA support.","categories":["lora","inpaint"],"prompt_required":true,"prompt_supported":true,"supports":{"referenceImage":true},"requires":{"referenceImage":true},"aspect_ratios":["1:1","16:9","9:16","4:3","3:4","21:9","9:21","Custom"],"resolutions":["512","1024","2048"],"durations":[],"output_formats":["jpeg","png"],"max_images":4,"base_credits":19,"api_gross_margin_percent":20,"added_at":"2026-05-08","popularity_rank":117,"example_prompt":"A majestic white wolf with piercing ice-blue eyes sitting in a snowy clearing, surrounded by ancient pine trees dusted with snow, moonlight filtering through the canopy, photorealistic fur detail, cinematic lighting","preview":{"image":"https://cdn.artemotion.ai/file/artemotion-ai-bckt/model-previews/flux-general-inpainting-sm.webp"},"schema_url":"/api/v1/models?id=fal-ai%2Fflux-general%2Finpainting","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://www.artemotion.ai/api/v1/models?id=fal-ai%2Fflux-general%2Finpainting","title":"FLUX.1 General Inpainting generation request","description":"Request body accepted by POST /api/v1/generate for fal-ai/flux-general/inpainting.","type":"object","properties":{"model_id":{"type":"string","const":"fal-ai/flux-general/inpainting","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"},"lora_path":{"title":"LoRA 1","description":"URL or path to the first LoRA weights.","default":"","type":"string"},"lora_scale":{"title":"LoRA 1 Scale","description":"Blend strength for LoRA 1 (0 = off, 1 = full).","default":1,"type":"number","minimum":-4,"maximum":4,"multipleOf":0.05},"lora_path_2":{"title":"LoRA 2","description":"URL or path to the second LoRA weights.","default":"","type":"string"},"lora_scale_2":{"title":"LoRA 2 Scale","description":"Blend strength for LoRA 2.","default":1,"type":"number","minimum":-4,"maximum":4,"multipleOf":0.05},"lora_path_3":{"title":"LoRA 3","description":"URL or path to the third LoRA weights.","default":"","type":"string"},"lora_scale_3":{"title":"LoRA 3 Scale","description":"Blend strength for LoRA 3.","default":1,"type":"number","minimum":-4,"maximum":4,"multipleOf":0.05},"strength":{"title":"Strength","description":"The strength to use for inpainting/image-to-image. Only used if the image_url is provided. 1.0 is completely remakes the image while 0.0 preserves the","default":0.85,"type":"number","minimum":0.01,"maximum":1},"output_format":{"title":"Output Format","description":"The format of the generated image.","default":"png","type":"string","enum":["jpeg","png"]},"base_shift":{"title":"Base Shift","description":"Base shift for the scheduled timesteps","default":0.5,"type":"number","minimum":0.01,"maximum":5},"sigma_schedule":{"title":"Sigma Schedule","description":"Sigmas schedule for the denoising process.","type":"string","enum":["sgm_uniform"]},"reference_end":{"title":"Reference End","description":"The percentage of the total timesteps when the reference guidance is to be ended.","default":1,"type":"number","minimum":0,"maximum":1},"real_cfg_scale":{"title":"Real Cfg Scale","description":"The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show","default":3.5,"type":"number","minimum":0,"maximum":5},"nag_end":{"title":"Nag End","description":"The proportion of steps to apply NAG. After the specified proportion of steps has been iterated, the remaining steps will use original attention proce","default":0.25,"type":"number","minimum":0,"maximum":1},"seed":{"title":"Seed","description":"The same seed and the same prompt given to the same version of the model will output the same image every time.","type":"integer"},"reference_strength":{"title":"Reference Strength","description":"Strength of reference_only generation. Only used if a reference image is provided.","default":0.65,"type":"number","minimum":-3,"maximum":3},"use_beta_schedule":{"title":"Use Beta Schedule","description":"Specifies whether beta sigmas ought to be used.","default":false,"type":"boolean"},"negative_prompt":{"title":"Negative Prompt","description":"Negative prompt to steer the image generation away from unwanted features. By default, we will be using NAG for processing the negative prompt.","default":"","type":"string"},"reference_start":{"title":"Reference Start","description":"The percentage of the total timesteps when the reference guidance is to bestarted.","default":0,"type":"number","minimum":0,"maximum":1},"nag_tau":{"title":"Nag Tau","description":"The tau for NAG. Controls the normalization of the hidden state. Higher values will result in a less aggressive normalization, but may also lead to un","default":2.5,"type":"number","minimum":0},"max_shift":{"title":"Max Shift","description":"Max shift for the scheduled timesteps","default":1.15,"type":"number","minimum":0.01,"maximum":5},"guidance_scale":{"title":"Guidance Scale","description":"The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show","default":3.5,"type":"number","minimum":0,"maximum":20},"reference_image_url":{"title":"Reference Image Url","description":"URL of Image for Reference-Only","type":"string"},"scheduler":{"title":"Scheduler","description":"Scheduler for the denoising process.","default":"euler","type":"string","enum":["euler","dpmpp_2m"]},"mask_url":{"title":"Mask Url","description":"The mask to area to Inpaint in.","type":"string"},"nag_alpha":{"title":"Nag Alpha","description":"The alpha value for NAG. This value is used as a final weighting factor for steering the normalized guidance (positive and negative prompts) in the di","default":0.25,"type":"number","minimum":0,"maximum":1},"use_cfg_zero":{"title":"Use Cfg Zero","description":"Uses CFG-zero init sampling as in https://arxiv.org/abs/2503.18886.","default":false,"type":"boolean"},"use_real_cfg":{"title":"Use Real Cfg","description":"Uses classical CFG as in SD1.5, SDXL, etc. Increases generation times and price when set to be true. If using XLabs IP-Adapter v1, this will be turned","default":false,"type":"boolean"},"nag_scale":{"title":"Nag Scale","description":"The scale for NAG. Higher values will result in a image that is more distant to the negative prompt.","default":3,"type":"number","minimum":1,"maximum":10},"enable_safety_checker":{"title":"Enable Safety Checker","description":"If set to true, the safety checker will be enabled.","default":true,"type":"boolean"},"num_inference_steps":{"title":"Num Inference Steps","description":"The number of inference steps to perform.","default":28,"type":"number","minimum":1,"maximum":50,"multipleOf":1},"fill_image":{"title":"Fill Image URL","description":"URL of an image used to fill masked areas / influence the generation.","type":"string"},"controlnets":{"title":"ControlNets (JSON)","description":"JSON array of ControlNet configs, e.g. [{\"path\":\"...\",\"control_image_url\":\"...\",\"conditioning_scale\":1}]. Only one controlnet is supported at this time.","type":"object","additionalProperties":true},"controlnet_unions":{"title":"ControlNet Unions (JSON)","description":"JSON array of ControlNet Union configs, e.g. [{\"path\":\"...\",\"controls\":[...]}].","type":"object","additionalProperties":true},"ip_adapters":{"title":"IP-Adapters (JSON)","description":"JSON array of IP-Adapter configs, e.g. [{\"path\":\"...\",\"image_encoder_path\":\"...\",\"image_url\":\"...\",\"scale\":1}].","type":"object","additionalProperties":true},"control_loras":{"title":"Control LoRAs (JSON)","description":"JSON array of control-image LoRAs, e.g. [{\"path\":\"...\",\"control_image_url\":\"...\",\"scale\":1,\"preprocess\":\"canny\"}].","type":"object","additionalProperties":true},"easycontrols":{"title":"EasyControls (JSON)","description":"JSON array of EasyControl inputs, e.g. [{\"control_method_url\":\"...\",\"image_url\":\"...\",\"image_control_type\":\"...\",\"scale\":1}].","type":"object","additionalProperties":true},"aspect_ratio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","21:9","9:21","Custom"]},"resolution":{"type":"string","enum":["512","1024","2048"]},"num_images":{"type":"integer","minimum":1,"maximum":4}},"required":["model_id","prompt","mask_url","reference_image_url"],"additionalProperties":false},"parameters":[{"key":"lora_path","label":"LoRA 1","type":"text","default":"","description":"URL or path to the first LoRA weights."},{"key":"lora_scale","label":"LoRA 1 Scale","type":"number","default":1,"min":-4,"max":4,"step":0.05,"description":"Blend strength for LoRA 1 (0 = off, 1 = full)."},{"key":"lora_path_2","label":"LoRA 2","type":"text","default":"","description":"URL or path to the second LoRA weights."},{"key":"lora_scale_2","label":"LoRA 2 Scale","type":"number","default":1,"min":-4,"max":4,"step":0.05,"description":"Blend strength for LoRA 2."},{"key":"lora_path_3","label":"LoRA 3","type":"text","default":"","description":"URL or path to the third LoRA weights."},{"key":"lora_scale_3","label":"LoRA 3 Scale","type":"number","default":1,"min":-4,"max":4,"step":0.05,"description":"Blend strength for LoRA 3."},{"key":"strength","label":"Strength","type":"number","default":0.85,"min":0.01,"max":1,"description":"The strength to use for inpainting/image-to-image. Only used if the image_url is provided. 1.0 is completely remakes the image while 0.0 preserves the"},{"key":"output_format","label":"Output Format","type":"select","default":"png","options":["jpeg","png"],"description":"The format of the generated image."},{"key":"base_shift","label":"Base Shift","type":"number","default":0.5,"min":0.01,"max":5,"description":"Base shift for the scheduled timesteps"},{"key":"sigma_schedule","label":"Sigma Schedule","type":"select","options":["sgm_uniform"],"description":"Sigmas schedule for the denoising process."},{"key":"reference_end","label":"Reference End","type":"number","default":1,"min":0,"max":1,"description":"The percentage of the total timesteps when the reference guidance is to be ended."},{"key":"real_cfg_scale","label":"Real Cfg Scale","type":"number","default":3.5,"min":0,"max":5,"description":"The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show"},{"key":"nag_end","label":"Nag End","type":"number","default":0.25,"min":0,"max":1,"description":"The proportion of steps to apply NAG. After the specified proportion of steps has been iterated, the remaining steps will use original attention proce"},{"key":"seed","label":"Seed","type":"seed","description":"The same seed and the same prompt given to the same version of the model will output the same image every time."},{"key":"reference_strength","label":"Reference Strength","type":"number","default":0.65,"min":-3,"max":3,"description":"Strength of reference_only generation. Only used if a reference image is provided."},{"key":"use_beta_schedule","label":"Use Beta Schedule","type":"toggle","default":false,"description":"Specifies whether beta sigmas ought to be used."},{"key":"negative_prompt","label":"Negative Prompt","type":"text","default":"","description":"Negative prompt to steer the image generation away from unwanted features. By default, we will be using NAG for processing the negative prompt."},{"key":"reference_start","label":"Reference Start","type":"number","default":0,"min":0,"max":1,"description":"The percentage of the total timesteps when the reference guidance is to bestarted."},{"key":"nag_tau","label":"Nag Tau","type":"number","default":2.5,"min":0,"description":"The tau for NAG. Controls the normalization of the hidden state. Higher values will result in a less aggressive normalization, but may also lead to un"},{"key":"max_shift","label":"Max Shift","type":"number","default":1.15,"min":0.01,"max":5,"description":"Max shift for the scheduled timesteps"},{"key":"guidance_scale","label":"Guidance Scale","type":"number","default":3.5,"min":0,"max":20,"description":"The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show"},{"key":"reference_image_url","label":"Reference Image Url","type":"text","description":"URL of Image for Reference-Only"},{"key":"scheduler","label":"Scheduler","type":"select","default":"euler","options":["euler","dpmpp_2m"],"description":"Scheduler for the denoising process."},{"key":"mask_url","label":"Mask Url","type":"text","required":true,"description":"The mask to area to Inpaint in."},{"key":"nag_alpha","label":"Nag Alpha","type":"number","default":0.25,"min":0,"max":1,"description":"The alpha value for NAG. This value is used as a final weighting factor for steering the normalized guidance (positive and negative prompts) in the di"},{"key":"use_cfg_zero","label":"Use Cfg Zero","type":"toggle","default":false,"description":"Uses CFG-zero init sampling as in https://arxiv.org/abs/2503.18886."},{"key":"use_real_cfg","label":"Use Real Cfg","type":"toggle","default":false,"description":"Uses classical CFG as in SD1.5, SDXL, etc. Increases generation times and price when set to be true. If using XLabs IP-Adapter v1, this will be turned"},{"key":"nag_scale","label":"Nag Scale","type":"number","default":3,"min":1,"max":10,"description":"The scale for NAG. Higher values will result in a image that is more distant to the negative prompt."},{"key":"enable_safety_checker","label":"Enable Safety Checker","type":"toggle","default":true,"description":"If set to true, the safety checker will be enabled."},{"key":"num_inference_steps","label":"Num Inference Steps","type":"number","default":28,"min":1,"max":50,"step":1,"description":"The number of inference steps to perform."},{"key":"fill_image","label":"Fill Image URL","type":"text","description":"URL of an image used to fill masked areas / influence the generation."},{"key":"controlnets","label":"ControlNets (JSON)","type":"json_object","description":"JSON array of ControlNet configs, e.g. [{\"path\":\"...\",\"control_image_url\":\"...\",\"conditioning_scale\":1}]. Only one controlnet is supported at this time."},{"key":"controlnet_unions","label":"ControlNet Unions (JSON)","type":"json_object","description":"JSON array of ControlNet Union configs, e.g. [{\"path\":\"...\",\"controls\":[...]}]."},{"key":"ip_adapters","label":"IP-Adapters (JSON)","type":"json_object","description":"JSON array of IP-Adapter configs, e.g. [{\"path\":\"...\",\"image_encoder_path\":\"...\",\"image_url\":\"...\",\"scale\":1}]."},{"key":"control_loras","label":"Control LoRAs (JSON)","type":"json_object","description":"JSON array of control-image LoRAs, e.g. [{\"path\":\"...\",\"control_image_url\":\"...\",\"scale\":1,\"preprocess\":\"canny\"}]."},{"key":"easycontrols","label":"EasyControls (JSON)","type":"json_object","description":"JSON array of EasyControl inputs, e.g. [{\"control_method_url\":\"...\",\"image_url\":\"...\",\"image_control_type\":\"...\",\"scale\":1}]."}]}}