# Outpainting

## Submit an outpainting request

<mark style="color:blue;">`GET`</mark> `https://api.quickqr.art/v1/predictions/queue`

#### Headers

| Name                                        | Type   | Description     |
| ------------------------------------------- | ------ | --------------- |
| x-api-key<mark style="color:red;">\*</mark> | String | \<your-api-key> |

#### Request Body

| Name                                              | Type     | Description                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| workflow<mark style="color:red;">\*</mark>        | String   | Fixed value: `outpainting`                                                                                                                                                                                                                                                                                                                                                                                       |
| image<mark style="color:red;">\*</mark>           | String   | The url to origin image to paint out.                                                                                                                                                                                                                                                                                                                                                                            |
| prompt                                            | String   | The prompt to generate. If not provided, we will generate a summary of your image by our AI model.                                                                                                                                                                                                                                                                                                               |
| negativePrompt                                    | String   | The negative prompt (what you don't want to see in the generated images.)                                                                                                                                                                                                                                                                                                                                        |
| seed                                              | integer  | <p>Seed number to create a field of visual noise, similar to television static, as a starting point for generating the initial image grids.</p><p>Range: <code>0-9007199254740991</code></p><p>Default value: <code>random</code></p>                                                                                                                                                                            |
| image\_width<mark style="color:red;">\*</mark>    | integer  | The width of original image. We will use it to resize the input image before paint.                                                                                                                                                                                                                                                                                                                              |
| image\_height<mark style="color:red;">\*</mark>   | integer  | The height of original image. We will use it to resize the input image before paint.                                                                                                                                                                                                                                                                                                                             |
| padding\_left<mark style="color:red;">\*</mark>   | interger | Padding left.                                                                                                                                                                                                                                                                                                                                                                                                    |
| padding\_bottom<mark style="color:red;">\*</mark> | interger | Padding bottom.                                                                                                                                                                                                                                                                                                                                                                                                  |
| padding\_top<mark style="color:red;">\*</mark>    | interger | Padding top.                                                                                                                                                                                                                                                                                                                                                                                                     |
| padding\_right<mark style="color:red;">\*</mark>  | interger | Padding right.                                                                                                                                                                                                                                                                                                                                                                                                   |
| type<mark style="color:red;">\*</mark>            | String   | <p>There are 2 types:</p><p><code>one\_shot</code>: do less steps, cheaper.</p><p><code>multi\_shots</code>: do more steps, expensiver.</p>                                                                                                                                                                                                                                                                      |
| webhook                                           | String   | An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](https://docs.quickqr.art/apis/http-api-reference/predictions#get-a-prediction) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. |

Example curl request:

```bash
curl --location 'https://api.quickqr.art/v1/predictions/queue' \
--header 'x-api-key: <Insert your api key>' \
--header 'Content-Type: application/json' \
--data '{
    "workflow": "outpainting",
    "image": "https://delivery.quickqr.art/qr-v4/a80203d68e4248699de3592ca2ef62fc-20231203103444.png",
    "prompt": "best quality, masterpiece, depth of field, beautiful woman, big dress, trees, flowers, sky, water",
    "negativePrompt": "",
    "seed": 2800163943969242,
    "image_width": 512,
    "image_height": 512,
    "padding_left": 512,
    "padding_right": 512,
    "padding_top": 512,
    "padding_bottom": 512,
    "type": "multi_shots"
}
'
```
