> For the complete documentation index, see [llms.txt](https://docs.gooey.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gooey.ai/image-video-and-marketing/image/how-to-make-amazing-ai-art-qr-codes/api-tips-on-ai-art-qr-codes.md).

# API tips on AI Art QR Code

## Question: I'm running the API but how do I add my own QR image?

### STEP 1:

You can click the first link on [gooey.ai/qr-code/api](https://gooey.ai/qr-code/api/) to see the [complete api documentation](https://api.gooey.ai/docs#operation/art-qr-code) with field names, response and request formats, etc.\
\
In this case what you are looking for is the <mark style="background-color:yellow;">qr\_code\_input\_image</mark> field which takes a file url corresponding to an existing qr code as a string:

<figure><img src="https://mail.google.com/mail/u/0?ui=2&#x26;ik=ff1edfb7df&#x26;attid=0.2&#x26;permmsgid=msg-f:1787054884674434599&#x26;th=18cce4f30b257627&#x26;view=fimg&#x26;fur=ip&#x26;sz=s0-l75-ft&#x26;attbid=ANGjdJ8KluvHmr76SUskx4CG5hV3XCPRghfuak4mDwSAIgNBiirjD6y-84Sm6VauEzajnbyPkT8sndDKO4NkOMPJzqiiqOYdr6kUlRDOCQgExVubsSnfAx2Bq520vNU&#x26;disp=emb&#x26;realattid=ii_lqsiyria3" alt=""><figcaption></figcaption></figure>

### STEP 2:

The easiest way to figure out how to format a specific request is to run it in the UI (e.g. upload an existing wifi QR code like this <https://gooey.ai/qr-code/?run_id=v6lsozk6&uid=2pZJQouaP2Okm18cbEhIpOQpqCg1>) hit submit and then go to the api tab. If you select "show all fields" and "python", it should give you the full api code to replicate the web ui run you are looking for:<br>

<figure><img src="https://mail.google.com/mail/u/0?ui=2&#x26;ik=ff1edfb7df&#x26;attid=0.1&#x26;permmsgid=msg-f:1787054884674434599&#x26;th=18cce4f30b257627&#x26;view=fimg&#x26;fur=ip&#x26;sz=s0-l75-ft&#x26;attbid=ANGjdJ9jRpbFKT3nj2nVYkG6T1tnPLY7diWrymjdVEZtJE8Y_562ngzwMJhp7ynt0kD-dzJAUqptr-6QU2PHfMKGBoe6P-4zR3IwPZYG9jDcQg8xhvXM5kgWi9ChKX0&#x26;disp=emb&#x26;realattid=ii_lqsix0do2" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://mail.google.com/mail/u/0?ui=2&#x26;ik=ff1edfb7df&#x26;attid=0.3&#x26;permmsgid=msg-f:1787054884674434599&#x26;th=18cce4f30b257627&#x26;view=fimg&#x26;fur=ip&#x26;sz=s0-l75-ft&#x26;attbid=ANGjdJ8uljRg3C_ohi41zoVN_MpuD9X_hVbyDYCKKK3fxM6eAvuHEhPG_HBHBQjJIkQnoHNL4fCECFRkczj6zpqZL9p97BIy9mNrm8ttm-Ds0pzBJKNX5iQHBfSUXrM&#x26;disp=emb&#x26;realattid=ii_lqsj0wun4" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.gooey.ai/image-video-and-marketing/image/how-to-make-amazing-ai-art-qr-codes/api-tips-on-ai-art-qr-codes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
