> For the complete documentation index, see [llms.txt](https://cranford-tech.gitbook.io/replicate-ai-and-ml-models-plugin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cranford-tech.gitbook.io/replicate-ai-and-ml-models-plugin/introduction.md).

# Introduction

The Replicate - AL & ML Models plugin makes it easy to run a range of AI/ML models in your Bubble app. The plugin currently supports the following models:

* Stable Diffusion (text-to-image generation)
* GFPGAN (image restoration)
* SDXL (text-to-image generation)

{% hint style="info" %}
If there's a model on Replicate you would like added to the plugin, feel free to contact me at <alex@cranfordtech.com>. I can't promise I'll be able to add every model requested, but will certainly look into each request.
{% endhint %}

### Useful Links

* [Plugin page](https://bubble.io/plugin/stable-diffusion-replicate-1663270527596x532849229935411200)
* [Tutorial video for GFPGAN model](https://www.youtube.com/watch?v=-VlztwBGzns)
* [Tutorial video for Stable Diffusion model](https://www.youtube.com/watch?v=O_HoL7h0lLE)

### Documentation Sections

* [Registering for a Replicate account](/replicate-ai-and-ml-models-plugin/registering-for-a-replicate-account.md)
* [Installing the plugin](/replicate-ai-and-ml-models-plugin/installing-the-plugin.md)
* [Adding API keys](/replicate-ai-and-ml-models-plugin/adding-api-keys.md)
* [Creating predictions:](/replicate-ai-and-ml-models-plugin/creating-predictions.md)
  * [Stable Diffusion](/replicate-ai-and-ml-models-plugin/creating-predictions/stable-diffusion.md)
  * [GFPGAN](/replicate-ai-and-ml-models-plugin/creating-predictions/gfpgan.md)
  * [SDXL](/replicate-ai-and-ml-models-plugin/creating-predictions/sdxl.md)
* [Retrieving predictions:](/replicate-ai-and-ml-models-plugin/retrieving-predictions.md)
  * [Database setup](/replicate-ai-and-ml-models-plugin/retrieving-predictions/database-setup.md)
  * [Get Prediction workflow action](/replicate-ai-and-ml-models-plugin/retrieving-predictions/get-prediction-workflow-actions.md)
  * [Webhooks](/replicate-ai-and-ml-models-plugin/retrieving-predictions/webhooks.md)


---

# 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://cranford-tech.gitbook.io/replicate-ai-and-ml-models-plugin/introduction.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.
