model hubs servingโฑ10 minutes
Get Started with Replicate
UnverifiedQuick Summary
โRun machine learning models in the cloud with a single API call.โ
Best for: Developers prototyping with open-source ML models
Time to first integration: 10 minutes
๐Prerequisites
- โNode.js 18+ installed
- โA Replicate account โ sign up here
- โAn existing project (Next.js, React, or Node.js recommended)
Setup Steps
3 steps1
1
Get API token
Sign up at replicate.com and copy your API token.
2
2
Install client
Install the client for your language.
bash
npm install replicate
# or
pip install replicate3
3
Run a model
Call run with the model identifier and input.
typescript
replicate.run("stability-ai/sdxl", { input: { prompt: "..." } })Common Gotchas
Watch out for these issues in your first week.
Cold start latency
Fix:
Related Guides
Setting up a full stack? Check out these complementary guides.