> ## Documentation Index
> Fetch the complete documentation index at: https://vlyai-1c28d863.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Replicate

> Run open-source AI models — image generation, video, audio, fine-tuned models — via a simple API.

[Replicate](https://replicate.com) hosts thousands of open-source models with a unified API. Common for image generation (FLUX, SDXL), video generation, and specialty fine-tunes.

<Note>
  Full walkthrough being written.
</Note>

## Common uses

* Image generation (FLUX, Stable Diffusion)
* Video generation (LTX-Video, AnimateDiff)
* Custom fine-tuned models
* Specialty audio models

## Setup

`REPLICATE_API_TOKEN` in vly secrets. Use the Replicate SDK from a Convex action.

```typescript theme={null}
import Replicate from "replicate";
const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN });
const output = await replicate.run("black-forest-labs/flux-schnell", { input: { prompt } });
```

## Related

<CardGroup cols={3}>
  <Card title="Image generator recipe" icon="image" href="/recipes/image-generator">
    Worked example.
  </Card>

  <Card title="OpenAI DALL-E" icon="sparkles" href="/integrations/openai">
    Comparison.
  </Card>

  <Card title="Hugging Face" icon="brain" href="/integrations/huggingface">
    Adjacent model hub.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.