Delv
Replicate
Getting Started Guide

How to Use Replicate

A practical guide to get you up and running with Replicate. Written by Delv Editorial, Delv Team.

Getting started with Replicate

In this guide, you'll learn how to run open-source AI models in the cloud using Replicate. You’ll be able to make API calls for various tasks like image, video, audio, and text generation.

Step 1: Sign up and set up

  1. Go to Replicate's website.
  2. Click on the "Sign Up" button in the top right corner.
  3. Enter your email and create a password, then confirm your account via the email link sent to you.
  4. Once logged in, navigate to the "API" section from the left sidebar to find your API key. This key will allow you to authenticate your API requests.

Step 2: Your first model call

  1. In the "Models" tab, browse through the available models or use the search bar to find a specific one (e.g., "Stable Diffusion" for image generation).
  2. Click on the model you want to use, then click the "Try it" button to see an example API call.
  3. Copy the example API request provided in the "API" section.
  4. Open a code editor or a tool like Postman. Paste the copied API request.
  5. Replace the placeholder values with your desired input and your API key.
  6. Send the request, and you will receive a response with the generated output.

Step 3: Get better results

  • Explore the model parameters listed under the model's documentation to fine-tune your requests. For instance, if you’re using a text generation model, adjust the "temperature" parameter to control creativity.
  • Always check the "Examples" section for sample inputs and outputs to understand how the model behaves.
  • Use the "Version" dropdown to select the latest or most suitable version of the model for better performance.

Pro tip

To save time, create a small script that automates your API calls. This way, you can quickly switch between different models or parameters without manually editing each request.

Common mistake to avoid

Avoid using the API key publicly or sharing it in code repositories. Keep it secure to prevent unauthorized access to your account and usage limits.