{"data":{"slug":"github-composiohq-awesome-claude-skills-composio-skills-replicate-automation-6dab61b4c24d","title":"Replicate AI Model Automation","summary":"Automate Replicate AI model operations -- run predictions, upload files, inspect model schemas, list versions, and manage prediction history via the Composio MCP integration. The deliverable includes model-specific input validation, file uploads, and prediction tracking.","url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-replicate-automation-6dab61b4c24d","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-composiohq-awesome-claude-skills-composio-skills-replicate-automation-6dab61b4c24d","markdown_url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-replicate-automation-6dab61b4c24d.md","download_url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-replicate-automation-6dab61b4c24d\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before running predictions, always check the `openapi_schema` from the `REPLICATE_MODELS_GET` response to ensure correct input keys and types. For file uploads, ensure content is base64-encoded and filenames are under 255 bytes UTF-8.","instructions":"---\nname: Replicate Automation\ndescription: \"Automate Replicate AI model operations -- run predictions, upload files, inspect model schemas, list versions, and manage prediction history via the Composio MCP integration.\"\nrequires:\n  mcp:\n    - rube\n---\n\n# Replicate Automation\n\nAutomate 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.\n\n**Toolkit docs:** [composio.dev\/toolkits\/replicate](https:\/\/composio.dev\/toolkits\/replicate)\n\n---\n\n## Setup\n\n1. Add the Composio MCP server to your client: `https:\/\/rube.app\/mcp`\n2. Connect your Replicate account when prompted (API token authentication)\n3. Start using the workflows below\n\n---\n\n## Core Workflows\n\n### 1. Get Model Details and Schema\n\nUse `REPLICATE_MODELS_GET` to inspect a model's input\/output schema before running predictions.\n\n```\nTool: REPLICATE_MODELS_GET\nInputs:\n  - model_owner: string (required) -- e.g., \"meta\", \"black-forest-labs\", \"stability-ai\"\n  - model_name: string (required) -- e.g., \"meta-llama-3-8b-instruct\", \"flux-1.1-pro\"\n```\n\n**Important:** Each model has unique input keys and types. Always check the `openapi_schema` from this response before constructing prediction inputs.\n\n### 2. Run a Prediction\n\nUse `REPLICATE_MODELS_PREDICTIONS_CREATE` to run inference on any model with optional synchronous waiting and webhooks.\n\n```\nTool: REPLICATE_MODELS_PREDICTIONS_CREATE\nInputs:\n  - model_owner: string (required) -- e.g., \"meta\", \"black-forest-labs\"\n  - model_name: string (required) -- e.g., \"flux-1.1-pro\", \"sdxl\"\n  - input: object (required) -- model-specific inputs, e.g., { \"prompt\": \"A sunset over mountains\" }\n  - wait_for: integer (1-60 seconds, optional) -- synchronous wait for completion\n  - cancel_after: string (optional) -- max execution time, e.g., \"300s\", \"5m\"\n  - webhook: string (optional) -- HTTPS URL for async completion notifications\n  - webhook_events_filter: array (optional) -- [\"start\", \"output\", \"logs\", \"completed\"]\n```\n\n**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`.\n\n### 3. Upload Files for Model Input\n\nUse `REPLICATE_CREATE_FILE` to upload images, documents, or other binary inputs that models need.\n\n```\nTool: REPLICATE_CREATE_FILE\nInputs:\n  - content: string (required) -- base64-encoded file content\n  - filename: string (required) -- e.g., \"input.png\", \"audio.wav\" (max 255 bytes UTF-8)\n  - content_type: string (default \"application\/octet-stream\") -- MIME type\n  - metadata: object (optional) -- custom JSON metadata\n```\n\n### 4. Read Model Documentation\n\nUse `REPLICATE_MODELS_README_GET` to access a model's README in Markdown format for detailed usage instructions.\n\n```\nTool: REPLICATE_MODELS_README_GET\nInputs:\n  - model_owner: string (required)\n  - model_name: string (required)\n```\n\n### 5. List Model Versions\n\nUse `REPLICATE_MODELS_VERSIONS_LIST` to see all available versions of a model, sorted newest first.\n\n```\nTool: REPLICATE_MODELS_VERSIONS_LIST\nInputs:\n  - model_owner: string (required)\n  - model_name: string (required)\n```\n\n### 6. Track Prediction History and Files\n\nUse `REPLICATE_PREDICTIONS_LIST` to retrieve prediction history, and `REPLICATE_FILES_GET`\/`REPLICATE_FILES_LIST` to manage uploaded files.\n\n```\nTool: REPLICATE_PREDICTIONS_LIST\n  - Lists all predictions for the authenticated user with pagination\n\nTool: REPLICATE_FILES_LIST\n  - Lists uploaded files, most recent first\n\nTool: REPLICATE_FILES_GET\n  - Get details of a specific file by ID\n```\n\n---\n\n## Known Pitfalls\n\n| Pitfall | Detail |\n|---------|--------|\n| 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`. |\n| File upload encoding | `REPLICATE_CREATE_FILE` requires base64-encoded content. Binary files treated as text (UTF-8) will fail with decode errors. |\n| Public vs deployment paths | Public models must be run via `REPLICATE_MODELS_PREDICTIONS_CREATE`. Using deployment-oriented paths causes HTTP 404 failures. |\n| Sync wait limits | `wait_for` supports 1-60 seconds only. Long-running jobs need async handling via webhooks or polling `REPLICATE_PREDICTIONS_LIST`. |\n| 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. |\n| Stale file references | Heavy usage creates many uploads. Routinely check `REPLICATE_FILES_LIST` to avoid using stale `file_id` references. |\n\n---\n\n## Quick Reference\n\n| Tool Slug | Description |\n|-----------|-------------|\n| `REPLICATE_MODELS_GET` | Get model details, schema, and metadata |\n| `REPLICATE_MODELS_PREDICTIONS_CREATE` | Run a prediction on a model |\n| `REPLICATE_CREATE_FILE` | Upload a file for model input |\n| `REPLICATE_MODELS_README_GET` | Get model README documentation |\n| `REPLICATE_MODELS_VERSIONS_LIST` | List all versions of a model |\n| `REPLICATE_PREDICTIONS_LIST` | List prediction history with pagination |\n| `REPLICATE_FILES_LIST` | List uploaded files |\n| `REPLICATE_FILES_GET` | Get file details by ID |\n\n---\n\n*Powered by [Composio](https:\/\/composio.dev)*\n","use_cases":["Run image generation predictions on Flux models","Track prediction history for LLM inference jobs","Upload and manage binary files for model input"],"limitations":[],"compatibility":[],"setup_tip":"1. Add the Composio MCP server to your client: `https:\/\/rube.app\/mcp`\n2. Connect your Replicate account when prompted (API token authentication)\n3. Start using the workflows below\n\n---","sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/ComposioHQ\/awesome-claude-skills\/blob\/be2a406907dbc61b73e6827ded415c96139d13a2\/composio-skills\/replicate-automation\/SKILL.md","source_commit":"be2a406907dbc61b73e6827ded415c96139d13a2","license":null,"version":null,"listing_approved_at":"2026-11-21","created_at":"2026-11-20T10:12:28.000000Z","updated_at":"2026-11-21T05:00:47.000000Z","seo_title":"Replicate AI Model Automation Tool","seo_description":"Automate Replicate AI model operations with Composio MCP integration. Run predictions, upload files, and manage prediction history.","seo_keywords":["Replicate AI model automation","Composio MCP integration","Run AI predictions","Manage prediction history","Upload model files"]}}