Replicate

Run open-source models in the cloud with one line of code.

Developer API

Overview

Replicate is the model-hosting platform for open-source AI in 2026 — a cloud where developers run thousands of community-published models (image generation, video, LLMs, audio, embeddings, specialized fine-tunes) with a single line of code and per-second GPU billing, plus the ability to package and deploy their own models using the open-source Cog framework. If you have ever wanted to run Stable Diffusion XL, FLUX.1, ControlNet, Whisper, or one of the long-tail community fine-tunes without provisioning a GPU yourself, Replicate is where you go.

Founded in 2019 by Ben Firshman and Andreas Jansson (formerly of Docker and Spotify), Replicate has grown into the default distribution channel for open-source AI models — the closest thing the community has to a "GitHub for models that actually run." The catalog spans official releases from Black Forest Labs (FLUX), Stability AI (Stable Diffusion), Meta (Llama), OpenAI (Whisper), and thousands of community publishers who upload fine-tunes, novel architectures, and experimental workflows.

The one-line positioning: Replicate is the catalog-first, model-diversity-first inference platform — the pick when the specific model matters more than the fastest generic LLM inference. Where Together AI and Groq optimize a curated open-weight LLM catalog for serving at scale, Replicate optimizes for breadth — every image model, every video model, every audio model, every long-tail fine-tune. If your workload rides on FLUX, an SDXL LoRA, a specific ControlNet, a custom Whisper fine-tune, or a niche research model, Replicate is often the only host that has it.

The product surface has two real parts. First, the public model catalog: run any of the ~30,000 published models by calling replicate.run("owner/model-name", input={...}) and paying per-second of GPU time. Second, Cog: an open-source framework for packaging your own model into a container and deploying it on Replicate (or anywhere) with the same API. Together, these cover the two workflows that actually matter — consuming public models and shipping your own.

Key Features

Replicate's feature set in 2026 has evolved substantially from its "run any model" origin, and now includes production-grade primitives that were missing in the early years.

  • ~30,000 public models across every AI modality. Image (SDXL, FLUX.1 dev/pro/schnell, Ideogram, Recraft), video (Kling, HunyuanVideo, LTX Video, Runway), LLMs (Llama 4, Qwen, DeepSeek), audio (Whisper, MusicGen, Stable Audio), embeddings, upscaling, background removal, face restoration, ControlNets, and thousands of community fine-tunes.
  • Per-second GPU billing on a mix of hardware tiers. T4 for lightweight workloads, L40S and A40 for mid-tier, A100 40GB / 80GB for heavier models, H100 for the largest. Pay only for the wall-clock seconds your prediction runs, with no idle GPU costs when you are not making calls.
  • Cold-boot minimization on hot models. Popular models keep warm containers ready. Cold starts on hot models are typically 3-10 seconds; on cold long-tail models they can be a minute or more. This is the single biggest operational consideration for latency-sensitive workloads.
  • Cog framework for packaging your own models. Open-source Python framework that wraps your model in a container with a predictable API. Deploy to Replicate with cog push, or run the container anywhere else — the framework is not vendor-locked.
  • Public API surface with SDK support in Python, JavaScript, Go, and more. REST API is straightforward; SDKs handle async predictions, streaming, and webhook callbacks. The replicate.run() one-liner is genuinely one line.
  • Streaming outputs on LLMs and audio models. For models that support it, token-by-token or chunk-by-chunk streaming — sufficient for interactive UX where model output arrives progressively.
  • Webhooks for long-running predictions. For video generation, fine-tuning, or slow batch work, fire-and-forget with a webhook callback keeps your app off the polling loop.
  • Fine-tuning FLUX and select LLMs on-platform. Upload a dataset, train a LoRA or full fine-tune, and deploy the result as a Replicate model. Useful for brand-specific image models and specialized text models without provisioning training infrastructure.
  • Deployments feature for reserved capacity. Pin a model to reserved GPU capacity with guaranteed throughput — solves the cold-start problem for production traffic at the cost of committed spending.
  • Community discoverability. Every model has a browseable page with examples, versions, and usage code. For discovering novel models, Replicate is often faster than Hugging Face.

Pricing

Replicate's pricing is per-second GPU time for hosted models, with public models priced by their hardware tier and hot-catalog models priced per-run or per-token when the maintainer opts in. Approximate mid-2026 rates:

Hardware Price ($/second) Typical models
CPU $0.000100 Text processing, lightweight tools
Nvidia T4 $0.000225 Small image models, older SD variants
Nvidia L40S $0.000975 Mid-tier image and video
Nvidia A40 $0.000725 SDXL, FLUX.1 schnell
Nvidia A100 40GB $0.001400 FLUX.1 dev, mid-tier LLMs
Nvidia A100 80GB $0.001725 Larger diffusion, Llama 70B
Nvidia H100 80GB $0.004240 Latest video models, largest LLMs
8x H100 $0.033900 Video generation, large training

Popular "hot" models are also often priced per-run or per-token — FLUX.1 pro runs approximately $0.055 per image, FLUX.1 dev around $0.025 per image, FLUX.1 schnell around $0.003 per image; Llama 3.3 70B on Replicate lands around $0.65/$2.75 per million tokens for input/output.

The pricing that actually matters: per-second billing means fast models are cheap and slow models are expensive. An SDXL image on an A40 that takes 3 seconds costs about $0.002; a 10-second video generation on 8x H100 costs about $0.34. This is fundamentally different from per-token pricing on LLM-focused platforms — you are paying for wall-clock GPU time, and expensive models on expensive hardware add up fast at production scale.

Free tier: new accounts get a small credit for evaluation. No committed monthly minimum on standard usage. Deployments (reserved capacity) have monthly minimums per GPU pinned.

Pros and Cons

Pros

  • Broadest catalog of open-source AI models in production-runnable form. If the model exists, Replicate probably hosts it.
  • One-line API with per-second billing. Lowest-friction way to run any published model.
  • Cog framework packages and ships your own models cleanly. Open-source, not vendor-locked.
  • Excellent for image, video, and audio workloads. These are the modalities where the catalog breadth pays off most.
  • Community discovery. Model pages with examples, versions, and browsable metadata make finding new models easier than most hosts.
  • Webhooks for long-running work. Video generation and fine-tuning workflows fit naturally.
  • No vendor lock on Cog. The containers you build for Replicate run anywhere Docker runs.
  • Transparent per-second pricing. You always know what a call cost.

Cons

  • Per-second billing gets expensive at LLM production scale. For high-volume LLM inference, Together AI and Groq are dramatically cheaper on per-token pricing.
  • Cold starts on cold models can be brutal. Long-tail models that have not been called recently can take a minute or more to boot.
  • Latency is not competitive with LPU-hosted LLM inference. For chat UX where time-to-first-token matters, Replicate is not the pick.
  • Community model quality varies. Community-published models range from production-ready to research-grade to broken. Read the model page.
  • Rate limits on new accounts are conservative. Production scale requires talking to sales for higher throughput.
  • Fine-tuning surface is narrower than Together's or Hugging Face's. Image fine-tuning is strong; LLM fine-tuning coverage is more limited.
  • No native embedding search or vector database. Pair with Pinecone, Weaviate, pgvector, or similar.

Best Use Cases

  • Image generation pipelines using FLUX, SDXL, and their ecosystems. This is Replicate's home turf. FLUX.1 dev/pro/schnell, SDXL with LoRAs, ControlNet, and every diffusion variant runs here with the same API.
  • Video generation workflows. Kling, HunyuanVideo, LTX Video, and community video models are best-served on Replicate right now — the H100-tier hosting and webhook support handle long generations cleanly.
  • Audio and voice workflows outside ElevenLabs' turf. Whisper for transcription, MusicGen for background music, Stable Audio for sound design, community TTS fine-tunes — Replicate is the multi-modality audio host.
  • Prototyping and evaluating novel models. When a paper drops with a demo, it usually shows up on Replicate within days. The catalog's "what's new" pace is faster than any competitor's.
  • Fine-tuning FLUX for brand-specific image generation. Upload a small dataset of brand imagery, train a LoRA, and deploy — this is one of Replicate's most-used fine-tuning workflows.
  • Cog for private model deployment. Teams that trained their own model and want a clean, containerized deployment path — Cog is genuinely good open-source infrastructure.
  • Batch image or video generation for content pipelines. Per-second billing plus webhooks handles thousands of parallel predictions without per-hour GPU commitments.

Alternatives

Replicate competes across categories, and different competitors win on different axes:

  • Together AI — for open-weight LLM inference specifically. Cheaper per-token pricing, better throughput, and fine-tuning for LLMs. Pick Together when LLMs are the workload.
  • Groq — for the lowest-latency open-weight LLM inference. Pick Groq when time-to-first-token is the product.
  • Hugging Face — the closest philosophical cousin. Inference Endpoints host models one-per-endpoint with dedicated capacity. Broader catalog on the Hub side; Replicate's serverless per-second model is easier for irregular workloads.
  • Fireworks AI — fast open-weight LLM host with a focus on production. Better for LLM-heavy production than Replicate.
  • OpenAI API, Anthropic API — for frontier closed-model quality. Not comparable on catalog breadth or model diversity.
  • Fal, RunPod Serverless, Modal, Beam — direct competitors on the "run any GPU workload" thesis. Fal is faster and cheaper on many image workloads; RunPod is cheaper per GPU-hour for reserved capacity; Modal is more general-purpose for custom compute.
  • Baseten, Anyscale, DeepInfra — infrastructure-first alternatives for teams that want more control.
  • Self-hosting — download the model from Hugging Face, run it on your own hardware. Cheapest per-generation at high volume; expensive in engineering time.

For image and video workloads at moderate scale, Replicate remains the best-fit host. For LLM production traffic, the specialist LLM hosts (Together, Groq, Fireworks) are the better economics.

Getting Started

  1. Sign up at replicate.com and generate an API token. New accounts get a small credit for evaluation.
  2. Run your first model in one line. In Python: output = replicate.run("black-forest-labs/flux-schnell", input={"prompt": "a cinematic photo of a cat"}). In JavaScript: const output = await replicate.run("black-forest-labs/flux-schnell", { input: { prompt: "..." } }).
  3. Explore the model catalog. Every model has a page with examples, version pinning, and pricing. Bookmark the ones you plan to use — cold starts favor models you call regularly.
  4. For production traffic, pin a version. Every model has explicit version hashes; pinning prevents upstream changes from breaking your integration.
  5. For long-running predictions, use webhooks. Video generation, fine-tuning, and slow batch work should not block your app on polling.

If you plan to ship your own model, install Cog locally, wrap your model in a predict.py and a cog.yaml, and cog push to your Replicate account. The framework handles containerization, GPU environment setup, and API generation — you write model code, not infrastructure code.

For high-volume workloads, request a rate limit increase early and consider a Deployment for reserved capacity on your hottest model. The serverless surface is excellent for spiky traffic; sustained high-throughput workloads reward reserved capacity.

FAQ

Does Replicate host frontier closed models like GPT-5 or Claude? No. Replicate is open-source-only. For GPT-5 use the OpenAI API; for Claude use the Anthropic API.

How does Replicate compare to Together AI for LLM inference? Together AI is significantly cheaper and faster for high-volume LLM workloads with per-token pricing. Replicate's per-second billing gets expensive at LLM production scale. Use Replicate for image/video/audio; use Together (or Groq, Fireworks) for LLM production traffic.

Can I run my own model on Replicate? Yes, via the open-source Cog framework. Wrap your model in a container with a predictable API and deploy with cog push. The container also runs anywhere Docker runs — no vendor lock-in.

What are Replicate's cold-start times? On hot models (frequently called): 3-10 seconds. On cold long-tail models: 30 seconds to several minutes. This is the single biggest operational consideration for latency-sensitive workloads. Use Deployments for reserved warm capacity when latency matters.

How is fine-tuning on Replicate? Strong for image models (FLUX LoRAs, SDXL LoRAs) and select LLMs. For broader LLM fine-tuning, Together AI and Hugging Face offer more coverage.

Does Replicate train on my inputs? No — inputs are used to produce the prediction and are not used to train models. Model outputs and inputs are stored for a limited retention window; check the current privacy policy for specifics.

Verdict

Replicate is the pick when the specific model matters more than the fastest generic inference. For image generation, video generation, audio, and every long-tail modality that lives in the open-source AI community, Replicate's catalog, one-line API, and per-second billing make it the easiest way to get from "there is a model for that" to "it is running in my product." The Cog framework additionally makes it a legitimate infrastructure choice for teams shipping their own models, not just consuming others'.

Where Replicate is not the obvious choice is on high-volume LLM production traffic. Per-second GPU billing is fundamentally more expensive than per-token pricing at scale, and the specialists — Together AI on catalog and cost, Groq on latency, Fireworks AI on production LLM serving — will run your LLM inference at a fraction of the cost. Teams that use Replicate for LLM production usually discover this after their first month's bill.

The honest recommendation for most AI-engineering teams in 2026: use Replicate as the multi-modality catalog host — image, video, audio, novel models — and pair it with a specialist LLM inference provider for text generation. Almost every serious AI product with multi-modal generation uses Replicate somewhere in its stack, usually for the FLUX-tier image generation and the video generation calls, while the text-heavy paths run through Together, Groq, or a closed frontier provider. That split is what Replicate optimizes for, and it is where the platform earns its place.

Explore more in the Developer API category, or read The Economics of AI Inference at Scale for the broader inference-pricing landscape.