# Generate QR Art V5s

## Submit an prediction request

<mark style="color:green;">`POST`</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:  `generate_qr_art_v5s`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| qrContent<mark style="color:red;">\*</mark> | String  | Content of QR (link, text, phone, email, ...).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| prompt<mark style="color:red;">\*</mark>    | String  | The prompt to generate.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| 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>                                                                                                                                                                                                                                                                                                                                                                    |
| steps                                       | integer | Balance steps is how many time the image is sampled. More steps maybe more artistic but also reduce the QR scanability .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| qrStrength                                  | float   | <p>QR Weight determines how much the final image will portray your QR.<br></p><p>Range: <code>0.0–3.0</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| cfg                                         | float   | How much the image generation process follows the `prompt`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| model                                       | enum    | <p>Available options: </p><p><code>universal</code> </p><p><code>niji</code> </p><p><code>dream</code></p><p><code>real</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| batchSize                                   | integer | Num outputs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| enhance                                     | enum    | <p>Available options: <code>face</code></p><p>If value is <code>face</code> the model will do additional steps to enhance face quality in the output image and require extra credits.</p>                                                                                                                                                                                                                                                                                                                                                                                                                |
| aspectRatio                                 | enum    | <p>Aspect ratio of the outputs. Available options:</p><p><code>1:1</code></p><p><code>3:4</code></p><p><code>4:3</code></p><p><code>9:16</code></p><p><code>16:9</code></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.                                                                                                                                                                                         |
| resolution                                  | enum    | <p>Resolution of the outputs.</p><p>Available options:</p><p><code>SD</code></p><p><code>HD</code></p><p><code>FullHD</code></p><p><code>UltraHD</code></p><p></p><p>Size <a href="#size-corresponds-to-aspect-ratio-and-resolution"><em>here</em></a></p>                                                                                                                                                                                                                                                                                                                                               |
| qrCodePartern                               | enum    | <p>The pattern used to generate classic qr code.</p><p>Understand pattern <a href="https://docs.quickqr.art/user-guide/qr-pattern-list">here</a>. </p><p>Available options:</p><p><code>s1</code></p><p><code>s2</code></p><p><code>s3</code></p><p><code>rd1</code></p><p><code>rd2</code></p><p><code>rd3</code></p><p><code>d1</code></p><p><code>d2</code></p><p><code>d3</code></p><p><code>r1</code></p><p><code>r2</code></p><p><code>r3</code></p><p><code>c1</code></p><p><code>c2</code></p><p><code>c3</code></p><p><code>sq1</code></p><p><code>sq2</code></p><p><code>sq3</code></p><p></p> |
| qrX                                         | integer | X position for QR code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| qrY                                         | integer | Y position for QR code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| qrRatio                                     | float   | Ratio of QR code in output.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| preset                                      | String  | <p>Presets List use for creating QR Art</p><p>Available options: <a href="#list-preset">here</a></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

{% tabs %}
{% tab title="200: OK " %}

```json
{
   "success":true,
   "data":{
      "id":"",
      "userId":"",
      "createdAt":"2023-06-21T15:02:34.401Z",
      "startedAt":null,
      "updatedAt":"2023-06-21T15:02:34.401Z",
      "completedAt":null,
      "status":"queued",
      "input":{
         "workflow":"generate_qr_art_v5s",
         "qrStrength":0.85,
         "qrSteps":10,
         "seed":1000,
         "qrImage":"",
         "prompt":"a cute cat",
         "negativePrompt":""
      },
      "output":"",
      "error": null,
      "refunded":false,
      "creditType":"API_CREDITS",
      "isScanables": [
            true
        ],
      "credits":1
   }
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

{% endtab %}

{% tab title="401: Unauthorized " %}

{% endtab %}

{% tab title="500: Internal Server Error " %}

{% endtab %}
{% endtabs %}

Example curl request:

```bash
curl --location 'https://api.quickqr.art/v1/predictions/queue' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
    "workflow": "generate_qr_art_v5s",
    "qrContent": "quickqr.art",
    "prompt": "bird, a wonderful landscape with snowy bird beautiful Christmas theme, lights pine trees decorated white colors enchantment magical dream with bows and colorful Christmas decorations fairytale background clear dream fantasy, enchantment light pink powder white aqua by Mandy jungens Thomas Kinkade Camilla D'\''Errico, on a white background, Mysterious",
    "negativePrompt": "",
    "batchSize": 1,
    "qrCodePartern": "s1",
    "aspectRatio": "16:9",
    "resolution": "FullHD",
    "qrStrength": 1.8
}'
```

#### *Size corresponds to aspect ratio and resolution*

<table data-full-width="false"><thead><tr><th align="center">AspectRatio</th><th align="center">SD</th><th align="center">HD</th><th align="center">FullHD</th><th align="center">UltraHD</th></tr></thead><tbody><tr><td align="center">1:1</td><td align="center">768x768</td><td align="center">960x960</td><td align="center">1440x1440</td><td align="center">2880x2880</td></tr><tr><td align="center">3:4</td><td align="center">672x896</td><td align="center">840x1120</td><td align="center">1248x1664</td><td align="center">2592x3456</td></tr><tr><td align="center">4:3</td><td align="center">896x672</td><td align="center">1120x840</td><td align="center">1664x1248</td><td align="center">3456x292</td></tr><tr><td align="center">9:16</td><td align="center">576x1024</td><td align="center">720x1280</td><td align="center">1080x1920</td><td align="center">2160x3840</td></tr><tr><td align="center">16:9</td><td align="center">1024x576</td><td align="center">1280x720</td><td align="center">1920x1080</td><td align="center">3840x2160</td></tr></tbody></table>

#### List Preset

|               Preset               |                                Image                                |
| :--------------------------------: | :-----------------------------------------------------------------: |
|              3d-model              | <img src="/files/xEMm6OJApRlZyAJNH9uZ" alt="" data-size="original"> |
|             analog film            | <img src="/files/mKcOP3BJl4qRbb08Fjtc" alt="" data-size="original"> |
|                anime               | <img src="/files/oDCJaizoW79D4jG6kWtJ" alt="" data-size="original"> |
|              cinematic             | <img src="/files/o8YiIM2PDdTb2p8UtaCk" alt="" data-size="original"> |
|             comic book             | <img src="/files/o2GWxzS1XSYOI4Alis1x" alt="" data-size="original"> |
|             craft clay             | <img src="/files/OebsWPcI30Bo3SIuWp9O" alt="" data-size="original"> |
|             digital art            | <img src="/files/YDddvLjFCVTCOoK1U9Xz" alt="" data-size="original"> |
|               enhance              | <img src="/files/a1Ds31G5huj7CowAAcWw" alt="" data-size="original"> |
|             fantasy art            | <img src="/files/n73AdbZmgozRbpsXiitZ" alt="" data-size="original"> |
|              isometric             | <img src="/files/VP8UVbHghm1RXyxxbchn" alt="" data-size="original"> |
|              line art              | <img src="/files/cNg1r51j2upPJFvlMvdx" alt="" data-size="original"> |
|               lowpoly              | <img src="/files/VsrawrCDTvsyqfRsvW4Y" alt="" data-size="original"> |
|              neonpunk              | <img src="/files/hBabrVVVUzLs7Sfmo1tG" alt="" data-size="original"> |
|               origami              | <img src="/files/J4r5qX30w8hC8D7aQ75m" alt="" data-size="original"> |
|            photographic            | <img src="/files/ZeERKanQTRRMWqvXkFK9" alt="" data-size="original"> |
|              pixel art             | <img src="/files/eccWwXoeDBE5g2hmJ8az" alt="" data-size="original"> |
|               texture              | <img src="/files/NdvvxtoKMS4AvLXGZj3X" alt="" data-size="original"> |
|           ads-advertising          | <img src="/files/LYxwwZk93JJ3nVf1o9Ge" alt="" data-size="original"> |
|           ads-automotive           | <img src="/files/WgjIdCcKXHYZRyjVxFeP" alt="" data-size="original"> |
|            ads-corporate           | <img src="/files/Wn8tyC0khKG3hioa3qhh" alt="" data-size="original"> |
|        ads-fashion editorial       | <img src="/files/l5VqZ9gHNOo2hJ1ZmuOd" alt="" data-size="original"> |
|        ads-food photography        | <img src="/files/6E0a3WCgsGmgqUJldrwU" alt="" data-size="original"> |
|             ads-luxury             | <img src="/files/fhaasqKQzMfIQFrfFKTW" alt="" data-size="original"> |
|           ads-real estate          | <img src="/files/azij6s6Ogz3rMNgndYaA" alt="" data-size="original"> |
|             ads-retail             | <img src="/files/TnYAtBkkCihfcomVauPw" alt="" data-size="original"> |
|          artstyle-abstract         | <img src="/files/15ETyGPssm7MJpWdsUiU" alt="" data-size="original"> |
|          artstyle-art deco         |                   ![](/files/txMWCuiAuNF3CzZg1Wk3)                  |
|        artstyle-art nouveau        |                   ![](/files/GXRhypJWEyOtFQLgUhNu)                  |
|       artstyle-constructivist      |                   ![](/files/tZSYz1uVd6roS41RMNMK)                  |
|           artstyle-cubist          |                   ![](/files/pGAqvvFx42UCGQ7XGzPs)                  |
|       artstyle-expressionist       |                   ![](/files/JiYI0ZKxutNI1efrhjAI)                  |
|          artstyle-graffiti         |                   ![](/files/7otajyio2k1cKnupUBi7)                  |
|        artstyle-hyperrealism       |                   ![](/files/uBvHdnDOE3jXlBsUkORu)                  |
|       artstyle-impressionist       |                   ![](/files/qPKRxPG7gzNWMDieeJeD)                  |
|        artstyle-pointillism        |                   ![](/files/3Yu7gdri7oC4hSPBUjuO)                  |
|          artstyle-pop art          |                   ![](/files/oL7yoqUbcdynkF29nnE3)                  |
|        artstyle-psychedelic        |                   ![](/files/713rRvOMFjIhR2nTugWQ)                  |
|        artstyle-renaissance        |                   ![](/files/OKzJ7Cu9hYE8qcmCYH6q)                  |
|         artstyle-steampunk         |                   ![](/files/AVEaLJg2piujQSa05Lxn)                  |
|         artstyle-surrealist        |                   ![](/files/bAiySg6W5yNGEIwkcD6q)                  |
|         artstyle-typography        |                   ![](/files/puEOY4XpJCD7OoOmEblZ)                  |
|         artstyle-watercolor        |                   ![](/files/UpcwxISzy2VMSoQa7oOY)                  |
|      futuristic-biomechanical      |                   ![](/files/uUV09oIXceMU7PZCk6To)                  |
| futuristic-biomechanical cyberpunk |                   ![](/files/Z4lVlpfrWq7WTobunscL)                  |
|        futuristic-cybernetic       |                   ![](/files/Tt9Gk1PxPCOCK4cJ7HNv)                  |
|     futuristic-cybernetic robot    |                   ![](/files/IJL2l4KZNKd1lFoagXTW)                  |
|   futuristic-cyberpunk cityscape   |                   ![](/files/EosiLmHeqPQbg9YCbK7T)                  |
|        futuristic-futuristic       |                   ![](/files/DNVBbLWksLVrd8G19J6r)                  |
|     futuristic-retro cyberpunk     |                   ![](/files/hEY88mdy1QRSqeebxLzi)                  |
|      futuristic-retro futurism     |                   ![](/files/SfSQkXh2OiSk5AKrDz9X)                  |
|          futuristic-sci-fi         |                   ![](/files/laNmH4RpaNv2SayNgFey)                  |
|        futuristic-vaporwave        |                   ![](/files/5FjSVl0RsPmlMmS8qsob)                  |
|         game-bubble bobble         |                   ![](/files/OSVZZXoAwX6HGxIhp51E)                  |
|         game-cyberpunk game        |                   ![](/files/Nm1Q7D7xxuiAh6xhllIx)                  |
|         game-fighting game         |                   ![](/files/WvltJNwibHO9vRWeCWaK)                  |
|              game-gta              |                   ![](/files/EczROyw28QyA2CYTvG5i)                  |
|             game-mario             |                   ![](/files/MU9sXpEF7glAFD5qRyLL)                  |
|           game-minecraft           |                   ![](/files/KKqCFVAoxqGg10OSGXGt)                  |
|            game-pokemon            |                   ![](/files/EHo9EO7VXMKjJmPsgwZD)                  |
|          game-retro arcade         |                   ![](/files/tiogO8i1ms8NtfUsLm1N)                  |
|           game-retro game          |                   ![](/files/JpdiSHPHyuk8dGZd1HBm)                  |
|        game-rpg fantasy game       |                   ![](/files/wHcY2enyu5M84pDIfpQr)                  |
|         game-strategy game         |                   ![](/files/7YsiZZa1KukoWUflnom2)                  |
|         game-streetfighter         |                   ![](/files/YTroUdRMweuTRMj7SUJG)                  |
|             game-zelda             |                   ![](/files/kYGy82fBAu7AOpx0jBRM)                  |
|         papercraft-collage         |                   ![](/files/J0vKHQwIhRnR0vr8ujd7)                  |
|      papercraft-flat papercut      |                   ![](/files/hnlC4fHKevolHi27geYe)                  |
|         papercraft-kirigami        |                   ![](/files/W4RQAn71Ewte78Tg2Whz)                  |
|       papercraft-paper mache       |                   ![](/files/IRk8855csd6AwM9OjWDs)                  |
|      papercraft-paper quilling     |                   ![](/files/CWiBZcyjgltKE6ggErXu)                  |
|     papercraft-papercut collage    |                   ![](/files/q6XV1cUvAKjw14B9XK9a)                  |
|   papercraft-papercut shadow box   |                   ![](/files/1mvisEw3PZI1GDhkFEJl)                  |
|     papercraft-stacked papercut    |                   ![](/files/M4XVu33VE5Kb8gSVZZxn)                  |
|  papercraft-thick layered papercut |                   ![](/files/uhc9p5eOWiJBjggHN3j5)                  |
|             photo-alien            |                   ![](/files/6PwPVSqGX89754ckHQ5P)                  |
|           photo-film noir          |                   ![](/files/ZM1rAnVzfgaafDAjNcw2)                  |
|              photo-hdr             |                   ![](/files/bV7MFTJWBazGubAbH4kZ)                  |
|         photo-long exposure        |                   ![](/files/cSs1R4fhWJ3XWQQUuECs)                  |
|           photo-neon noir          |                   ![](/files/o7mdWjBF0oO1Gi1hEt26)                  |
|          photo-silhouette          |                   ![](/files/1JhtazAJ9mAY6akGs7i9)                  |
|          photo-tilt-shift          |                   ![](/files/a7B4KTtQQiTpnaKsIXVd)                  |
|         misc-architectural         |                   ![](/files/leOfnSW63bOdsX2rh3KU)                  |
|             misc-disco             |                   ![](/files/6skn8pBYRBQnPL3AAIsl)                  |
|           misc-dreamscape          |                   ![](/files/NFCsvMo4sSTk3aAZ2aBM)                  |
|           misc-dystopian           |                   ![](/files/wVui1MTAJackfGMnt434)                  |
|           misc-fairy tale          |                   ![](/files/xabgFaB6JgzulR9lDLsy)                  |
|             misc-gothic            |                   ![](/files/B6Xi85kPuKE7qNvNDHCe)                  |
|             misc-grunge            |                   ![](/files/uXZ9ZooTVkbPugphlSeB)                  |
|             misc-horror            |                   ![](/files/Gi9Cf2y1F8vgSHN7W3FX)                  |
|             misc-kawaii            |                   ![](/files/k6IrNVjUdXrccLiIr4Ad)                  |
|          misc-lovecraftian         |                   ![](/files/szr8NSR4bHS5QaDsJXLw)                  |
|            misc-macabre            |                   ![](/files/nANjH33bwZsFN0AlIfv7)                  |
|             misc-manga             |                   ![](/files/MiNxpUZItcOa8xK57uuI)                  |
|           misc-metropolis          |                   ![](/files/6hkjSCBqv5nXm3eEyxSD)                  |
|           misc-minimalist          |                   ![](/files/4XimbxDbI64tYcR2boFu)                  |
|           misc-monochrome          |                   ![](/files/kqBnAdZAmWkuhU2JcYnj)                  |
|            misc-nautical           |                   ![](/files/HBWn3rCFIiJhiF9HxvUx)                  |
|             misc-space             |                   ![](/files/hRPIFOCipIdwta2WNhj6)                  |
|         misc-stained glass         |                   ![](/files/JuulsUe3btyHZA2Ox4qE)                  |
|        misc-techwear fashion       |                   ![](/files/iZkFmJyqwEHHa40FDCu4)                  |
|             misc-tribal            |                   ![](/files/Pgf96DaezzWNuSGF4QKz)                  |
|           misc-zentangle           |                   ![](/files/mlEBdjRlOIaat8sUHmfn)                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.quickqr.art/apis/http-api-reference/predictions/generate-qr-art-v5s.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
