— No reviews yet
0 installs
8 views
0.0% view→install
Install
$ agentstack add skill-replicate-skills-run-models ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Run Models? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
Docs
- Reference:
- OpenAPI schema:
- MCP server:
- Per-model docs:
https://replicate.com/{owner}/{model}/llms.txt - Set
Accept: text/markdownwhen requesting docs pages for Markdown responses.
Workflow
- Choose the right model - Search with the API or ask the user.
- Get model metadata - Fetch input and output schema via API.
- Create prediction - POST to /v1/predictions.
- Poll for results - GET prediction until status is "succeeded".
- Return output - Usually URLs to generated content.
Three ways to get output
- Create a prediction, store its id from the response, and poll until completion.
- Set a
Prefer: waitheader when creating a prediction for a blocking synchronous response. Only recommended for very fast models. Max 60 seconds. - Set an HTTPS webhook URL when creating a prediction, and Replicate will POST to that URL when the prediction completes.
Guidelines
- Use the
POST /v1/predictionsendpoint, as it supports both official and community models. - Every model has its own OpenAPI schema. Always fetch and check model schemas to make sure you're setting valid inputs. Even popular models change their schemas.
- Validate input parameters against schema constraints (
minimum,maximum,enumvalues). Don't generate values that violate them. - When unsure about a parameter value, use the model's default example or omit the optional parameter.
- Don't set optional inputs unless you have a reason to. Stick to the required inputs and let the model's defaults do the work.
- Use HTTPS URLs for file inputs whenever possible. You can also send base64-encoded files, but they should be avoided.
- Fire off multiple predictions concurrently. Don't wait for one to finish before starting the next.
- Output file URLs expire after 1 hour, so back them up if you need to keep them, using a service like Cloudflare R2.
- Webhooks are a good mechanism for receiving and storing prediction output.
Predictions
- A prediction goes through these states:
starting->processing->succeeded/failed/canceled. - Official models use
owner/nameformat. Community models requireowner/name:version_id. - The
POST /v1/predictionsendpoint handles both.
Webhooks
- Set
webhookto an HTTPS URL when creating a prediction. Replicate POSTs the full prediction object when it completes. - Filter events with
webhook_events_filter:start,output,logs,completed. - Validate webhook signatures using the
Webhook-ID,Webhook-Timestamp, andWebhook-Signatureheaders. Get the signing secret fromGET /v1/webhooks/default/secret.
Prediction lifetime
- Set
lifetimeto auto-cancel predictions that run too long (e.g.30s,5m,1h). Measured from creation time.
Streaming
- Language models that support streaming include a
streamURL in the response. Use SSE to receive incremental output.
File handling
- Prefer HTTPS URLs for file inputs. Output URLs from one prediction can be passed directly as file inputs to the next model.
- Output file URLs expire after 1 hour. Download and store them immediately if you need to keep them.
Multi-model workflows
- Chain models by passing output URLs as file inputs to the next model.
- Start all independent predictions in parallel, then collect results.
- Output URLs are valid for 1 hour, which is enough for pipeline steps.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: replicate
- Source: replicate/skills
- License: Apache-2.0
- Homepage: https://skills.sh/replicate/skills/replicate
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.