Skip to main content

Replicate Provider

Run open-source models on Replicate.

Environment Variables

export REPLICATE_API_TOKEN=...

Quick Start

1

Simple Usage

import { Agent } from 'praisonai';

const agent = new Agent({
  name: 'ReplicateAgent',
  instructions: 'You are a helpful assistant.',
  llm: 'replicate/meta/llama-2-70b-chat'
});

const response = await agent.chat('Hello!');
2

With Configuration

Adjust provider credentials and model settings for production — see the sections above.

Replicate CLI Usage

Replicate CLI Usage