> ## Documentation Index
> Fetch the complete documentation index at: https://magicads.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Photo Studio

> AI Photo Studio, powered by Stable Diffusion, is a cutting-edge software designed to transform your photography experience.

<Warning>This is a **Paid** extension that you need to first purchase via **Marketplace**</Warning>

## Introduction

**AI Photo Studio**, powered by **Stable Diffusion**, is a cutting-edge software designed to transform your photography experience. Leveraging state-of-the-art AI technology, our platform seamlessly enhances and edits your photos with professional precision. Whether you're a seasoned photographer or a casual user, AI Photo Studio provides intuitive tools for Reimagining, Inpainting, Outpainting, Searching and Replacing, and more, all powered by the robust capabilities of stable diffusion algorithms. With AI Photo Studio, you can effortlessly turn ordinary photos into stunning visual masterpieces, exploring creativity with a user-friendly interface that adapts to your unique style and artistic vision. Experience the future of photo editing with intelligent features that deliver unparalleled quality and creativity.

<Card title="Included Features">
  * ReImagine
  * Same Style Image
  * Erase Objects
  * Inpaint Image
  * Outpaint Image
  * Search and Replace
  * Remove Background
  * Sketch to Image
  * Structure to Image
  * Conservative Upscale
  * Creative Upscale
  * Convert to 3D
  * Text to Image
  * More will be added soon...
</Card>

## Extension Configuration

<Steps>
  <Step title="Step 1">
    Go to the **Marketplace** in **Admin Panel** and install **AI Photo Studio** extension after successfully purchasing it first.

    <img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/p-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=41e7739731a13e36df5efe3559e95ee6" width="399" height="288" data-path="images/extensions/photo-studio/p-1.png" />
  </Step>

  <Step title="Step 2">
    After installation is completed, go to **AI Settings** page in Admin Panel and click on **Extensions** tab there. Click on **AI Photo Studio** there.

    <img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/p-2.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=a8c563d21a6337c88b1b3fd76f878661" width="520" height="109" data-path="images/extensions/photo-studio/p-2.png" />
  </Step>

  <Step title="Step 3">
    Go to <a href="https://platform.stability.ai/" target="_blank">stability.ai</a> website, sign up with them and get your **API Key** on your profile page after you successfully complete the registration process on their website.
    <Note>Store your Stable Diffusion API key securely and never share it publicly.</Note>
  </Step>

  <Step title="Step 4">
    To control the settings of **AI Photo Studio** exension, return to **AI Settings** page in Admin Panel and click on the **Extensions** tab, and select **AI Photo Studio** extension.

    1. Enter your **Stability API Key**.
    2. Turn on the checkboxes for **Photo Studio Feature** and **Photo Studio Free Tier Access**
       <Note>If you don't turn on Photo Studio Free Tier Access, then users who did not subscribe to any subscription plan where you have Photo Studio feature enabled, will not have any access to this feature</Note>
    3. After you are done with configuration, click on the **Save** button.

    <img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/p-3.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=4a5180d1dbdfd883a77bbe1ec9e0e6d2" width="583" height="605" data-path="images/extensions/photo-studio/p-3.png" />
  </Step>

  <Step title="Step 5">
    With the **Set AI Photo Studio Feature Credits** button, you can set how much media credits each photo studio task will require. Davinci AI gives you full control on how you want to charge your users based on media tasks.

    <img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/p-4.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=17a92c4831cc1b566116836dd5ced736" width="498" height="964" data-path="images/extensions/photo-studio/p-4.png" />
  </Step>

  <Step title="Step 6">
    <Check>
      You now have completed the AI Photo Studio extension configuration. Proceed to the section below on how to use it.
    </Check>
  </Step>
</Steps>

## How to Use

Using AI Photo Studio extension is very easy and straightforward.

1. Go to **AI Photo Studio** in User panel.
2. Select your preferred **task** from the dropdown list.
3. Upload **Target Image**, must be in **PNG | JPEG | WEBP** formats. It is the image you want to add effects based on the task selected and provided prompt.
4. Enter you **prompt**, this will be your instructions on what to do with the target image uploaded earlier.
5. Click **Generate** button and that is it.
6. You can also set following features in the **Advanced Settings** section:

* Negative Prompt - what not to show or touch in the image
* Creativity
* Control Strength
* Seed

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/p-5.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=7859fcf694c03d2fc31d77d0328409a5" width="410" height="872" data-path="images/extensions/photo-studio/p-5.png" />

## Explanation of Photo Studio tasks

### ReImagine

This mode also generates an image from text but uses an existing image as the starting point.

### Same Style Image

This service extracts stylistic elements from an input image (target image) and uses it to guide the creation of an output image based on the prompt. The result is a new image in the same style as the control image.

Example:

1. Target Image:

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/style-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=e52113862f4ca2f428e75fe1b76806f0" width="1152" height="1152" data-path="images/extensions/photo-studio/style-1.png" />

2. Prompt: `cat in the forest`

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/style-2.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=c6f1e9cc91c2e73a5f4fbf2b68b33d70" width="1024" height="1024" data-path="images/extensions/photo-studio/style-2.png" />

### Erase Objects

The Erase service removes unwanted objects, such as blemishes on portraits or items on desks, using image masks.

Example:

1. Target Image with mask zone:

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/erase-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=a09fc6b5ee01c1e9c6df6cfe8e9017f7" width="1024" height="1024" data-path="images/extensions/photo-studio/erase-1.png" />

2. Result:

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/erase-2.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=412a08febe2de03dc27cb3e039c9a678" width="2048" height="2048" data-path="images/extensions/photo-studio/erase-2.png" />

### Inpaint Image

Intelligently modify images by filling in or replacing specified areas with new content based on the content of a "mask" image.

Example:

1. Target image with mask zone:

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/inpaint-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=fd259fc325eb32f526c9d8d26c6c3731" width="1024" height="1024" data-path="images/extensions/photo-studio/inpaint-1.png" />

2. Prompt: `artificer of time and space`

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/inpaint-2.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=7592a2c76de80d3cf02b6399bbf520ba" width="2048" height="2048" data-path="images/extensions/photo-studio/inpaint-2.png" />

### Outpaint Image

The Outpaint service inserts additional content in an image to fill in the space in any direction. Compared to other automated or manual attempts to expand the content in an image, the Outpaint service should minimize artifacts and signs that the original image has been edited.

Example:

1. Target image:

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/outpaint-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=53309e4d180482fc06040456bb27f3fa" width="1024" height="1024" data-path="images/extensions/photo-studio/outpaint-1.png" />

2. Result:

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/outpaint-2.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=53a208e09dd333aaf51600039f81b44a" width="2048" height="1324" data-path="images/extensions/photo-studio/outpaint-2.png" />

### Search and Replace

The Search and Replace service is a specific version of inpainting that does not require a mask. Instead, users can leverage a `search_prompt` to identify an object in simple language to be replaced. The service will automatically segment the object and replace it with the object requested in the prompt.

Example:

1. Target image

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/search-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=b4024a8d086a5c9201b396940559cb32" width="1024" height="1024" data-path="images/extensions/photo-studio/search-1.png" />

2. Prompt: `a victorian queen standing in the forest, looking at the viewer`.

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/search-2.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=893c64fcbf214a5df341c854264ca495" width="2048" height="2048" data-path="images/extensions/photo-studio/search-2.png" />

### Remove Background

The Remove Background service accurately segments the foreground from an image and implements and removes the background.

Example:

1. Target image

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/bg-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=8bef0948548000f1228908961ea1ae7e" width="768" height="768" data-path="images/extensions/photo-studio/bg-1.png" />

2. Result

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/bg-2.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=b2fb718f597a1292eb87cec6777dc499" width="768" height="768" data-path="images/extensions/photo-studio/bg-2.png" />

### Sketch to Image

This service offers an ideal solution for design projects that require brainstorming and frequent iterations. It upgrades rough hand-drawn sketches to refined outputs with precise control. For non-sketch images, it allows detailed manipulation of the final appearance by leveraging the contour lines and edges within the image.

Example:

1. Target Image

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/sketch-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=b21f7267e7e7d89829f51c479699c880" width="1024" height="1024" data-path="images/extensions/photo-studio/sketch-1.png" />

2. Prompt: `a creepy wooden cathedral in the forest`

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/sketch-2.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=1cfb1f40344583c659da2877b9f9a850" width="1024" height="1024" data-path="images/extensions/photo-studio/sketch-2.png" />

### Structure to Image

This service excels in generating images by maintaining the structure of an input image, making it especially valuable for advanced content creation scenarios such as recreating scenes or rendering characters from models.

Example:

1. Target Image

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/structure-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=d50d0401a24770659416d1e78265a943" width="1024" height="1024" data-path="images/extensions/photo-studio/structure-1.png" />

2. Prompt: `a victorian toad covered in gems standing in the forest, looking at the viewer`

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/structure-2.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=39e81a7d389f4e835cecae1e6556c09c" width="1024" height="1024" data-path="images/extensions/photo-studio/structure-2.png" />

### Conservative Upscale

Takes images between 64x64 and 1 megapixel and upscales them all the way to 4K resolution. Put more generally, it can upscale images \~20-40x times while preserving all aspects. Conservative Upscale minimizes alterations to the image and should not be used to reimagine an image.

1. Target Image

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/conservative-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=c86e0db675003d565aee40935502aa74" width="1024" height="1024" data-path="images/extensions/photo-studio/conservative-1.png" />

2. Result

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/conservative-2.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=27033ab3d4fe61541ec102921654fe9f" width="3112" height="3112" data-path="images/extensions/photo-studio/conservative-2.png" />

### Creative Upscale

Takes images between 64x64 and 1 megapixel and upscales them all the way to 4K resolution. Put more generally, it can upscale images \~20-40x times while preserving, and often enhancing, quality. Creative Upscale works best on highly degraded images and is not for photos of 1mp or above as it performs heavy reimagining (controlled by creativity scale).

1. Target Image

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/creative-1.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=e33922a743d864d27d26260e0950c749" width="299" height="524" data-path="images/extensions/photo-studio/creative-1.png" />

2. Prompt: `This dreamlike digital art captures a vibrant, kaleidoscopic bird in a lush rainforest`
   <br />Result: [https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable\_Image\_API\_Public.ipynb#scrollTo=vIzPj82p46wM](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=vIzPj82p46wM)

### Text to Image

Most advanced text to image generation service, Stable Image Ultra creates the highest quality images with unprecedented prompt understanding. Ultra excels in typography, complex compositions, dynamic lighting, vibrant hues, and overall cohesion and structure of an art piece. Made from the most advanced models, including Stable Diffusion 3.5, Ultra offers the best of the Stable Diffusion ecosystem.

Example:

1. Prompt: `dark high contrast render of a psychedelic tree of life illuminating dust in a mystical cave.`

2. Result:

<img src="https://mintcdn.com/magicads/dYFGOqfTWj_LAAnj/images/extensions/photo-studio/ultra.png?fit=max&auto=format&n=dYFGOqfTWj_LAAnj&q=85&s=d98648ef5e6b1c44a8b6f95852b5fe52" width="1216" height="832" data-path="images/extensions/photo-studio/ultra.png" />
