# Replicate

> Run and deploy any open ML model — LLMs, image, video, audio — through one API with pay-per-second billing, and package your own with open-source Cog.

Replicate is a hosted platform for running open machine-learning models — LLMs, image, video, audio, and more — behind a single API, billed per second of compute. Thousands of community models run with one line of code, and you can package and deploy your own using Cog, its open-source container tool. Replicate joined Cloudflare in 2025.

Website: https://replicate.com

Replicate is a hosted platform for **running and deploying open machine-learning models through an API**. Instead of provisioning GPUs, building containers, and writing inference servers, you call a model — Stable Diffusion-style image generators, video and audio models, open LLMs, and thousands of other community-contributed models — with a single line of code and get results back. The platform handles the GPUs, scaling, and queuing.

Its defining design choice is **pay-per-second compute**: on public models you are billed only for the time your code actually runs, which makes it well suited to spiky, experiment-heavy, or low-volume workloads where a dedicated endpoint would mostly burn money. Private models work differently: most run on dedicated hardware and are billed for all the time their instances are online, including setup and idle time, except fast-booting fine-tunes. Some models are billed per output (per image, for example) rather than per second. New accounts can try a curated collection of models free for a limited number of runs before moving to prepaid credit.

The bring-your-own-model path runs through **Cog**, Replicate's open-source (Apache-2.0) container tool. You describe a model's environment and inputs in a single config file, and Cog produces a reproducible container with an HTTP inference API and CUDA/dependency setup handled for you — then you push it to Replicate to get an autoscaling endpoint, identical in shape to the community models. Against infrastructure platforms like [Modal](/tools/modal) and Baseten, Replicate leans hardest on breadth of ready-to-run open models and the one-line API, where the others center custom code and deployment control.

Replicate **joined Cloudflare in 2025**: Cloudflare announced the acquisition in November 2025 and closed it on December 1, 2025, and Replicate said it would carry on as a distinct brand with the same API. In April 2026 Cloudflare said the Replicate team had joined its AI Platform team and that it is moving Replicate's models onto Cloudflare infrastructure and into AI Gateway. For weighing a hosted inference API against running models yourself, see [self-host vs. API LLM](/guides/mlops/self-host-vs-api-llm).

---

_Source: https://agentscamp.com/tools/replicate — Tool on AgentsCamp._
