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

# Replicate

Generate images from text prompts using AI models via Replicate.

## What It Enables

| Tool             | Capability | Description                                             |
| ---------------- | ---------- | ------------------------------------------------------- |
| `generate_image` | `write`    | Generate an image from a text prompt and return its URL |

Supports aspect ratios from 1:1 to 21:9, resolutions up to 4K, and JPG or PNG output. You can also pass reference images to transform or use as input. The tool uses Replicate's async prediction API with automatic polling.

`generate_image` is a `write` capability tool and requires admin approval by default.

## Setup

**Required:** Replicate API token.

**Where to find it:** [replicate.com/account/api-tokens](https://replicate.com/account/api-tokens)

1. In the Notara dashboard, go to **Tools**.
2. Click the **Replicate** tile.
3. In Replicate, go to **Account → API tokens** and create a new token.
4. Paste the token into the credential field and click **Verify & Save**.

Your API token is encrypted at rest with AES-256-GCM.

## Example Prompts

> "Generate a 16:9 hero image of a minimalist office with warm lighting."

> "Create a square logo concept for a fintech startup — clean, dark background."

> "Generate a 4K product mockup using this reference image: \[URL]"


---

# 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://notara.gitbook.io/notara-docs/connectors/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.
