model hubs servingโฑ10 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

Replicate Guide | AI Navigator | AI Navigator