> For the complete documentation index, see [llms.txt](https://docs.thinkdiffusion.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thinkdiffusion.com/ai-art-video-models-and-apps/automatic1111-in-the-cloud/how-to-view-and-test-automatic1111-api.md).

# How to view and test Automatic1111 API

All Automatic1111 machines have API enabled. Follow these simple steps to view the API docs and test different API endpoints.<br>

1. After launching an A1111 machine, scroll down to the footer of the page where you find a link to the **API** docs page.

   <br>

   <figure><img src="https://learn.thinkdiffusion.com/content/images/2024/01/image-4.png" alt="" height="1125" width="1982"><figcaption></figcaption></figure>

   2. Click on the **API** link to navigate to the **/docs** page (within in the machine iframe).

   <figure><img src="https://learn.thinkdiffusion.com/content/images/2024/01/image-6.png" alt="" height="1135" width="2000"><figcaption></figcaption></figure>

   \
   **⚡️Tip:** To navigate back, right click on any empty space in the iframe and select the **Back**.

   **⚡️Tip:** You may optionally open the link in a new tab by right-clicking on the **API** link and selecting **Open link in new tab**<br>

   3. To access your API remotely you will need the full machine URL which you can get by hovering over the **API** link or by copying the **API** link's URL and removing the **/docs** from the path.

   <figure><img src="https://learn.thinkdiffusion.com/content/images/2024/01/image-8.png" alt="" height="123" width="1922"><figcaption></figcaption></figure>

<br>


---

# 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.thinkdiffusion.com/ai-art-video-models-and-apps/automatic1111-in-the-cloud/how-to-view-and-test-automatic1111-api.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.
