Replicate doesn’t use a standardized JSON format for their API, so Portkey acts as a proxy, managing authentication and logging all requests.
Quick Start
Add Provider in Model Catalog
Before making requests, add Replicate to your Model Catalog:- Go to Model Catalog → Add Provider
- Select Replicate
- Enter your Replicate API token
- Name your provider (e.g.,
replicate)
Complete Setup Guide
See all setup options and detailed configuration instructions
Using Replicate with Portkey
Since Replicate doesn’t follow the OpenAI format, use Portkey’spost() method to interact with any Replicate endpoint:
Supported Endpoints
Portkey proxies all Replicate API endpoints:/predictions- Create predictions/predictions/{prediction_id}- Get prediction status/predictions/{prediction_id}/cancel- Cancel predictions/models- List models/collections- List collections
Next Steps
Observability
Monitor and trace your Replicate requests
Metadata
Add custom metadata to requests
Caching
Cache Replicate responses
Guardrails
Add input/output checks
SDK Reference
Complete Portkey SDK documentation

