Skip to content

Replicate API and MCP

Replicate runs hosted machine learning models for image, video, audio and text generation. An agent can inspect hosted models, examples and versions before choosing an integration. Add your Replicate key once in Longwave settings; calls run on your vendor account.

Add to Longwave

Add Replicate to your agent

Paste this into Claude Code or a terminal. Then run /mcp to sign in.

functions
8
access
Your key

Use Replicate on Longwave

  1. Download Longwave or open app.longwave.run.
  2. Add your Replicate API key once in Longwave settings. Calls run on your Replicate account at Replicate's price.
  3. Ask for the result in any thread, for example: “Find a model for a content workflow”. The agent picks the Replicate function and calls it.

Use Replicate in Claude Code, Codex, Cursor or ChatGPT

Add the Longwave MCP server once. It carries 2,593 functions across 103 tools, including Replicate, and asks you to sign in on first use.

Why call Replicate through Longwave

  • Your Replicate key is stored once, encrypted, and used by every harness and device you use.
  • One MCP server for 103 tools, so your agent setup does not grow a key and a server per vendor.
  • Spending limits per key and per account, checked before a paid call is made.
  • Each call is recorded with the provider, the cost and the result, and can be read again from another device.

Replicate functions

Every function here: Model metadata lookup; no prediction is run and no separate per-call fee is published. Model metadata lookup; no prediction is run and no separate per-call fee is published.

Function
List Replicate model collections Returns Replicate model collections without requiring input parameters. replicate.openapi.get.collections
Get a Replicate model collection Returns a Replicate model collection for a collection name. replicate.openapi.get.collections.collection_slug
List Replicate models Get a paginated list of public models. replicate.openapi.get.models
Get a Replicate model Returns a Replicate model for a model owner and a model name. replicate.openapi.get.models.model_owner.model_name
List examples of a Replicate model Returns examples of a Replicate model for a model owner and a model name. replicate.openapi.get.models.model_owner.model_name.examples
Get a Replicate model README Get the README content for a model. replicate.openapi.get.models.model_owner.model_name.readme
List versions of a Replicate model Returns versions of a Replicate model for a model owner and a model name. replicate.openapi.get.models.model_owner.model_name.versions
Get a Replicate model version Returns a Replicate model version for a model owner and a model name. replicate.openapi.get.models.model_owner.model_name.versions.version_id

Prices are Replicate's published rates. Source: Replicate pricing.

Use cases

Questions people ask

Where do I get a Replicate API token?

Create or copy a token in the Replicate account API tokens area. Add the token once in Longwave settings to use your Replicate account. Replicate documentation

Why do Replicate model prices differ?

Replicate documents pricing by model. Some models use input or output pricing, while others charge for the time spent running on the selected hardware. Replicate documentation

Do I need a Replicate account?

Yes. Create a key at https://replicate.com/account/api-tokens and add it in Longwave settings. Longwave stores it encrypted and uses it only for your calls.

How do I use Replicate in Claude Code?

Add the Longwave MCP server once with claude mcp add --transport http longwave https://api.longwave.run/v1/mcp/tasks, sign in, and ask for what you need. Claude finds the right Replicate function and calls it.

Use Replicate in Longwave

Ask any Longwave thread for the result, or add Longwave to Claude Code, Codex, Cursor or ChatGPT.

Add to Longwave