replicate-mcp-server

v3.3.1
io.github.sena-labs/replicate-mcp-server Checked 16 hours ago Published 1 month ago

Replicate MCP server - image, video, audio, speech, LLM, vision, upscale, 3D, training.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

replicate_generate_image Generate Image with Replicate

Generate one or more images from a text prompt using a Replicate image model. Use this for any "draw / create / generate an image of …" request. By default it uses Flux Schnell (fast, ~2 seconds per image). DISPLAY REQUIREMENT — after this tool returns successfully, you MUST embed the image inline in your reply by pasting ONE of the three embed blocks the tool prints verbatim (Option 1 iframe, Option 2 <img>, or Option 3 markdown — try them in that order; pick the first one your chat client renders). The iframe variant scales to the chat column width with the image's native aspect rati…

ParameterTypeDescription
prompt *stringText prompt describing the image to generate.
aspect_ratiostringAspect ratio. Supported by Flux models. Default 1:1.
downloadbooleanWhether to download the generated files locally. Default true. When false, only Replicate URLs are returned (URLs expire after ~24h).
extra_inputobjectAdditional model-specific inputs merged into the request (e.g. {guidance: 3.5}). Use replicate_get_model_schema to see what a model accepts.
modelEither a curated key (flux-schnell, flux-dev, flux-pro, sd-3.5-large, recraft-v3, recraft-v4.1, flux-2-max, seedream, ideogram-v2, imagen-3) or a Replicate identifier like "owner/name" or "owner/name:…
num_outputsintegerNumber of images to generate (1-4).
seedintegerRandom seed for reproducible outputs.
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_generate_video Generate Video with Replicate

Generate a video clip from a text prompt (and optionally a starting image). Video generation is slow — typically 1-5 minutes per clip. DISPLAY REQUIREMENT — after this tool returns successfully, include the URL(s) printed in the tool's text content so the user can open the video. URLs expire in ~24h. Args: - prompt (string): Text description of the video. - model (string, default "kling-pro"): Curated key (kling-pro, minimax-video, hunyuan-video, luma-ray, wan-2.2, grok-video, seedance) or "owner/name[:version]". - image_url (string, optional): Starting frame for image-to-video. No…

ParameterTypeDescription
prompt *stringText prompt describing the video.
aspect_ratiostringAspect ratio.
downloadbooleanWhether to download the generated files locally. Default true. When false, only Replicate URLs are returned (URLs expire after ~24h).
duration_secondsnumberDesired duration in seconds. Model-dependent.
extra_inputobjectAdditional model-specific inputs.
image_urlstringOptional starting image URL for image-to-video. Not all models support this — check model schema.
modelEither a curated key (kling-pro, minimax-video, hunyuan-video, luma-ray, wan-2.2, grok-video, seedance) or a Replicate identifier.
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_generate_audio Generate Music or Audio with Replicate

Generate music, ambient audio, or full songs from a text prompt. DISPLAY REQUIREMENT — after this tool returns successfully, include the URL(s) printed in the tool's text content as a markdown link `[Audio](URL)` in your reply so the user can play it. URLs expire in ~24h. Models: - "musicgen" (default): Meta MusicGen. Instrumental music up to 30s. prompt → "prompt" field. - "ace-step": Full songs with lyrics. prompt → "tags" field (style/genre tags). Pass lyrics separately via extra_input.lyrics. ~3-4 minutes runtime. - "riffusion": Loop-friendly ambient/electronic. prompt → "p…

ParameterTypeDescription
prompt *stringDescription of the music/audio. For songs with lyrics (ace-step), include the lyrics here.
downloadbooleanWhether to download the generated files locally. Default true. When false, only Replicate URLs are returned (URLs expire after ~24h).
duration_secondsnumberDuration in seconds. Model-dependent.
extra_inputobjectAdditional model-specific inputs.
modelEither a curated key (musicgen, ace-step, riffusion, minimax-music, lyria-3-pro, lyria-3, lyria-2) or a Replicate identifier.
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_generate_speech Generate Speech (TTS) with Replicate

Convert text to natural-sounding speech. DISPLAY REQUIREMENT — after this tool returns successfully, include the URL printed in the tool's text content as a markdown link `[Speech](URL)` in your reply so the user can play it. URLs expire in ~24h. Args: - text (string, 1-5000): Text to synthesize. - model (string, default "kokoro"): Curated key (kokoro, minimax-speech, chatterbox, gemini-tts, grok-tts) or "owner/name[:version]". - voice (string, optional): Voice ID. For Kokoro: af_bella, af_sarah, am_adam, am_michael, bf_emma, bf_isabella, etc. (a-f = American female, b-f = British fe…

ParameterTypeDescription
text *stringText to synthesize.
downloadbooleanWhether to download the generated files locally. Default true. When false, only Replicate URLs are returned (URLs expire after ~24h).
extra_inputobjectAdditional model-specific inputs.
modelEither a curated key (kokoro, minimax-speech, chatterbox, gemini-tts, grok-tts) or a Replicate identifier.
speednumberSpeech speed multiplier (0.5-2.0).
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).
voicestringVoice identifier. Kokoro examples: af_bella, am_adam, bf_emma. Check model docs for full list.

replicate_chat Chat with an LLM via Replicate

Run a large language model hosted on Replicate. Use this for free-form text generation, Q&A, code writing, summarisation, translation — anything where the input is text and the output is text. Args: - prompt (string): User message. - model (string, default "llama-3-70b"): Curated key (llama-3.1-405b, llama-3-70b, llama-3-8b, mistral-7b, mixtral-8x7b, deepseek-r1) or "owner/name". - system_prompt (string, optional): Persona / instructions. - max_tokens (1-8192, optional): Generation limit. - temperature (0-2, optional): Sampling temperature. - extra_input (object, optional): Mode…

ParameterTypeDescription
prompt *stringUser message / prompt for the LLM.
downloadbooleanLLM output is text — default false (no file to download).
extra_inputobjectAdditional model-specific inputs.
max_tokensintegerMax tokens to generate. Default model-dependent.
modelLLM identifier. Curated keys: llama-3.1-405b, llama-3-70b, llama-3-8b, mistral-7b, mixtral-8x7b, deepseek-r1. Or full Replicate "owner/name[:version]".
system_promptstringOptional system prompt to set persona / instructions.
temperaturenumberSampling temperature 0.0–2.0. Lower = more deterministic.
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_vision Analyse / caption an image with a vision model

Run a vision-language model to describe, caption, or answer questions about an image. Args: - image (string URL): URL of the image to analyse. - prompt (string, optional): Question or instruction (e.g. "describe this image", "count the people"). Default is a generic caption. - model (string, default "llava-13b"): Curated key (llava-13b, llava-v1.6-34b, blip-2, qwen-vl) or "owner/name". - max_tokens (1-4096, optional): Response length. - extra_input (object, optional): Model-specific extras. Returns: PredictionResult with text_output containing the model's textual answer. Examples:…

ParameterTypeDescription
image *stringURL of the image to analyse / caption.
downloadboolean
extra_inputobject
max_tokensinteger
modelVision model. Curated: llava-13b, llava-v1.6-34b, blip-2, qwen-vl. Or "owner/name".
promptstringOptional question or instruction (e.g. 'describe this image', 'count the people'). Default is a generic caption.
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_upscale_image Upscale / restore an image with Replicate

Upscale an image to higher resolution. Optional face restoration for photos. DISPLAY REQUIREMENT — after this tool returns successfully, embed the upscaled image inline using one of the three blocks (iframe / <img> / markdown) printed by the tool. Place it BEFORE descriptive prose. URLs expire ~24h. Args: - image (string URL): URL of the source image. - model (string, default "real-esrgan"): Curated key (real-esrgan, clarity-upscaler, swinir, gfpgan) or "owner/name". - scale (1-10, optional): Upscale factor. Default 4 for real-esrgan; 2 for gfpgan; 2 for clarity-upscaler. - extra_i…

ParameterTypeDescription
image *stringURL of the image to upscale.
downloadboolean
extra_inputobject
modelUpscaler. Curated: real-esrgan, clarity-upscaler, swinir, gfpgan, clarity-pro. Or "owner/name".
scalenumberUpscale factor (1–10). Model-dependent; default 4 for real-esrgan.
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_remove_background Remove the background from an image

Produce a transparent-background version (PNG) of an image. DISPLAY REQUIREMENT — after this tool returns successfully, embed the cut-out image inline using one of the three blocks (iframe / <img> / markdown) printed by the tool. Args: - image (string URL): URL of the source image. - model (string, default "rembg"): Curated key (rembg, birefnet, briaai-rmbg) or "owner/name". - extra_input (object, optional): Model-specific extras. - download (boolean, default true): Download the cut-out PNG locally. Returns: PredictionResult with urls + local_paths to a transparent PNG. Examples:…

ParameterTypeDescription
image *stringURL of the image whose background to remove.
downloadboolean
extra_inputobject
modelBackground remover. Curated: rembg, birefnet, briaai-rmbg. Or "owner/name".
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_transcribe_audio Transcribe Audio / Video with Whisper

Transcribe an audio or video file to text using Whisper-family models on Replicate. Args: - audio (URL): URL of the audio (or video) to transcribe. - model (default "incredibly-fast-whisper"): Curated key (whisper, incredibly-fast-whisper, whisperx, scribe) or "owner/name". - language (string, optional): ISO-639 hint (e.g. "en", "it"). Default: auto-detect. - translate_to_english (bool, optional): Translate the transcript to English instead of preserving source language. - extra_input (object, optional): Model-specific extras (e.g. {batch_size: 24} for incredibly-fast-whisper). Ret…

ParameterTypeDescription
audio *stringURL of the audio (or video) file to transcribe.
downloadbooleanOutput is text — default false.
extra_inputobject
languagestringISO-639 language hint (e.g. 'en', 'it'). Default: auto-detect.
modelSpeech-to-text model. Curated: whisper, incredibly-fast-whisper, whisperx, scribe. Or "owner/name".
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).
translate_to_englishbooleanIf true, translate the transcript to English.

replicate_inpaint Inpaint / outpaint an image with a mask

Fill masked regions of an image based on a text prompt. Works for both inpainting (replace inside) and outpainting (extend canvas) when the mask covers the target area. DISPLAY REQUIREMENT — embed the result inline using one of the three blocks (iframe / <img> / markdown) printed by the tool. Args: - image (URL): Source image. - mask (URL): Mask image. White = keep, black/transparent = repaint. - prompt: Describes what should appear in the masked region. - model (default "flux-fill-pro"): Curated (flux-fill-pro, sd-inpaint, ideogram-v2-edit) or "owner/name". - extra_input (object…

ParameterTypeDescription
image *stringURL of the source image.
mask *stringURL of the mask. White areas are kept; black/transparent areas are inpainted.
prompt *stringText describing what to paint in the masked area.
downloadboolean
extra_inputobject
modelInpaint model. Curated: flux-fill-pro, sd-inpaint, ideogram-v2-edit. Or "owner/name".
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_segment Segment an image (SAM 2 / Grounded-SAM)

Produce a segmentation mask of an image. Use SAM 2 for point/box-prompt masks (auto-mask everything when no prompt given) or Grounded-SAM for text-prompt masking like "the red car". DISPLAY REQUIREMENT — embed the mask result inline using one of the three blocks printed by the tool. Args: - image (URL): Source image. - prompt (string, optional): Text prompt for grounded segmentation. Required for grounded-sam. - model (default "sam-2"): Curated (sam-2, grounded-sam) or "owner/name". - extra_input (object, optional): SAM-specific tuning (e.g. {points_per_side: 32}).

ParameterTypeDescription
image *stringURL of the image to segment.
downloadboolean
extra_inputobjectModel-specific extras (e.g. {points_per_side: 32} for SAM 2 auto-mask).
modelSegmentation model. Curated: sam-2, grounded-sam. Or "owner/name".
promptstringText-prompt for grounded segmentation (e.g. 'the red car'). Required for grounded-sam.
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_embed_text Compute text embeddings

Convert text(s) into numeric embedding vectors. Useful for RAG, semantic search, clustering, similarity scoring. Args: - texts: A single string or an array of strings (max 256). Each text is embedded independently. - model (default "bge-large"): Curated (bge-large, jina-embeddings-v3, all-minilm) or "owner/name". - extra_input (object, optional): Model-specific extras (e.g. {task: "retrieval.query"} for jina v3). Returns: PredictionResult — the embedding vectors are in structuredContent.output (model-specific shape).

ParameterTypeDescription
texts *A single text or an array of texts to embed.
downloadbooleanOutput is a numeric vector — default false.
extra_inputobject
modelEmbedding model. Curated: bge-large, jina-embeddings-v3, all-minilm. Or "owner/name".
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_clone_voice Clone a voice with Replicate

Synthesize speech in a cloned voice. Provide a short reference audio sample (~5-30 s) and the text to speak; the model reproduces the voice characteristics. DISPLAY REQUIREMENT — after this tool returns successfully, include the URL printed in the tool's text content as a markdown link `[Audio](URL)` so the user can play it. URLs expire in ~24h. Args: - text (string, 1-5000): Text to synthesize in the cloned voice. - reference_audio_url (URL): URL of the voice sample to clone from. Use replicate_upload_file to upload a local file first. - language (string, optional): ISO-639 code (e.…

ParameterTypeDescription
reference_audio_url *stringURL of a short voice sample (~5-30s) to clone. Use replicate_upload_file if you only have a local file.
text *stringText to synthesize in the cloned voice.
downloadboolean
extra_inputobjectAdditional model-specific inputs.
languagestringISO-639 language code (e.g. 'en', 'es', 'it'). Default: 'en'.
modelVoice cloning model. Curated: xtts-v2, openvoice-v2. Or "owner/name".
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_generate_3d Generate a 3D model with Replicate

Generate a 3D mesh (GLB/OBJ) from a text prompt or a reference image. 3D generation is slow — typically 1-5 minutes. DISPLAY REQUIREMENT — after this tool returns successfully, include the download URL(s) so the user can open the 3D file. URLs expire in ~24h. Args: - prompt (string, optional): Text description of the 3D object. Provide at least one of prompt or image_url. - image_url (URL, optional): Reference image to convert to 3D. Provide at least one of prompt or image_url. Use replicate_upload_file for local files. - model (string, default "hunyuan-3d"): Curated key (hunyuan-3…

ParameterTypeDescription
downloadboolean
extra_inputobjectAdditional model-specific inputs (e.g. {num_inference_steps: 50}).
image_urlstringURL of a reference image to convert to 3D. Provide either this or prompt (or both). Use replicate_upload_file for local images.
model3D generation model. Curated: hunyuan-3d, rodin, triposr. Or "owner/name".
promptstringText description of the 3D object to generate. Provide either this or image_url (or both).
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_lipsync Lipsync / talking avatar with Replicate

Animate a portrait image to speak — either from a text script (model does TTS + lipsync) or from a driving audio file. Produces an MP4 video. DISPLAY REQUIREMENT — after this tool returns successfully, include the URL(s) so the user can open the video. URLs expire in ~24h. Args: - image_url (URL): Portrait or face image to animate. Use replicate_upload_file for local files. - text (string, optional): Script for the avatar to speak. Used by video-avatar (maps to voice_script). At least one of text or audio_url is required. - audio_url (URL, optional): Driving audio for lipsync. Requ…

ParameterTypeDescription
image_url *stringURL of the portrait or face image to animate. Use replicate_upload_file for local files.
audio_urlstringURL of the driving audio. Required for audio-only lipsync models (sadtalker). Optional override when model can do TTS.
downloadboolean
extra_inputobjectAdditional model-specific inputs.
modelLipsync model. Curated: video-avatar, sadtalker. Or "owner/name".
textstringText script for the avatar to speak. Required for models that do TTS+lipsync (video-avatar). Ignored when audio_url is provided.
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_run_model Run Any Replicate Model

Generic escape hatch: run ANY model in the Replicate catalog by its "owner/name" identifier. This tool gives Claude access to the entire Replicate model catalog — anything not covered by the curated specialised tools (image, video, audio, speech, chat, vision, upscale, remove-bg) can be reached from here. DISPLAY REQUIREMENT — if the result includes image URLs, paste ONE of the embed blocks the tool prints (iframe / <img> / markdown — try in order) verbatim in your reply so the image renders inline in the chat. Use this for any category WITHOUT a curated specialised tool, including but…

ParameterTypeDescription
input *objectModel input parameters as a JSON object. Use replicate_get_model_schema first if unsure what a model accepts.
model *stringReplicate model identifier. Either "owner/name" (uses latest official version) or "owner/name:version_hash" (pins a specific version). Examples: "black-forest-labs/flux-schnell", "meta/meta-llama-3-70…
downloadbooleanWhether to download the generated files locally. Default true. When false, only Replicate URLs are returned (URLs expire after ~24h).
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).

replicate_search_models Search Replicate Model Catalog

Search the Replicate catalog by free-text query. Returns up to 25 matching models with names, descriptions, and URLs. Args: - query (string, 1-200 chars): Free-text search. Examples: "image upscaler", "voice cloning", "depth estimation", "code generation". Returns structuredContent: { "count": number, "models": [ { "owner": string, "name": string, "description": string | undefined, "url": string, "run_count": number | undefined, "cover_image_url": string | undefined } ] } Tip: Once you find a promising model, call…

ParameterTypeDescription
query *stringFree-text search across the Replicate model catalog. Examples: "image upscaler", "voice cloning", "background removal".

replicate_get_model_schema Get Replicate Model Input Schema

Retrieve metadata and the OpenAPI input/output schema for a specific Replicate model. Use this before replicate_run_model to know which fields the model accepts and what they mean. Args: - model (string): "owner/name" or "owner/name:version". Returns structuredContent: { "model": string, "description": string | undefined, "visibility": string | undefined, "latest_version_id": string | undefined, "input_schema": object | undefined, // OpenAPI schema for inputs "output_schema": object | undefined, // OpenAPI schema for outputs "example_url": string | undefine…

ParameterTypeDescription
model *stringModel identifier in "owner/name" or "owner/name:version" form.

replicate_get_prediction Get Replicate Prediction Status

Retrieve the current status and (if available) outputs of a Replicate prediction by its ID. Use this when a previous generate_* or run_model call returned pending=true (timed out before completion). Args: - prediction_id (string): The ID returned by a previous call. - download (boolean, default true): If the prediction has succeeded, download its outputs locally. Returns: PredictionResult — same shape as replicate_generate_image. If still running, status will be "processing" or "starting" and pending will be true. Typical flow: 1. Call replicate_generate_video → returns pending=tr…

ParameterTypeDescription
prediction_id *stringPrediction ID returned by a generate_* or run_model call that timed out.
downloadbooleanIf the prediction has succeeded, whether to download outputs locally.

replicate_upload_file Upload a file (path or base64) to Replicate

Upload a file to Replicate's file storage and get back a URL valid for ~24 hours. Pass the returned URL as a model input (e.g. image for upscale/inpaint/vision, image_url for video, reference_audio_url for voice clone). Two input modes — provide EXACTLY ONE: - file_path: absolute local path of a file on the machine running the server. - base64_data: the file's bytes as base64 (a bare base64 string OR a full "data:<mime>;base64,..." URI). Use this when you hold bytes in memory but have no local path — e.g. an image a user dropped into the chat that a code container can read and base64-…

ParameterTypeDescription
base64_datastringFile contents as base64 (a bare base64 string or a full 'data:<mime>;base64,...' URI). Use this when you have bytes in memory but no local path — e.g. a code container that read a chat-uploaded imag…
file_namestringOptional name for a base64 upload. Ignored when file_path is used (the basename is taken from the path).
file_pathstringAbsolute local path of the file to upload. Provide either this OR base64_data.
mime_typestringMIME type override (e.g. 'image/png'). Auto-detected from file extension (file_path) or the data URI; defaults to application/octet-stream for raw base64.

replicate_recommend_model Recommend the Best Model for a Task

Rank the curated models in a category by a priority (speed, cost, quality, or balanced) and return recommendations with cost estimates and reasoning. This does NOT run anything — it advises which model to use. Workflow: call this to pick a model, then call the matching generate tool (e.g. replicate_generate_image) with model set to the recommended key. Args: - category (required): One of image, video, audio, tts, llm, vision, upscale, bg, stt, inpaint, segment, embed, voiceclone, threed, lipsync. - priority (default "balanced"): "speed" (fastest), "cost" (cheapest), "quality" (best), o…

ParameterTypeDescription
category *stringWhich model category to recommend within.
duration_secondsnumberFor per-second-priced categories (video, audio), the expected duration used in cost estimation.
max_cost_usdnumberOptional cap — exclude models whose estimated cost exceeds this. Models with unknown pricing are always included regardless of this cap.
prioritystringOptimization target. speed=fastest, cost=cheapest, quality=best, balanced=weighted blend. Default: balanced.
task_descriptionstringOptional task description. Keyword hints (e.g. 'quick draft' or 'professional logo') nudge balanced-mode ranking.

replicate_pipeline_start Start Async Pipeline (DAG of predictions)

Run a directed acyclic graph (DAG) of Replicate predictions as a background job. Returns a pipeline_id immediately. Poll replicate_pipeline_status for per-step progress and results. Independent steps run concurrently. Downstream steps auto-start when their dependencies complete. Use "$stepId.field[n]" template strings to pass one step's output as another step's input. IMPORTANT: model must be a full Replicate identifier ("owner/name" or "owner/name:version"). Curated shortcuts (e.g. "flux-schnell") are not supported — look up the full id via replicate_get_model_schema. Template reference…

ParameterTypeDescription
steps *arrayPipeline steps. 1–20 steps.
concurrencyintegerMax simultaneous steps (1–5). Default: 3.
downloadbooleanDownload step outputs locally. Default: true.
timeout_ms_per_stepintegerPer-step prediction timeout ms (5000–1800000). Default: 300000 (5min).
ttl_hoursintegerHow long to keep pipeline results in memory (1–72h). Default: 1h. State is lost if the server restarts.

replicate_pipeline_status Get Pipeline Status

Poll the status of a pipeline started with replicate_pipeline_start. Args: - pipeline_id (string): Pipeline ID returned by replicate_pipeline_start. - include_outputs (boolean, default true): Include full PredictionResult per step. Set false for a counts-only summary while the pipeline is running. Returns structuredContent: { pipeline_id, overall_status, total, succeeded, failed, skipped, running, pending, created_at, expires_at, steps: [{ id, model, status, prediction_id, result?, error?, skip_reason?, started_at, completed_at }] } overall_status: "running" — step…

ParameterTypeDescription
pipeline_id *stringPipeline ID returned by replicate_pipeline_start.
include_outputsbooleanInclude full PredictionResult per step. Set false for counts-only summary while pipeline is running. Default: true.

replicate_batch_start Start Async Batch Predictions

Run multiple Replicate predictions in parallel as a background job. Returns a job_id immediately — the predictions run in the background. Poll replicate_batch_status for progress and results. Use this when you have 2–50 predictions to run and don't want to block. Each item specifies its own model and input, so you can mix models in one batch. IMPORTANT: model must be a full Replicate identifier ("owner/name" or "owner/name:version"), not a curated shortcut like "flux-schnell". Use replicate_get_model_schema to look up the correct identifier. Args: - items (array, 1–50): Predictions…

ParameterTypeDescription
items *arrayPredictions to run. 1–50 items.
concurrencyintegerMax simultaneous predictions (1–10). Default: 3.
downloadbooleanDownload output files locally. Default: true.
timeout_ms_per_itemintegerPer-prediction timeout in ms (5000–1800000). Default: 300000 (5min).
ttl_hoursintegerHow long to keep job results in memory (1–72h). Default: 1h. State is lost if the server restarts.

replicate_batch_status Get Batch Job Status

Poll the status of an async batch job started with replicate_batch_start. Args: - job_id (string): Job ID returned by replicate_batch_start. - include_results (boolean, default true): Include full PredictionResult per item. Set false for a counts-only summary while the job is still running. Returns structuredContent: { job_id, overall_status, total, succeeded, failed, running, pending, created_at, expires_at, items: [{ index, model, status, prediction_id, result?, error?, started_at, completed_at }] } overall_status: "running" — predictions still in progress "com…

ParameterTypeDescription
job_id *stringJob ID returned by replicate_batch_start.
include_resultsbooleanInclude full PredictionResult per completed item. Set false to get counts-only summary for large batches. Default: true.

replicate_list_predictions List recent Replicate predictions

Return the most recent predictions on the authenticated Replicate account. Useful to recover a prediction ID, audit recent calls, or check what's still running. Args: - limit (1-100, default 10): How many predictions to return. Returns structuredContent: { count: number, predictions: PredictionSummary[] } Each PredictionSummary has id, model, status, created_at, completed_at, url.

ParameterTypeDescription
limitintegerNumber of recent predictions to return (1–100). Default 10.

replicate_cancel_prediction Cancel a Replicate prediction

Cancel an in-progress prediction by its ID. Useful for long-running async jobs (video, large LLM) when the user no longer needs the result. Args: - prediction_id (string): ID of the prediction to cancel (returned by an earlier generate_* call). Returns: PredictionSummary with updated status (typically "canceled").

ParameterTypeDescription
prediction_id *stringID of the prediction to cancel.

replicate_estimate_cost Estimate the USD cost of a Replicate prediction

Return an approximate dollar-cost estimate for a planned prediction BEFORE running it. Prices are a hand-curated snapshot — actual billing comes from Replicate. Call this when the user asks "how much would X cost" or before launching a costly model. Args: - model: Replicate "owner/name" id or a curated short key (e.g. "flux-schnell", "kling-pro"). - num_outputs (1-20, optional): How many outputs to estimate. Default 1. - duration_seconds (1-600, optional): Required for per-second models (video, music, transcription, LLM). Returns structuredContent: { resolved_model_id, num_outputs, d…

ParameterTypeDescription
model *stringReplicate model id ("owner/name") or a curated key (e.g. "flux-schnell").
duration_secondsnumberFor models priced per second (video, audio, LLM), the expected duration / token-equivalent.
num_outputsintegerHow many outputs to estimate for. Default 1.

replicate_refresh_models Discover New Popular Replicate Models

Search Replicate for popular models NOT yet in the curated registry. Returns suggestions only — does not modify code. Use this to find new models worth adding. Then ask Claude to edit src/models.ts with the ones you want. Args: - categories (string[], optional): Which categories to check. Default: all 15 (image, video, audio, tts, llm, vision, upscale, bg, stt, inpaint, segment, embed, voiceclone, threed, lipsync). - min_run_count (integer, optional): Minimum run_count threshold. Default: 1000. - limit_per_category (integer, optional): Max suggestions per category (1-20). Default: 5.…

ParameterTypeDescription
categoriesarrayCategories to check. Default: all 15 (image, video, audio, tts, llm, vision, upscale, bg, stt, inpaint, segment, embed, voiceclone, threed, lipsync).
limit_per_categoryintegerMax suggestions per category (1–20). Default: 5.
min_run_countintegerMinimum run_count to surface a model. Default: 1000.

replicate_create_training Start a Replicate fine-tune / training run

Kick off a fine-tuning (training) run on a trainable base model — e.g. a Flux LoRA trainer — with your dataset and hyperparameters. Returns immediately with a training ID; poll it with replicate_get_training. Args: - model: BASE trainer "owner/name" (or "owner/name:version" to pin the trainer version inline). e.g. "ostris/flux-dev-lora-trainer". - version (optional): trainer version id. Required unless pinned inline on model. - destination: "owner/name" the trained weights are pushed to. The destination model must already exist on your account. - input: training inputs as a JSON o…

ParameterTypeDescription
destination *stringWhere the trained weights are pushed, as "owner/name". The destination model must already exist on your account.
model *stringThe BASE trainer model as "owner/name" (or "owner/name:version" to pin the trainer version inline). Example: "ostris/flux-dev-lora-trainer".
inputobjectTraining inputs as a JSON object (dataset URL + hyperparameters). The exact keys depend on the trainer — call replicate_get_model_schema on the trainer model to see them.
versionstringTrainer version id. Required unless you pinned it inline on `model` as "owner/name:version".

replicate_get_training Get a Replicate training by ID

Retrieve the current state of a training run: status, the resulting trained model version (once it succeeds), and any error. Args: - training_id: ID returned by replicate_create_training. Returns structuredContent: TrainingSummary.

ParameterTypeDescription
training_id *stringID of the training run to inspect (returned by replicate_create_training).

replicate_list_trainings List recent Replicate trainings

Return the most recent training runs on the authenticated account. Args: - limit (1-100, default 10): How many trainings to return. Returns structuredContent: { count: number, trainings: TrainingSummary[] }.

ParameterTypeDescription
limitintegerNumber of recent training runs to return (1–100). Default 10.

replicate_cancel_training Cancel a Replicate training

Cancel an in-progress training run by its ID. Trainings can run for many minutes and cost real money — cancel when no longer needed. Args: - training_id: ID of the training to cancel. Returns structuredContent: TrainingSummary with the updated status (typically "canceled").

ParameterTypeDescription
training_id *stringID of the in-progress training run to cancel.

replicate_list_deployments List your Replicate deployments

List the deployments on the authenticated Replicate account. A deployment is a private, autoscaled endpoint pinned to a specific model + hardware. Args: - limit (1-100, default 20): How many deployments to return. Returns structuredContent: { count: number, deployments: DeploymentSummary[] }. Each DeploymentSummary has owner, name, and current_release { model, version, hardware, min_instances, max_instances }.

ParameterTypeDescription
limitintegerNumber of deployments to return (1–100). Default 20.

replicate_get_deployment Inspect a Replicate deployment

Get the configuration of one deployment: its current model + version, hardware, and autoscaling min/max instances. Args: - deployment: "owner/name" of the deployment. Returns structuredContent: DeploymentSummary.

ParameterTypeDescription
deployment *stringDeployment identifier as "owner/name".

replicate_run_deployment Run a prediction on a Replicate deployment

Run a prediction against a deployment's current release. WAITS for the prediction to finish and (by default) auto-downloads the outputs locally — same UX as the curated generate_* tools. Args: - deployment: "owner/name" of the deployment to run. - input: model input parameters as a JSON object (same shape the deployment's underlying model expects). - download (default true): download output files locally. - timeout_ms (optional): max ms to wait before returning a pending result you can poll with replicate_get_prediction. Returns the standard prediction result (inline image preview…

ParameterTypeDescription
deployment *stringDeployment to run, as "owner/name". Inspect it first with replicate_get_deployment.
downloadbooleanWhether to download the generated files locally. Default true. When false, only Replicate URLs are returned (URLs expire after ~24h).
inputobjectModel input parameters as a JSON object — same shape the deployment's underlying model expects.
timeout_msintegerMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).