{
  "service": "replicate",
  "displayName": "Replicate",
  "categories": [
    "AI",
    "Developer Tools"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Token",
      "placeholder": "r8_...",
      "description": "Replicate API token used with the Authorization Bearer header. Create or manage tokens on the official API tokens page: https://replicate.com/account/api-tokens."
    }
  ],
  "homepageUrl": "https://replicate.com",
  "actions": [
    {
      "id": "replicate.cancel_prediction",
      "service": "replicate",
      "name": "cancel_prediction",
      "description": "Cancel a running Replicate prediction by prediction ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "predictionId": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate prediction identifier."
          }
        },
        "additionalProperties": false,
        "description": "Input for selecting a Replicate prediction."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "prediction": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A Replicate API object."
          }
        },
        "additionalProperties": true,
        "description": "A Replicate prediction response after cancellation."
      }
    },
    {
      "id": "replicate.create_prediction",
      "service": "replicate",
      "name": "create_prediction",
      "description": "Create a Replicate prediction using JSON model input and optional synchronous wait headers.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate model identifier, model version identifier, or owner/model:version reference."
          },
          "input": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A JSON-serializable model input object."
          },
          "waitSeconds": {
            "type": "integer",
            "minimum": 1,
            "maximum": 60,
            "description": "Seconds to wait synchronously for prediction output."
          },
          "cancelAfter": {
            "type": "string",
            "minLength": 1,
            "description": "Maximum prediction runtime before Replicate cancels it, such as 30s, 5m, or 1h30m."
          },
          "webhook": {
            "type": "string",
            "description": "An HTTPS webhook URL for Replicate prediction events.",
            "format": "uri"
          },
          "webhookEventsFilter": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "start",
                "output",
                "logs",
                "completed"
              ],
              "description": "One Replicate webhook event filter."
            },
            "description": "The Replicate prediction event types that should trigger the webhook.",
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "version",
          "input"
        ],
        "description": "Input for creating a Replicate prediction from a model or model version."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "prediction": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A Replicate API object."
          }
        },
        "additionalProperties": true,
        "description": "A Replicate prediction response."
      }
    },
    {
      "id": "replicate.get_account",
      "service": "replicate",
      "name": "get_account",
      "description": "Retrieve the authenticated Replicate account for the connected API token.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "No input parameters are required."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "account": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A Replicate API object."
          }
        },
        "additionalProperties": true,
        "description": "The authenticated Replicate account response."
      }
    },
    {
      "id": "replicate.get_collection",
      "service": "replicate",
      "name": "get_collection",
      "description": "Retrieve one Replicate collection by slug.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "collectionSlug": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate collection slug."
          }
        },
        "additionalProperties": false,
        "description": "Input for selecting a Replicate collection."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "collection": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A Replicate API object."
          }
        },
        "additionalProperties": true,
        "description": "A Replicate collection response."
      }
    },
    {
      "id": "replicate.get_model",
      "service": "replicate",
      "name": "get_model",
      "description": "Retrieve one Replicate model by owner and model slug.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate model owner username or organization slug."
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate model name slug."
          }
        },
        "additionalProperties": false,
        "description": "Input for selecting a Replicate model."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "model": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A Replicate API object."
          }
        },
        "additionalProperties": true,
        "description": "A Replicate model response."
      }
    },
    {
      "id": "replicate.get_model_version",
      "service": "replicate",
      "name": "get_model_version",
      "description": "Retrieve one Replicate model version by owner, model, and version ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate model owner username or organization slug."
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate model name slug."
          },
          "versionId": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate model version identifier."
          }
        },
        "additionalProperties": false,
        "description": "Input for selecting a Replicate model version."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A Replicate API object."
          }
        },
        "additionalProperties": true,
        "description": "A Replicate model version response."
      }
    },
    {
      "id": "replicate.get_prediction",
      "service": "replicate",
      "name": "get_prediction",
      "description": "Retrieve the current state and output of a Replicate prediction.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "predictionId": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate prediction identifier."
          }
        },
        "additionalProperties": false,
        "description": "Input for selecting a Replicate prediction."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "prediction": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A Replicate API object."
          }
        },
        "additionalProperties": true,
        "description": "A Replicate prediction response."
      }
    },
    {
      "id": "replicate.list_collections",
      "service": "replicate",
      "name": "list_collections",
      "description": "List public Replicate model collections.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "No input parameters are required."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "collections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A Replicate API object."
            },
            "description": "The Replicate collections returned for this page."
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "description": "A Replicate pagination URL.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "previous": {
            "anyOf": [
              {
                "type": "string",
                "description": "A Replicate pagination URL.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": true,
        "description": "A paginated list of Replicate collections."
      }
    },
    {
      "id": "replicate.list_model_versions",
      "service": "replicate",
      "name": "list_model_versions",
      "description": "List versions for one Replicate model.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate model owner username or organization slug."
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "description": "The Replicate model name slug."
          }
        },
        "additionalProperties": false,
        "description": "Input for selecting a Replicate model."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A Replicate API object."
            },
            "description": "The model versions returned for this page."
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "description": "A Replicate pagination URL.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "previous": {
            "anyOf": [
              {
                "type": "string",
                "description": "A Replicate pagination URL.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": true,
        "description": "A paginated list of Replicate model versions."
      }
    },
    {
      "id": "replicate.list_models",
      "service": "replicate",
      "name": "list_models",
      "description": "List public Replicate models with optional official sorting parameters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "sortBy": {
            "type": "string",
            "enum": [
              "model_created_at",
              "latest_version_created_at"
            ],
            "description": "The field used to sort public Replicate models."
          },
          "sortDirection": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The sort direction for Replicate model results."
          }
        },
        "additionalProperties": false,
        "description": "Input for listing public Replicate models."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "models": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A Replicate API object."
            },
            "description": "The Replicate models returned for this page."
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "description": "A Replicate pagination URL.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "previous": {
            "anyOf": [
              {
                "type": "string",
                "description": "A Replicate pagination URL.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": true,
        "description": "A paginated list of Replicate models."
      }
    },
    {
      "id": "replicate.list_predictions",
      "service": "replicate",
      "name": "list_predictions",
      "description": "List Replicate predictions for the authenticated account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "createdAfter": {
            "type": "string",
            "description": "Include predictions created at or after this ISO 8601 timestamp.",
            "format": "date-time"
          },
          "createdBefore": {
            "type": "string",
            "description": "Include predictions created before this ISO 8601 timestamp.",
            "format": "date-time"
          },
          "source": {
            "const": "web",
            "type": "string",
            "description": "Filter predictions to those created from the Replicate website."
          }
        },
        "additionalProperties": false,
        "description": "Input for filtering Replicate predictions."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "predictions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A Replicate API object."
            },
            "description": "The Replicate predictions returned for this page."
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "description": "A Replicate pagination URL.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "previous": {
            "anyOf": [
              {
                "type": "string",
                "description": "A Replicate pagination URL.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": true,
        "description": "A paginated list of Replicate predictions."
      }
    }
  ]
}
