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

# Replicate

Replicate is a platform that enables users to effortlessly host and run AI models on the cloud. With the Replicate Extension for Omnitool, you can conveniently access and use a wide range of AI models available on replicate.com with just a single click.

{% embed url="<https://www.youtube.com/watch?v=DbKVUhWCYOI>" %}

## Prerequisites

Before you begin, ensure you have the following:

* **Replicate Account**: Sign up or log in at [Replicate](https://replicate.com/).
* **API Token**: Generate your API token at [Replicate API Tokens](https://replicate.com/account/api-tokens).

## Setup

### **Installing the Replicate Extension**

1. Navigate to **Extensions** Manager
2. Select and install the **Replicate Extension**.

### **Adding API Key**

1. Navigate to **API Key Manager** in the left panel.
2. Add your Replicate API token.

## Using Replicate Blocks

### **Adding Replicate Model**

1. Go to the **Extension Manager**.
2. Open the **Replicate Extension**.
3. Import models:
   * **Preset Models**: Choose from a list of preset models provided in the portal.
   * **Custom Models**: Manually key in the model name, which can be found at <https://replicate.com/explore>, to add a specific model.

<figure><img src="/files/2UT7NnHp9Jfw0ojPaAH5" alt=""><figcaption></figcaption></figure>

### **Using Replicate Blocks**

* **Find in Block Collection**: Once model added, the Replicate model's block will appear in the "Add Block" collection.
* **Direct Add**: Or, right after importing the model, a button will appear in the Chat interface. Click on this button to directly add the Replicate block to your canvas.

<figure><img src="/files/jQANz0gAm2tSGaMJM07a" alt=""><figcaption></figcaption></figure>

## Additional Resources

For developers and users seeking more advanced configurations and troubleshooting resources for these blocks, refer to the OpenAPI and block specifications on the <https://github.com/omnitool-ai/omni-core-blocks/tree/main/server/apis/replicate>.

***

For more detailed information, visit the [official Replicate documentation](https://replicate.com/docs/how-does-replicate-work).


---

# 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://omnitool-ai.gitbook.io/omnitool/tutorial/blocks/replicate.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.
