Replicate
AI Model Deployment Platform
A platform for hosting and running AI models
AI Model Deployment Platform
A platform for hosting and running AI models
Replicate is a cloud platform that lets you easily run open-source AI models through an API. Developers can call thousands of AI models such as Stable Diffusion, LLaMA, and Whisper with just a few lines of code and no infrastructure management, and it is serverless, so you pay only for what you use.
Replicate was founded in 2019 and grew rapidly with the Stable Diffusion boom in 2022. It was acquired by Cloudflare in 2025, gaining stronger global infrastructure. Previously, running a model meant handling GPU server setup, environment configuration, and scaling yourself, but Replicate automated all of it.
The core of Replicate is the "Cog" packaging system. When a model developer packages a model with Cog, Replicate automatically generates the API and handles GPU provisioning, autoscaling, and cold-start optimization. Users can call models simply through SDKs such as Python and JavaScript.
In practice, Replicate is ideal for rapid prototyping and MVP development. You can run GPU-intensive tasks such as image generation, speech recognition, and video processing without worrying about infrastructure. At production scale, a comparison with self-hosting is needed for cost efficiency.
This is an image generation example using the Replicate API.
# pip install replicate
import replicate
# 1. Stable Diffusion XLλ‘ μ΄λ―Έμ§ μμ±
output = replicate.run(
"stability-ai/sdxl:39ed52f2a78e934b3ba6e2a89f5b1c712de7dfea535525255b1aa35c5565e08b",
input={
"prompt": "An astronaut riding a rainbow unicorn, digital art",
"negative_prompt": "low quality, blurry",
"width": 1024,
"height": 1024,
"num_outputs": 1,
}
)
print(f"μ΄λ―Έμ§ URL: {output[0]}")
# 2. Whisperλ‘ μμ± μΈμ
output = replicate.run(
"openai/whisper:4d50797290df275329f202e48c76360b3f22b08d28c196cbc54600319435f8d2",
input={
"audio": "https://example.com/audio.mp3",
"model": "large-v3",
"language": "ko",
}
)
print(f"ν
μ€νΈ: {output['text']}")
# 3. LLaMAλ‘ ν
μ€νΈ μμ±
output = replicate.run(
"meta/llama-2-70b-chat",
input={
"prompt": "Pythonμ μ₯μ μ 3κ°μ§ μ€λͺ
ν΄μ€.",
"max_new_tokens": 500,
"temperature": 0.7,
}
)
print("".join(output))
As of January 2025 Replicate pricing. (billed per second)
| Hardware | Public models | Private models |
|---|---|---|
| CPU | $0.0001/sec | $0.0002/sec |
| Nvidia T4 GPU | $0.000225/sec | $0.00055/sec |
| Nvidia A40 (Large) | $0.0058/sec | $0.0058/sec |
| 8x Nvidia H100 | $0.0122/sec | $0.0122/sec |
Cost characteristics:
Take a mock interview on this topic β WIA SOOM AI Interview Β· Start for free