ScanVibeScanVibe
AI APIs

Is Replicate Safe?

Security analysis for apps built with Replicate. Platform for running open-source AI models via API with pay-per-use pricing.

Is Replicate safe? The short answer

Replicate is a legitimate platform for running open-source and custom AI models through an API, and calling it from your app is not a risk in itself. You send inputs, Replicate runs the model on its infrastructure, and you pay for the compute you use.

That pay-per-use model is exactly why security matters. A Replicate API token is a key to your billing account: anyone who has it can run models at your expense. And even with the token safely on the server, an unprotected API route that forwards requests to Replicate lets strangers generate images or text on your bill. For vibe-coded AI apps, the main risks are leaked tokens and open endpoints, followed by private data sent to or returned by models.

Scan your Replicate app now

Enter your URL and get a full security report in 30 seconds. Free, no signup required.

Scan Your Replicate App

Replicate misconfigurations we see in AI-built apps

The API token in the frontend

Calling Replicate directly from the browser means shipping the token (often starting with r8_) in your JavaScript, through a NEXT_PUBLIC_ or VITE_ variable. Anyone can copy it from the network tab. Call Replicate only from server code.

An open proxy to paid models

A route like /api/generate that accepts any prompt from anyone, with no authentication, quota or rate limit, turns your account into a free service for others. Require a logged-in user, enforce per-user limits and cap input sizes.

Webhooks accepted without verification

If your app updates its database when a prediction completes, a fake webhook can mark jobs as done or inject arbitrary output URLs. Replicate signs webhook requests: verify the signature with your webhook signing secret before trusting the payload.

Sensitive data in inputs and outputs

User photos, documents and prompts are sent to a third party, and generated files are served from URLs that are not tied to your users' sessions. Tell users what you send, avoid sending more than needed, and copy outputs you need to keep into your own access-controlled storage.

Replicate security checklist

Call Replicate from a server route, never from the browser:
// app/api/generate/route.ts — server only
import Replicate from "replicate";

const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN });

export async function POST(req: Request) {
  // 1. Check the session and the user's quota here.
  const { prompt } = await req.json();
  if (typeof prompt !== "string" || prompt.length > 500) {
    return new Response("Invalid prompt", { status: 400 });
  }
  // 2. Only then call Replicate with a model you chose server-side.
}

Common Security Issues in Replicate Apps

Exposed API Keys

AI coding tools often embed API keys directly in frontend JavaScript. If you're using Replicate, check that secret keys aren't in your client-side bundle.

Missing Security Headers

Headers like Content-Security-Policy, Strict-Transport-Security, and X-Frame-Options protect against XSS, clickjacking, and downgrade attacks.

Vulnerable Dependencies

Outdated npm packages with known CVEs are common in AI-generated code. Regular audits catch these before attackers do.

Authentication Weaknesses

Open registration endpoints, missing rate limiting, and exposed auth tokens are frequent issues in vibe-coded apps.

What ScanVibe Checks

✓SSL/TLS Configuration
✓Security Headers
✓Exposed Secrets & API Keys
✓Vulnerable Libraries
✓Exposed Files & Configs
✓Supabase Misconfigurations
✓Firebase Misconfigurations
✓Auth Endpoint Security

Frequently Asked Questions

Is Replicate safe to use?

Replicate itself is a reputable platform, but apps built with Replicate often have security misconfigurations — exposed API keys, missing security headers, and vulnerable dependencies. ScanVibe scans your app to find these issues.

What security issues do Replicate apps commonly have?

The most common issues we find in Replicate apps are: exposed API keys in frontend JavaScript, missing security headers (CSP, HSTS), outdated dependencies with known vulnerabilities, and misconfigured authentication endpoints.

How do I check if my Replicate app is secure?

Enter your app's URL in ScanVibe's scanner. We'll check for exposed secrets, security headers, vulnerable libraries, exposed files, and platform-specific misconfigurations — all in about 30 seconds.

Does ScanVibe scan Replicate specifically?

Yes. ScanVibe detects Replicate in your stack and runs platform-specific security checks in addition to our standard 8-category analysis.

What happens if my Replicate API token leaks?

Anyone holding the token can run models billed to your account and use the API as you. Delete the token in your Replicate account settings, create a new one stored only in server-side environment variables, and check your recent usage for predictions you did not make.

Can I call Replicate directly from my frontend?

Not safely: doing so exposes your API token to every visitor. Call Replicate from an API route or backend that checks the user's session and rate limits requests, and return only the result to the browser.

Other AI APIs to Check

Don't guess — scan.

Find security issues in your Replicate app before attackers do.

Scan Your App Now