Skip to content

Commit 8a2b6c0

Browse files
committed
document a common workflow
1 parent 0cdf071 commit 8a2b6c0

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

skills/replicate/SKILL.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ description: Discover, compare, and run AI models using Replicate's API
1010
- MCP server: https://mcp.replicate.com
1111
- Set an `Accept: text/markdown` header when requesting docs pages to get a Markdown response.
1212

13+
## Workflow
14+
15+
Here's a common workflow for using Replicate's API to run a model:
16+
17+
1. **Choose the right model** - Search with the API or ask the user
18+
2. **Get model metadata** - Fetch model input and output schema via API
19+
3. **Create prediction** - POST to /v1/predictions
20+
4. **Poll for results** - GET prediction until status is "succeeded"
21+
5. **Return output** - Usually URLs to generated content
22+
1323
## Choosing models
1424

1525
- Use the search and collections APIs to find and compare the best models. Do not list all the models via API, as it's basically a firehose.
@@ -38,4 +48,6 @@ Follow these guideliness when running models:
3848
- Use HTTPS URLs for file inputs whenever possible. You can also send base64-encoded files, but they should be avoided.
3949
- Fire off multiple predictions concurrently. Don't wait for one to finish before starting the next.
4050
- Output file URLs expire after 1 hour, so back them up if you need to keep them, using a service like Cloudflare R2.
41-
- Webhooks are a good mechanism for receiving and storing prediction output.
51+
- Webhooks are a good mechanism for receiving and storing prediction output.
52+
53+

0 commit comments

Comments
 (0)