Get started

[Run a model from Node.js](/docs/get-started/nodejs)

[Run a model from Google Colab](/docs/get-started/google-colab)

[Run a model from Python](/docs/get-started/python)

[Fine-tune an image model](/docs/get-started/fine-tune-with-flux)

[Deploy a custom model](/docs/get-started/deploy-a-custom-model)

Guides

Run models

[Build a website with vinext](/docs/guides/run/vinext)

[Build a website with Next.js](/docs/guides/run/nextjs)

[Build a Discord bot with Python](/docs/guides/run/discord-bot)

[Build an app with SwiftUI](/docs/guides/run/swiftui)

[Make art with Stable Diffusion](/docs/guides/run/make-art-with-stable-diffusion)

[Upscale images with AI models](/docs/guides/run/upscale-images-with-ai-models)

Build models

[Publish using GitHub Actions](/docs/guides/build/push-a-model-using-github-actions)

[Set up a CI/CD pipeline](/docs/guides/build/continuous-model-deployment)

[Push your own model](/docs/guides/build/push-a-model)

[Push a Transformers model](/docs/guides/build/push-a-transformers-model)

[Push a Diffusers model](/docs/guides/build/push-a-diffusers-model)

[Optimize models with Pruna](/docs/guides/build/optimize-models-with-pruna)

[Get a GPU on Brev](/docs/guides/build/get-a-gpu-on-brev)

[Get a GPU on Lambda Labs](/docs/guides/build/get-a-gpu-on-lambda-labs)

[Best practices for Replicate models](/docs/guides/build/model-best-practices)

[Optimize with torch.compile](/docs/guides/build/torch-compile)

Go deeper

[Cache images with Cloudflare](/docs/guides/extend/cloudflare-image-cache)

[Get started with ComfyUI](/docs/guides/extend/comfyui)

[Use realtime speech with OpenAI](/docs/guides/extend/openai-realtime)

[Handle webhooks with Val Town](/docs/guides/extend/build-a-webhook-notifier-with-val-town)

[Working with LoRAs](/docs/guides/extend/working-with-loras)

Topics

Models

[About models](/docs/topics/models)

[Run a model](/docs/topics/models/run-a-model)

[Create a model](/docs/topics/models/create-a-model)

[Publish a model](/docs/topics/models/publish-a-model)

[Model versions](/docs/topics/models/versions)

[Model hardware](/docs/topics/models/hardware)

[Official models](/docs/topics/models/official-models)

[Community models](/docs/topics/models/community-models)

[Private and public models](/docs/topics/models/private-models)

[Training destinations](/docs/topics/models/models-as-training-destinations)

[Delete a model](/docs/topics/models/delete-a-model)

[Secrets](/docs/topics/models/secrets)

Predictions

[About predictions](/docs/topics/predictions)

[Create a prediction](/docs/topics/predictions/create-a-prediction)

[Input files](/docs/topics/predictions/input-files)

[Output files](/docs/topics/predictions/output-files)

[Prediction lifecycle](/docs/topics/predictions/lifecycle)

[Share a prediction](/docs/topics/predictions/share-a-prediction)

[Rate limits](/docs/topics/predictions/rate-limits)

[Safety checking](/docs/topics/predictions/safety-checking)

[Data retention](/docs/topics/predictions/data-retention)

[Secrets](/docs/topics/predictions/secrets)

[Streaming output](/docs/topics/predictions/streaming)

Deployments

[About deployments](/docs/topics/deployments)

[Create a deployment](/docs/topics/deployments/create-a-deployment)

[View deployments](/docs/topics/deployments/view-deployments)

[Monitor a deployment](/docs/topics/deployments/monitor-a-deployment)

[Delete a deployment](/docs/topics/deployments/delete-a-deployment)

Webhooks

[About webhooks](/docs/topics/webhooks)

[Set up webhooks](/docs/topics/webhooks/setup-webhook)

[Receive webhooks](/docs/topics/webhooks/receive-webhook)

[Verify webhooks](/docs/topics/webhooks/verify-webhook)

[Test your webhook code](/docs/topics/webhooks/testing-webhook-code)

Organizations

[About organizations](/docs/topics/organizations)

Security

[API tokens](/docs/topics/security/api-tokens)

Billing

[About billing](/docs/topics/billing)

[Prepaid credit](/docs/topics/billing/prepaid-credit)

Site policy

[About subprocessors](/docs/topics/site-policy/subprocessors)

Reference

[How does Replicate work?](/docs/reference/how-does-replicate-work)

[Agent skills](/docs/reference/skills)

[MCP server](/docs/reference/mcp)

[Client libraries](/docs/reference/client-libraries)

[HTTP API](/docs/reference/http)

[OpenAPI schema](/docs/reference/openapi)

[llms.txt](/docs/reference/llms-txt)

[Error codes](/docs/reference/error-codes)

[Open source](/docs/reference/open-source)

Popular searches on Replicate

*   [Run a model from Node.js](/docs/get-started/nodejs)
*   [Deploy a custom model](/docs/guides/deploy-a-custom-model)
*   [How does Replicate work?](/docs/reference/how-does-replicate-work)

Showing results

Documentation
=============

Replicate lets you run AI models with a cloud API, without having to understand machine learning or manage your own infrastructure.

You can [run models](https://replicate.com/explore) that other people have published, bring your own training data to [create fine-tuned models](/docs/get-started/fine-tune-with-flux) , or [deploy custom models](/docs/get-started/deploy-a-custom-model).

Get started
-----------

[

nodejs

![Run a model from Node.js](/_content/assets/node-simple.BLomDmfg_1JmXdj.webp) ![Run a model from Node.js](/_content/assets/node-simple.BLomDmfg_1JmXdj.webp)

Run a model from Node.js

Get started with a few lines of JavaScript.





](/docs/get-started/nodejs)[

colab

![Run a model from Google Colab](/_content/assets/google-colab.C9zBUlCi_S2E40.webp) ![Run a model from Google Colab](/_content/assets/google-colab.C9zBUlCi_S2E40.webp)

Run a model from Google Colab

Run any public Replicate model in a notebook on Google Colab.





](/docs/get-started/google-colab)[

python

![Run a model from Python](/_content/assets/python.DhHZnsLE_1VLSNu.webp) ![Run a model from Python](/_content/assets/python.DhHZnsLE_1VLSNu.webp)

Run a model from Python

The language of the machine learning world.





](/docs/get-started/python)[

flux

![Fine-tune an image model](/_content/assets/fine-tune-with-flux.C-5VJrjB_zLvTv.webp) ![Fine-tune an image model](/_content/assets/fine-tune-with-flux.C-5VJrjB_zLvTv.webp)

Fine-tune an image model

Train your own fine-tuned FLUX model to generate new images of yourself.





](/docs/get-started/fine-tune-with-flux)[

custom

![Deploy a custom model](/_content/assets/deployments.DD9f9xat_Zn7YD.webp) ![Deploy a custom model](/_content/assets/deployments.DD9f9xat_Zn7YD.webp)

Deploy a custom model

Learn to build, deploy, and scale your own custom model on Replicate.





](/docs/get-started/deploy-a-custom-model)

Topics
------

### Learn about how Replicate works.

[

![Models](/_content/assets/models.BJIr7X_f_Z2kC2Ib.webp)

Models



](/docs/topics/models "Models")[

![Predictions](/_content/assets/predictions._3yNVB34_23vYX7.webp)

Predictions



](/docs/topics/predictions "Predictions")[

Webhooks



](/docs/topics/webhooks "Webhooks")[

![Organizations](/_content/assets/organizations.BedbHo6F_t100y.webp)

Organizations



](/docs/topics/organizations "Organizations")[

![Billing](/_content/assets/billing.4tNf2Kip_ZkFFvs.webp)

Billing



](/docs/topics/billing "Billing")[

![Site policy](/_content/assets/site-policy.C5ajtLf1_hVQia.webp)

Site policy



](/docs/topics/site-policy "Site policy")

Guides
------

### Ready to build something? Check out our guides.

[

![Make art with Stable Diffusion](/_content/assets/make-art.DSD5zrOH_12W8ca.webp)

Make art with Stable Diffusion



](/docs/guides/run/make-art-with-stable-diffusion "Make art with Stable Diffusion")[

![Build a website with Next.js](/_content/assets/nextjs.B1IfSu-1_Z2p6uo3.webp)

Build a website with Next.js



](/docs/guides/run/nextjs "Build a website with Next.js")[

![Build a Discord bot with Python](/_content/assets/discord.BmXaeYX1_Z1hPFjy.webp)

Build a Discord bot with Python



](/docs/guides/run/discord-bot "Build a Discord bot with Python")[

![Build an app with SwiftUI](/_content/assets/swiftui.CVaPa2JR_Ze4FTW.webp)

Build an app with SwiftUI



](/docs/guides/run/swiftui "Build an app with SwiftUI")[

![Push your own model](/_content/assets/push-a-model.jmy-8qzS_gYiRI.webp)

Push your own model



](/docs/guides/build/push-a-model "Push your own model")[

![Push a Diffusers model](/_content/assets/push-diffusers.C87Ipk-3_ZlXgeW.webp)

Push a Diffusers model



](/docs/guides/build/push-a-diffusers-model "Push a Diffusers model")[

![Get a GPU on Brev](/_content/assets/gpu-brev.DaeVWwrW_Z1gxumn.webp)

Get a GPU on Brev



](/docs/guides/build/get-a-gpu-on-brev "Get a GPU on Brev")[

![Working with LoRAs](/_content/assets/loras.DNSqvqUL_22fxBQ.webp)

Working with LoRAs



](/docs/guides/extend/working-with-loras "Working with LoRAs")[

![ComfyUI](/_content/assets/comfyui.Dz0Lr7YR_Z2to6LO.webp)

ComfyUI



](/docs/guides/extend/comfyui "ComfyUI")

[Videos](#videos)
-----------------

### Prefer to learn by watching videos? Check out some recent demos from our [YouTube channel.](https://www.youtube.com/@replicatehq)

[![Thumbnail for Run Replicate models using Cloudflare Workers](https://img.youtube.com/vi/esO33ejanZs/maxresdefault.jpg)

### 

Run Replicate models using Cloudflare Workers

Create and deploy a web app with a serverless backend and a React frontend in under 60 seconds.

7 minutes



](https://www.youtube.com/watch?v=esO33ejanZs)[![Thumbnail for Create stylized videos using pre-trained HuggingFace LoRAs](https://img.youtube.com/vi/6fLp23kWpgM/maxresdefault.jpg)

### 

Create stylized videos using pre-trained HuggingFace LoRAs

Make video content using the Hunyuan model with pre-trained styles from HuggingFace, or using your own images as training data.

3 minutes



](https://www.youtube.com/watch?v=6fLp23kWpgM)[![Thumbnail for FLUX.1 Schnell vs FLUX.1 Dev](https://img.youtube.com/vi/lTntmBZHw5Y/maxresdefault.jpg)

### 

FLUX.1 Schnell vs FLUX.1 Dev

Explore the differences between Flux Schnell and Flux Dev image generation models and learn how to enhance image quality effectively.

6 minutes



](https://www.youtube.com/watch?v=lTntmBZHw5Y)[![Thumbnail for David Attenborough is now narrating my life](https://img.youtube.com/vi/wOEz5xRLaRA/maxresdefault.jpg)

### 

David Attenborough is now narrating my life

Here's a GPT-4-vision + ElevenLabs python script so you can star in your own Planet Earth.

2 minutes



](https://www.youtube.com/watch?v=wOEz5xRLaRA)[![Thumbnail for Write your shell commands in English](https://img.youtube.com/vi/uS2Htdu5Org/maxresdefault.jpg)

### 

Write your shell commands in English

Use language models like GPT-4o and Llama to write one-liner shell commands, then execute them.

4 minutes



](https://www.youtube.com/watch?v=uS2Htdu5Org)[![Thumbnail for Introducing create-replicate-app](https://img.youtube.com/vi/u8PBjVcW_5A/maxresdefault.jpg)

### 

Introducing create-replicate-app

A quick and easy way to run Replicate models with Node.js

3 minutes



](https://www.youtube.com/watch?v=u8PBjVcW_5A)[![Thumbnail for Using webhooks with Replicate's API](https://img.youtube.com/vi/ae3c_0sc9Rg/maxresdefault.jpg)

### 

Using webhooks with Replicate's API

Learn how to receive webhooks from Replicate's API when running predictions and trainings.

14 minutes



](https://www.youtube.com/watch?v=ae3c_0sc9Rg)

[View more videos on YouTube](https://www.youtube.com/@replicatehq)