Join us at Uncanny Spaces, a series of talks about ML and creativity. 🚀

Machine learning doesn’t need to be so hard.

Run open-source models with a cloud API.

Explore models or, learn more about our API

Featured models


Publish models

Define your model with Cog, an open-source tool to package a machine learning model in a container:

build:
  gpu: true
  system_packages:
    - "libgl1-mesa-glx"
    - "libglib2.0-0"
  python_version: "3.8"
  python_packages:
    - "torch==1.8.1"
predict: "predict.py:Predictor"

Then, push it to Replicate:

$ cog push

Your model can now be run in the cloud on the web and via an API.

Replicate is not open for everyone to create models yet. Join our waitlist and we'll notify you when we're ready for new users.

Run models from your code

Run open-source or private models with just a few lines of Python code:

import replicate
model = replicate.models.get("hooli/hotdog-detector")
model.predict(image=open("possible-hot-dog.jpg"))

Or query the API directly using your tools of choice:

curl -s -X POST \
-d '{"version": "...", "input": {"image": "https://example.com/image.jpg"}}' \
-H "Authorization: Token $REPLICATE_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.replicate.com/v1/predictions

Explore models or, learn more about our API

Replicate