model hubs serving10 minutes

Get Started with Replicate

Unverified

Quick 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 steps
1

Get API token

Sign up at replicate.com and copy your API token.

2

Install client

Install the client for your language.

bash
npm install replicate # or pip install replicate
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.

Links