replicate
Runs open-source ML models via Replicate API for image generation, LLMs, and audio. Use when calling Stable Diffusion, Llama, Whisper, or other models without infrastructure management.
npx skills add majiayu000/claude-skill-registry --skill replicate --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Replicate Run open-source ML models in the cloud. Access Stable Diffusion, Llama, Whisper, and thousands of other models via API. ## Quick Start ```bash npm install replicate ``` ### Setup ```typescript import Replicate from 'replicate'; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, }); ``` ## Run Models ### Basic Prediction ```typescript const output = await replicate.run( 'stability-ai/stable-diffusion:db21e45d3f7023abc2a46ee38a23973f6dce16bb082a930b0c49861f96d1e5bf', { input: { prompt: 'A futuristic city at sunset', }, } ); console.log(output); // ['https://replicate.delivery/pbxt/...'] ``` ### With Options ```typescript const output = await replicate.run( 'stability-ai/sdxl:39ed52f2a78e934b3ba6e2a89f5b1c712de7dfea535525255b1aa35c5565e08b', { input: { prompt: 'A majestic lion in the savanna', negative_prompt: 'blurry, low quality', width: 1024, height: 1024, num_outputs: 1, scheduler: 'K_EULER', num_inference_steps: 50, guidance_scale: 7.5, }, } ); ``` ## Streaming (Language Models) ```typescript const output = await replicate.stream( 'meta/llama-2-70b-chat', { input: { prompt: 'Tell me a story about a robot', max_new_tokens: 500, }, } ); for await (
- Quick Start
- Setup
- Run Models
- Basic Prediction
- With Options
- Streaming (Language Models)
- Stream Events
- Predictions API
- Create Prediction
- Wait for Completion
- Using wait()
- Webhooks
- Webhook Handler
- Popular Models
npm install replicate
What does the replicate skill do?
Runs open-source ML models via Replicate API for image generation, LLMs, and audio. Use when calling Stable Diffusion, Llama, Whisper, or other models without infrastructure management.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill replicate --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
