Skip to main content
ReplicateTools enables an Agent to generate media using the Replicate platform.

Prerequisites

Set both variables to the same value. The toolkit reads REPLICATE_API_KEY while the replicate client authenticates with REPLICATE_API_TOKEN. The following example requires the replicate and openai libraries.

Example

The following agent will use Replicate to generate images or videos requested by the user.
cookbook/91_tools/replicate_tools.py

Toolkit Params

Toolkit Functions

Developer Resources