Files
claudemesh/.context/turbostarter-framework-context/sections/ai/docs/replicate.md
Alejandro Gutiérrez d3163a5bff feat(db): mesh data model — meshes, members, invites, audit log
- pgSchema "mesh" with 4 tables isolating the peer mesh domain
- Enums: visibility, transport, tier, role
- audit_log is metadata-only (E2E encryption enforced at broker/client)
- Cascade on mesh delete, soft-delete via archivedAt/revokedAt

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 21:19:32 +01:00

3.0 KiB

title, description, url
title description url
Replicate Setup Replicate provider and learn how to use it in the starter kit. /ai/docs/replicate

Replicate

The Replicate provider unlocks access to an extensive library of open-source AI models through a streamlined cloud API, seamlessly integrated with the AI SDK. It's particularly well-known for image generation capabilities.

Replicate

Setup

### Generate API Key
Visit the [Replicate website](https://replicate.com/), create an account or sign in, then navigate to your account settings to generate your personal API token.
### Add API Key to Environment
Add your API token to your project's `.env` file (e.g., in `apps/web`):

```bash title=".env"
REPLICATE_API_TOKEN=your-api-key
```
### Configure Provider (Optional)
The starter kit automatically uses the `REPLICATE_API_TOKEN` environment variable. For advanced configurations (such as proxies or custom headers), you can create a tailored provider instance. For comprehensive details, refer to the [AI SDK Replicate documentation](https://sdk.vercel.ai/providers/ai-sdk-providers/replicate#provider-instance).

Features

Gain instant access to a diverse ecosystem of community-contributed models spanning text generation, image creation, audio processing, video synthesis, and numerous other AI capabilities. Create stunning visuals using various state-of-the-art open-source models directly through the AI SDK's intuitive `generateImage` function, with support for specific model versions and custom parameters. Fine-tune model behavior by passing specific parameters via `providerOptions.replicate`, allowing precise control over generation settings according to each model's unique capabilities.

Use Cases

Create unique visuals, artwork, or variations based on text prompts using a diverse set of image models. Check out the [Image Generation Demo](/ai/docs/image). Utilize specialized open-source models for specific tasks that might not be available through other major providers. Quickly experiment with different community-published models for various AI tasks without managing infrastructure.