[Providers](https://spiral.ai/providers) › [Replicate](https://spiral.ai/providers/replicate)

# How to Use Replicate in Any AI Agent

To use Replicate in Claude Code, connect Spiral to Claude Code once, then ask for what you want in plain words. Claude Code can then reach both Replicate tools on Spiral, priced per run from one balance.

## Prompts that work in any agent

- Remove the background from the photo I attach with Replicate and give me a transparent PNG. Save the result in ./assets.
- Use Replicate to clean up these product shots so they sit on pure white.
- Edit this image with Replicate: keep the subject, swap the background for a sunlit studio.
- Use Replicate to turn this daytime photo into a dusk scene with warm window light.
- Upscale and sharpen this low-resolution photo with Replicate so it prints at A4.

## Replicate tools and prices

- [851 Labs Background Remover](https://spiral.ai/tools/replicate/851-labs/background-remover) (Replicate): $0.000293 per second of processing.
- [Insanely Fast Whisper (with video)](https://spiral.ai/tools/replicate/turian/insanely-fast-whisper-with-video) (Replicate): $0.00127 per second of processing.

## Use Replicate in your AI agent

- [Replicate in Amp](https://spiral.ai/integrations/amp/replicate)
- [Replicate in ChatGPT](https://spiral.ai/integrations/chatgpt/replicate)
- [Replicate in Claude](https://spiral.ai/integrations/claude-desktop/replicate)
- [Replicate in Claude Code](https://spiral.ai/integrations/claude-code/replicate)
- [Replicate in Cline](https://spiral.ai/integrations/cline/replicate)
- [Replicate in Codex](https://spiral.ai/integrations/codex/replicate)
- [Replicate in Cursor](https://spiral.ai/integrations/cursor/replicate)
- [Replicate in Devin](https://spiral.ai/integrations/devin/replicate)
- [Replicate in dots](https://spiral.ai/integrations/dots/replicate)
- [Replicate in Factory Droid](https://spiral.ai/integrations/factory-droid/replicate)
- [Replicate in Gemini](https://spiral.ai/integrations/gemini/replicate)
- [Replicate in Gemini CLI](https://spiral.ai/integrations/gemini-cli/replicate)
- [Replicate in Google Antigravity](https://spiral.ai/integrations/antigravity/replicate)
- [Replicate in goose](https://spiral.ai/integrations/goose/replicate)
- [Replicate in Grok](https://spiral.ai/integrations/grok/replicate)
- [Replicate in Grok Build](https://spiral.ai/integrations/grok-build/replicate)
- [Replicate in Hermes](https://spiral.ai/integrations/hermes/replicate)
- [Replicate in Instinct](https://spiral.ai/integrations/instinct/replicate)
- [Replicate in Manus](https://spiral.ai/integrations/manus/replicate)
- [Replicate in Muse](https://spiral.ai/integrations/muse/replicate)
- [Replicate in Muse Code](https://spiral.ai/integrations/muse-code/replicate)
- [Replicate in n8n](https://spiral.ai/integrations/n8n/replicate)
- [Replicate in Notion](https://spiral.ai/integrations/notion/replicate)
- [Replicate in OpenClaw](https://spiral.ai/integrations/openclaw/replicate)
- [Replicate in opencode](https://spiral.ai/integrations/opencode/replicate)
- [Replicate in Perplexity](https://spiral.ai/integrations/perplexity/replicate)
- [Replicate in Raycast](https://spiral.ai/integrations/raycast/replicate)
- [Replicate in VS Code](https://spiral.ai/integrations/vscode/replicate)
- [Replicate in Windsurf](https://spiral.ai/integrations/windsurf/replicate)
- [Replicate in Zapier](https://spiral.ai/integrations/zapier/replicate)
- [Replicate in Your Own AI Agent](https://spiral.ai/docs/quickstarts/your-own-agent)

## What can you do with Replicate in an AI agent?

### Clean product shots

Remove or replace backgrounds across a whole folder.

### Retouching

Fix lighting, remove objects and extend images without opening an editor.

### Variations

Restyle one approved image for each channel.

### E-commerce catalogs

Consistent backgrounds and lighting across every product.

### Upscaling

Sharpen low-resolution images for print or retina screens.

### Brand consistency

Apply one style to images from many sources.

## Related

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [WaveSpeed AI](https://spiral.ai/providers/wavespeed)
- [xAI](https://spiral.ai/providers/xai)
- [fal](https://spiral.ai/providers/fal)
- [Vizard](https://spiral.ai/providers/vizard)
- [Spiral media tools](https://spiral.ai/providers/spiral)

## Common questions

**Which AI agents can use Replicate?**

Any agent Spiral connects to: Claude, ChatGPT, Gemini, Grok and Perplexity, coding agents such as Cursor, Claude Code and Codex, and workflow tools such as Zapier and n8n. Each agent's guide below shows its setup.

**How much does Replicate cost through Spiral?**

Each Replicate tool is priced per run, shown before it starts, and paid from one Spiral balance. Each run is charged for its measured usage.

**Do I need a Replicate account to use it in an AI agent?**

No. Spiral runs Replicate on its own account and charges your Spiral balance, so your agent needs no Replicate key.

**How do I set up Replicate in my agent?**

Connect Spiral to your agent once (a skill, an MCP server, the CLI or the API), then ask for a Replicate tool by name. Each agent's guide on this page has its exact steps.

**Can my agent compare Replicate tools?**

Yes. Ask it to run the same request on two Replicate tools and show both results with what each cost.

**What happens if a run fails in your agent?**

It is not charged. Spiral holds a run's estimated price when it starts and returns it to your balance if the run fails on Spiral's side or the provider's, and your agent gets the error to retry or try another tool.

**Is there a subscription or plan?**

No. Spiral is pay as you go from one prepaid balance, with no plans or minimums, and credits never expire. Auto top-up and balance alerts keep runs from stopping when the balance runs low.

**How is a run priced?**

When a run starts, its estimate is held from your balance; when it finishes, you are charged for the measured usage and the rest of the hold is released. Each tool shows its price before a run.

