Features
- Batch Downloads: Download multiple predictions in a single command
- Organized Output: Automatically organizes downloaded files by prediction ID or custom naming
- Progress Tracking: Shows download progress for large batches
- Filtering Options: Filter predictions by status, model, or date range
- Resume Support: Resume interrupted downloads without re-downloading existing files
- Multiple Formats: Handles images, videos, text, and other output types
Installation
Install via npm:
npm install -g replicate-predictions-downloader
Or use npx to run without installing:
npx replicate-predictions-downloader [options]
Usage
Set your Replicate API token:
export REPLICATE_API_TOKEN=your_token_here
Download all predictions:
replicate-predictions-downloader --all
Download specific predictions:
replicate-predictions-downloader --ids abc123 def456
Filter by model and date:
replicate-predictions-downloader --model stability-ai/stable-diffusion --since 2024-01-01
Use Cases
- Backup all outputs from experimental model runs
- Download generated images for local processing or archiving
- Extract training data from successful predictions
- Organize outputs by project or experiment
- Create local datasets from Replicate predictions