# Replicate

The Replicate plugin lets you generate images using a text-to-image model hosted on Replicate.com

### What is Replicate?

Replicate makes it easy to run machine learning models in the cloud from your own code. You can run open-source models, or deploy your own models.

BoltAI supports generating images using your Replicate API key.

### How to set up the Replicate plugin?

Go to Settings > Plugins > Replicate. Select tab `Settings` then enter your API key.

### How to use the Replicate plugin?

To use the Replicate plugin, make sure you've setup the API key. Then:

1. Start a new chat. Choose an LLM that supports Function Calling (for example GPT-4o)
2. Enable the Replicate plugin
3. Enter your prompt

{% hint style="info" %}
**Pro tip**: you can tell the LLM to generate multiple images at the same time.\
For example: "Generate 4 images of a unicorn"
{% endhint %}

<figure><img src="/files/5xY3KCPqiPdr1L66zMPI" alt=""><figcaption></figcaption></figure>

### FAQs?

1. **Can I use a language model on Replicate?**\
   Not yet. At the moment, BoltAI only supports a few text-to-image models on Replicate.com


---

# 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.boltai.com/docs/plugins/replicate.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.
