G
GetLLMs

AI Image Inpainting and Outpainting

Unleash creativity with AI Image Inpainting and Outpainting. Ready to experience the power of AI? Start your journey here!

Platform: Replicate
Image InpaintingImage OutpaintingPrompt-based Image GenerationContent-Aware Image Editing
130 runs
A100 (80GB)
License Check Required

🚀Function Overview

Performs selective image editing through inpainting (modifying parts of an image) and outpainting (extending image borders) using text prompts and parametric controls.

Key Features

  • Image modification via text prompts
  • Precise control over generation parameters (steps, dimensions, guidance)
  • Border extension mechanics with overlap controls
  • Custom image resizing and alignment options
  • LoRA model weight adjustments

Use Cases

  • Photo editing and restoration
  • Creating panoramic image expansions
  • AI-assisted graphic design
  • Generating contextual image alternatives
  • Content-aware background replacement

⚙️Input Parameters

prompt

string

Prompt for generated image

image

string

Upload an image for inpainting. This will be the base image that will be partially modified.

num_inference_steps

integer

The number of interfence steps

guidance

number

seed

integer

Random seed. Set for reproducible generation

lora_scale

number

The weight of lora Scale

width

integer

height

integer

overlap_percentage

integer

resize_option

string

Input image resize option

custom_resize_percentage

integer

alignment

string

Input image alignment option perspective to background image

overlap_left

boolean

Activation Outpaint left overlap

overlap_right

boolean

Activation Outpaint right overlap

overlap_top

boolean

Activation Outpaint top overlap

overlap_bottom

boolean

Activation Outpaint bottom overlap

💡Usage Examples

Example 1

Input Parameters

{
  "image": "https://replicate.delivery/pbxt/MlYSaSOb3QaDtLorlxkRDkeH6uFi3lr9F3LB6yuXQ4Kn6ZxP/13039-2946705617-1girl%2C%20solo%2C%20long%20hair%2C%20bust%2C%20blindfold%2C%20blush%2C%20black%20hair%2C%20hair%20ornament%2C%20long%20sleeves%2C%20holding%2C%20off%20shoulders%2C%20closed%20mouth%2C%20s.png",
  "width": 1280,
  "height": 1024,
  "prompt": "High quailty, 4K, UHD",
  "guidance": 30,
  "alignment": "Right",
  "overlap_top": false,
  "overlap_left": true,
  "overlap_right": false,
  "resize_option": "Full",
  "overlap_bottom": false,
  "overlap_percentage": 15,
  "num_inference_steps": 28,
  "custom_resize_percentage": 50
}

Output Results

https://replicate.delivery/czjl/Envzpo0YaSYlCpfuVhIBQpr57bqc2AjuFjFdK3pyaWRvyVPKA/outpaint_output.png
https://replicate.delivery/czjl/fWkpdPhnDC0TOKk2DimBxO2LnihcQ89F7cyuihtFlKUvyVPKA/bg_output.png

Quick Actions

Technical Specifications

Hardware Type
A100 (80GB)
Run Count
130
Commercial Use
Unknown/Restricted
Platform
Replicate

Related Keywords

Text-to-Image GenerationPhoto EditingImage RestorationAI Graphic DesignContent-Aware Image ReplacementPanoramic Image Expansion