Replicate Automation
Skill này làm gì
Công cụ này cho phép bạn dùng các mô hình AI của Replicate để tạo ảnh, văn bản, âm thanh và video. Bạn có thể chạy các mô hình này, xem cách chúng hoạt động, gửi file cho chúng và theo dõi những gì đã được tạo.
Khi nào nên dùng
- ✓Khi bạn muốn tạo ảnh từ mô tả bằng văn bản.
- ✓Khi bạn muốn tạo văn bản bằng mô hình ngôn ngữ.
- ✓Khi bạn muốn xem chi tiết một mô hình AI trước khi dùng.
Liên kết skill
https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/replicate-automation/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy tạo ảnh một con mèo bằng mô hình “stability-ai/stable-diffusion-xl-base-1.0” với mô tả “một con mèo dễ thương đang ngủ trên ghế sofa”.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn kết nối tài khoản Replicate, sau đó có thể yêu cầu AI chạy các mô hình cụ thể, tải lên các file mà mô hình cần, hoặc xem thông tin về chúng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Replicate Automation
Automate your Replicate AI model workflows -- run predictions on any public model (image generation, LLMs, audio, video), upload input files, inspect model schemas and documentation, list model versions, and track prediction history.
Toolkit docs: composio.dev/toolkits/replicate
Setup
- Add the Composio MCP server to your client:
https://rube.app/mcp - Connect your Replicate account when prompted (API token authentication)
- Start using the workflows below
Core Workflows
1. Get Model Details and Schema
Use REPLICATE_MODELS_GET to inspect a model's input/output schema before running predictions.
Tool: REPLICATE_MODELS_GET
Inputs:
- model_owner: string (required) -- e.g., "meta", "black-forest-labs", "stability-ai"
- model_name: string (required) -- e.g., "meta-llama-3-8b-instruct", "flux-1.1-pro"
Important: Each model has unique input keys and types. Always check the openapi_schema from this response before constructing prediction inputs.
2. Run a Prediction
Use REPLICATE_MODELS_PREDICTIONS_CREATE to run inference on any model with optional synchronous waiting and webhooks.
Tool: REPLICATE_MODELS_PREDICTIONS_CREATE
Inputs:
- model_owner: string (required) -- e.g., "meta", "black-forest-labs"
- model_name: string (required) -- e.g., "flux-1.1-pro", "sdxl"
- input: object (required) -- model-specific inputs, e.g., { "prompt": "A sunset over mountains" }
- wait_for: integer (1-60 seconds, optional) -- synchronous wait for completion
- cancel_after: string (optional) -- max execution time, e.g., "300s", "5m"
- webhook: string (optional) -- HTTPS URL for async completion notifications
- webhook_events_filter: array (optional) -- ["start", "output", "logs", "completed"]
Sync vs Async: Use wait_for (1-60s) for fast models. For long-running jobs, omit it and use webhooks or poll via REPLICATE_PREDICTIONS_LIST.
3. Upload Files for Model Input
Use REPLICATE_CREATE_FILE to upload images, documents, or other binary inputs that models need.
Tool: REPLICATE_CREATE_FILE
Inputs:
- content: string (required) -- base64-encoded file content
- filename: string (required) -- e.g., "input.png", "audio.wav" (max 255 bytes UTF-8)
- content_type: string (default "application/octet-stream") -- MIME type
- metadata: object (optional) -- custom JSON metadata
4. Read Model Documentation
Use REPLICATE_MODELS_README_GET to access a model's README in Markdown format for detailed usage instructions.
Tool: REPLICATE_MODELS_README_GET
Inputs:
- model_owner: string (required)
- model_name: string (required)
5. List Model Versions
Use REPLICATE_MODELS_VERSIONS_LIST to see all available versions of a model, sorted newest first.
Tool: REPLICATE_MODELS_VERSIONS_LIST
Inputs:
- model_owner: string (required)
- model_name: string (required)
6. Track Prediction History and Files
Use REPLICATE_PREDICTIONS_LIST to retrieve prediction history, and REPLICATE_FILES_GET/REPLICATE_FILES_LIST to manage uploaded files.
Tool: REPLICATE_PREDICTIONS_LIST
- Lists all predictions for the authenticated user with pagination
Tool: REPLICATE_FILES_LIST
- Lists uploaded files, most recent first
Tool: REPLICATE_FILES_GET
- Get details of a specific file by ID
Known Pitfalls
| Pitfall | Detail |
|---|---|
| Model-specific input keys | Each model has unique input keys and types. Using the wrong key causes validation errors. Always call REPLICATE_MODELS_GET first to check the openapi_schema. |
| File upload encoding | REPLICATE_CREATE_FILE requires base64-encoded content. Binary files treated as text (UTF-8) will fail with decode errors. |
| Public vs deployment paths | Public models must be run via REPLICATE_MODELS_PREDICTIONS_CREATE. Using deployment-oriented paths causes HTTP 404 failures. |
| Sync wait limits | wait_for supports 1-60 seconds only. Long-running jobs need async handling via webhooks or polling REPLICATE_PREDICTIONS_LIST. |
| Image model constraints | Image models like flux-1.1-pro have specific constraints (e.g., max width/height 1440px, valid aspect ratios). Check the model schema first. |
| Stale file references | Heavy usage creates many uploads. Routinely check REPLICATE_FILES_LIST to avoid using stale file_id references. |
Quick Reference
…
Câu hỏi thường gặp
Làm sao tôi kết nối tài khoản Replicate?
Bạn cần thêm một máy chủ đặc biệt (Composio MCP), rồi kết nối tài khoản Replicate bằng API token khi được yêu cầu.
“Schema” là gì?
Schema giống như “quy tắc” của một mô hình AI. Nó cho biết mô hình cần thông tin gì để hoạt động, như văn bản để tạo ảnh, và sẽ trả lại gì cho bạn.
Tôi có thể chạy các mô hình mất nhiều thời gian không?
Có. Bạn có thể dùng “webhook” để được thông báo khi có kết quả, hoặc xem lịch sử tác vụ để theo dõi tiến độ.
Chi tiết
Mô tả gốc của tác giả
Automate Replicate AI model operations -- run predictions, upload files, inspect model schemas, list versions, and manage prediction history via the Composio MCP integration.
Độ phổ biến
- Sao GitHub
- 77k
- Vị trí xếp hạng
- #2375
- Giấy phép
- —
- Cập nhật
- 18/9/2026
Bình luận
- …
Thêm skill từ kho mã này
artifacts-builder
77kGiúp agent của bạn xây dựng giao diện người dùng phức tạp. Dùng công nghệ hiện đại để tạo trang web tương tác phong phú.
brand-guidelines
77kGiúp agent của bạn áp dụng màu sắc và phông chữ thương hiệu chính thức cho tài liệu. Giữ bản sắc trực quan cho mọi nội dung cần đúng phong cách công ty.
canvas-design
77kGiúp agent của bạn tạo tác phẩm nghệ thuật gốc dạng .png và .pdf. Dùng khi cần poster, tranh nghệ thuật hoặc thiết kế tĩnh khác.
changelog-generator
77kGiúp agent của bạn tạo ghi chú phát hành dành cho người dùng từ các commit mã. Biến thông tin kỹ thuật thành văn bản dễ hiểu.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.