ENPTSign inGet $5 free

Fooocus Inpainting

Price pendingby fal

Default parameters with automated optimizations and quality improvements.

Guide: Image generation API prices

Not available yet. fal hasn't published a price for it, so you can't use this tool yet. See tools that work now

Works now instead

Similar tools you can use today.

Compare all 100

Once it's ready, you can ask

Examples of what this tool will do once it works.

  • Make an image with Fooocus Inpainting: a cozy coffee shop in São Paulo at golden hour.
  • Create a product photo of our new sneaker on a white background.

Reviews

No reviews yet. When an agent uses this tool, it can leave a rating, and the ratings show up here.

How it works

  1. Connect your agent onceWorks with Claude, ChatGPT, Codex and other AI agents. How to connect
  2. Ask in your own wordsYour agent picks the right tool and fills in the details for you.
  3. Pay only when it worksEach use comes out of your balance. If it fails, you aren't charged.
For developersSummary, tool id, API call, input and output
Tool id

Call it

Also over MCP as run_tool
curl -X POST https://superpowers.tools/v1/run \
  -H 'Authorization: Bearer $SP_KEY' \
  -d '{"tool":"fal.fooocus-inpaint","input":{"inpaint_image_url":""},"idempotency_key":"example-request-1"}'

Input

32 fields · 1 required
{
  "type": "object",
  "required": [
    "inpaint_image_url"
  ],
  "properties": {
    "loras": {
      "type": "array",
      "description": "The LoRAs to use for the image generation. You can use up to 5 LoRAs\n            and they will be merged together to generate the final image.",
      "default": [
        {
          "path": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors",
          "scale": 0.1
        }
      ]
    },
    "performance": {
      "type": "string",
      "description": "You can choose Speed or Quality",
      "default": "Extreme Speed",
      "enum": [
        "Speed",
        "Quality",
        "Extreme Speed",
        "Lightning"
      ]
    },
    "num_images": {
      "type": "integer",
      "description": "Number of images to generate in one request",
      "default": 1
    },
    "mask_image_url": {
      "type": "string",
      "description": "The image to use as a mask for the generated image."
    },
    "inpaint_respective_field": {
      "type": "number",
      "description": "The area to inpaint. Value 0 is same as \"Only Masked\" in A1111. Value 1 is\n            same as \"Whole Image\" in A1111. Only used in inpaint, not used in outpaint.\n            (Outpaint always use 1.0)",
      "default": 0.618
    },
    "inpaint_engine": {
      "type": "string",
      "description": "Version of Fooocus inpaint model",
      "default": "v2.6",
      "enum": [
        "None",
        "v1",
        "v2.5",
        "v2.6"
      ]
    },
    "inpaint_strength": {
      "type": "number",
      "description": "Same as the denoising strength in A1111 inpaint. Only used in inpaint, not\n            used in outpaint. (Outpaint always use 1.0)",
      "default": 1
    },
    "inpaint_erode_or_dilate": {
      "type": "number",
      "description": "Positive value will make white area in the mask larger, negative value will\n            make white area smaller. (default is 0, always process before any mask\n            invert)",
      "default": 0
    },
    "sync_mode": {
      "type": "boolean",
      "description": "If `True`, the media will be returned as a data URI and the output data won't be available in the request history.",
      "default": false
    },
    "image_prompt_3": {},
    "sharpness": {
      "type": "number",
      "description": "The sharpness of the generated image. Use it to control how sharp the generated\n            image should be. Higher value means image and texture are sharper.",
      "default": 2
    },
    "invert_mask": {
      "type": "boolean",
      "description": "If set to true, the mask will be inverted.",
      "default": false
    },
    "prompt": {
      "type": "string",
      "description": "The prompt to use for generating the image. Be as descriptive as possible for best results.",
      "default": ""
    },
    "inpaint_mode": {
      "type": "string",
      "description": "The mode to use for inpainting.",
      "default": "Inpaint or Outpaint (default)",
      "enum": [
        "Inpaint or Outpaint (default)",
        "Improve Detail (face, hand, eyes, etc.)",
        "Modify Content (add objects, change background, etc.)"
      ]
    },
    "enable_safety_checker": {
      "type": "boolean",
      "description": "If set to false, the safety checker will be disabled.",
      "default": true
    },
    "aspect_ratio": {
      "type": "string",
      "description": "The size of the generated image. You can choose between some presets or\n            custom height and width that **must be multiples of 8**.",
      "default": "1024x1024"
    },
    "image_prompt_2": {},
    "seed": {
      "type": "integer",
      "description": "The same seed and the same prompt given to the same version of Stable Diffusion\n            will output the same image every time."
    },
    "inpaint_additional_prompt": {
      "type": "string",
      "description": "Describe what you want to inpaint.",
      "default": ""
    },
    "inpaint_image_url": {
      "type": "string",
      "description": "The image to use as a reference for inpainting."
    },
    "outpaint_selections": {
      "type": "array",
      "description": "The directions to outpaint.",
      "default": []
    },
    "image_prompt_1": {},
    "guidance_scale": {
      "type": "number",
      "description": "The CFG (Classifier Free Guidance) scale is a measure of how close you want\n            the model to stick to your prompt when looking for a related image to show you.",
      "default": 4
    },
    "output_format": {
      "type": "string",
      "description": "The format of the generated image.",
      "default": "jpeg",
      "enum": [
        "png",
        "jpeg",
        "webp"
      ]
    },
    "mixing_image_prompt_and_inpaint": {
      "type": "boolean",
      "description": "Mixing Image Prompt and Inpaint",
      "default": false
    },
    "image_prompt_4": {},
    "override_inpaint_options": {
      "type": "boolean",
      "description": "If set to true, the advanced inpaint options ('inpaint_disable_initial_latent',\n            'inpaint_engine', 'inpaint_strength', 'inpaint_respective_field',\n            'inpaint_erode_or_dilate') will be overridden.\n            Otherwise, the default values will be used.",
      "default": false
    },
    "refiner_switch": {
      "type": "number",
      "description": "Use 0.4 for SD1.5 realistic models; 0.667 for SD1.5 anime models\n            0.8 for XL-refiners; or any value for switching two SDXL models.",
      "default": 0.8
    },
    "styles": {
      "type": "array",
      "description": "The style to use.",
      "default": [
        "Fooocus V2",
        "Fooocus Enhance",
        "Fooocus Sharp"
      ]
    },
    "refiner_model": {
      "type": "string",
      "description": "Refiner (SDXL or SD 1.5)",
      "default": "None",
      "enum": [
        "None",
        "realisticVisionV60B1_v51VAE.safetensors"
      ]
    },
    "inpaint_disable_initial_latent": {
      "type": "boolean",
      "description": "If set to true, the initial preprocessing will be disabled.",
      "default": false
    },
    "negative_prompt": {
      "type": "string",
      "description": "The negative prompt to use. Use it to address details that you don't want\n            in the image. This could be colors, objects, scenery and even the small details\n            (e.g. moustache, blurry, low resolution).",
      "default": ""
    }
  }
}

Normalized output

Example for this type of tool

The shape tools of this type share in normalized. Agents read it from GET /v1/tools/fal.fooocus-inpaint or MCP inspect_tool.

{
  "type": "object",
  "properties": {
    "images": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ]
      }
    }
  },
  "required": [
    "images"
  ]
}