
- Inpainting: Changing a portion of an existing imagesuch as removing or adding an object.
- Extending an image: Extending an image outwardthis is also sometimes call outpaintinguncropping or “zooming out”.
Inpainting - Modifying an existing image
In this example we will use Fill to add new elements to an existing image. It can also be used to remove or alter existing elements.
Fill is controlled by two inputs:
- a selection
- a text prompt
Marquee
tool (ctrl/⌘ + M)indicates the region of the image you wish to modify.
The prompt allows you to guide the generation in a specific directionyou can also decide to not provide any prompt and let Alpaca
decide what to generate based on the rest of the image.
Extending an image
It is possible to extend an image by repeating the process describe above in all directionsbut that would be pretty cumbersome. For this purposeAlpaca has a second mode to make this process much faster.
Firstextend your document’s canvas to the new desired size (keep in mind Alpaca cannot fill zones more than 2048x2048 in dimension).

Fill Settingschange the Region to fill settings to Transparency.

Generate.
Parameters
Main Parameters
Main Parameters
Prompt
ThePrompt boxlocated in the main section of the Alpaca paneltakes in a text prompt describing the subject matter,
compositionand characteristics of your desired image. You can also describe what you Exclude.
You can learn more about writing prompts by checking our our Prompt Guide.Images
Allows you to specify how many images you want Alpaca to generate from 1 to 5. The higher the number of imagesthe more credits the generation will costand the slowest it will be.Seed
The seed acts as a unique identifierguiding the creation process of each generation. If you retain the same seed with identical settingsthe output will always be the same. Retain the seedwhile changing other parameters (e.g. altering the prompt) and you’ll derive a distinct yet related creation. For an element of unpredictabilityset the seed to0 and Alpaca will choose a random seed for each imagecreating more variationsSteps
Higher number of steps will lead to better qualitybut also cost more credits and make the generation slower.Fill Settings
Fill Settings
Region to fill
Controls which part of your selection will be changed in the generation.Entire Selection: Default mode — your entire selection will be modified to match the surrounding pixels and your prompt. Best for inpainting.Transparency: Only the parts of your selection that are transparent will be modified. This is best for extending an image (Zooming out or Outpainting)
Advanced Settings
Advanced Settings
Prompt Strength
ThePrompt Strength slider controls the influence of the prompt — higher values of this parameter force the model to be more
attentive to the prompt. We can consider this to be a “rigid” vs “relaxed” interpretation of the prompt. 7 is a good balance.