# 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="https://3493584844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FynYW2xZqA52spY7XgWis%2Fuploads%2FKXHZMtoK9dtVyis4CbdB%2FCleanShot%202024-06-19%20at%2022.03.00%402x.png?alt=media&#x26;token=99ccef13-0c69-449b-a895-8677a691fd71" 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
