Foundational fal.ai skill that drives the genmedia CLI across 1200+ hosted generative model endpoints — smart routing, schema inspection, async queues and agent-parseable JSON.
Replicate: Run ModelsSkill
Summary
Replicate's official skill for running models via its API — predictions, polling, Prefer: wait, webhooks with signature validation, streaming and file handling.
Features
- Fetch and validate against each model's OpenAPI schema before calling it
- Three output paths: poll, Prefer: wait (fast models only), or webhook
- Webhook signature validation and event filtering
- SSE streaming for language models
- Concurrency, prediction lifetime, and the one-hour expiry on output URLs
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
One of seven official skills published by Replicate for building on its model API. This is the execution half: how to actually get output out of a model.
Replicate hosts thousands of image, video, audio and language models behind one prediction API, and the failure modes are consistent enough to be worth writing down. This skill encodes them. Always fetch the model's own OpenAPI schema before building inputs — every model has its own, popular models change theirs, and violating a minimum, maximum or enum constraint is the most common way a call fails. Don't set optional inputs without a reason; the defaults are usually the tuned ones.
It covers the three ways to collect output and when each is right: create-and-poll for anything slow, a Prefer: wait header for a blocking response from fast models only (60-second ceiling), and an HTTPS webhook for production. The webhook section is the part most integrations get wrong, and the skill spells out the signature validation using the Webhook-ID, Webhook-Timestamp and Webhook-Signature headers against the secret from GET /v1/webhooks/default/secret.
Also here: the prediction state machine (starting → processing → succeeded/failed/canceled), the owner/name versus owner/name:version_id distinction between official and community models, lifetime for auto-cancelling runaway predictions, SSE streaming for language models, and the operational detail that bites people in production — output file URLs expire after one hour, so back them up to your own storage if you need to keep them.
The sibling skills in the same repository cover finding models, comparing them on cost and quality, packaging your own with Cog, publishing them, and prompting image and video models.
Related Skills
Skill: Venice Image Generation
by Venice AI
Venice's official skill for its two text-to-image endpoints — the native API with negative prompts, CFG and seeds, and the OpenAI-compatible drop-in.
Skill: Claude API Reference
by Anthropic
Authoritative reference for the Claude API and Anthropic SDKs — model IDs, pricing, parameters, streaming, tool use, MCP, agents, prompt caching, and token counting.
Skill: Typefully Social Publishing
by Typefully
Typefully's official skill for drafting, scheduling and publishing to X, LinkedIn, Threads, Bluesky, Mastodon and Substack Notes from your agent or terminal.