use-replicate

Generate images, video, audio, and transcriptions via Replicate API scripts.

Updated May 29, 2026
One-click install
npx skills add https://github.com/Thedougler/shattered-sea-wiki --skill use-replicate-thedougler
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: use-replicate
Source: https://github.com/Thedougler/shattered-sea-wiki/tree/main/.claude/skills/use-replicate
Command: npx skills add https://github.com/Thedougler/shattered-sea-wiki --skill use-replicate-thedougler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires replicate, and includes scripts (resource) and references (resource) components.

What problem does it solve? Running multimodal AI models for image generation, video creation, speech synthesis, transcription, OCR, and image editing normally requires managing GPUs or integrating many separate APIs. This Skill wraps Replicate's pay-per-use model catalog in ready-to-run Node.js scripts with sensible defaults, model selection guidance, and prompting rules. ## Core Features & Use Cases - Media Generation: Create images (FLUX, nano-banana, gpt-image, ideogram), SVG vectors (recraft), video (Veo, Kling, Runway), music (MusicGen), and text-to-speech (Kokoro, ElevenLabs) through simple CLI commands. - Editing & Processing: Upscale images, remove backgrounds, restore faces, inpaint regions, run OCR, and transcribe audio with speaker diarization. - Model Selection Guidance: Decision tables map each task to the right model with cost estimates, plus detailed prompting guides per model family. - Use Case: A marketer needs a product photo with readable label text. Run gen-image.mjs with the nano-banana model, which renders text reliably, then refine it with conversational editing instead of re-rolling. ## Quick Start Generate an image by asking the agent to run gen-image.mjs with your prompt and save the result to a file, making sure REPLICATE_API_TOKEN is set in .env first.

Frequently Asked Questions about use-replicate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an image with Replicate from the command line?▼

Run gen-image.mjs with your prompt in quotes and optionally --model, --aspect, --format, and --save flags. The default model is flux-schnell at roughly $0.003 per image, and the script auto-loads your REPLICATE_API_TOKEN from .env.

Which Replicate model renders readable text in images?▼

Use nano-banana, gpt-image, or ideogram for text in images, since FLUX cannot render readable text. Wrap the exact text in quotation marks in the prompt and keep it to three to five words for reliable rendering.

How do I generate an image with a transparent background on Replicate?▼

Only gpt-image supports native alpha transparency via the --bg transparent flag, which auto-forces PNG output. For other models, generate normally and then run edit-image.mjs rembg to strip the background.

Why am I getting 429 rate limit errors when generating images?▼

Replicate burst-limits accounts with low credit to one concurrent prediction. Generate images one at a time rather than in parallel, and wait about 12 seconds between calls; the scripts also retry automatically on 429 responses.

Can I transcribe audio with speaker identification using Replicate?▼

Yes, run transcribe.mjs with the --diarize flag, which switches to the whisper-diarization model for speaker identification. The default whisper-fast model transcribes 150 minutes of audio in under two minutes across 98 languages.

What are the limitations of Replicate output URLs?▼

Output URLs from Replicate expire after one hour, so always pass --save to write results to disk. The scripts download the output immediately and create target directories as needed.