naftiko: 1.0.0-alpha2 info: label: Replicate — Model description: 'Replicate — Model. 7 operations. Lead operation: Delete a Model. Self-contained Naftiko capability covering one Replicate business surface.' tags: - Replicate - Model created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: REPLICATE_API_KEY: REPLICATE_API_KEY capability: consumes: - type: http namespace: replicate-model baseUri: https://api.replicate.com/v1 description: Replicate — Model business capability. Self-contained, no shared references. resources: - name: models-model_owner-model_name path: /models/{model_owner}/{model_name} operations: - name: modelsdelete method: DELETE description: Delete a Model outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: model_owner in: path type: string description: The name of the user or organization that owns the model. required: true - name: model_name in: path type: string description: The name of the model. required: true - name: modelsget method: GET description: Get a Model outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: model_owner in: path type: string description: The name of the user or organization that owns the model. required: true - name: model_name in: path type: string description: The name of the model. required: true - name: models-model_owner-model_name-predictions path: /models/{model_owner}/{model_name}/predictions operations: - name: modelspredictionscreate method: POST description: Create a Prediction Using an Official Model outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: model_owner in: path type: string description: The name of the user or organization that owns the model. required: true - name: model_name in: path type: string description: The name of the model. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: models-model_owner-model_name-versions path: /models/{model_owner}/{model_name}/versions operations: - name: modelsversionslist method: GET description: List Model Versions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: model_owner in: path type: string description: The name of the user or organization that owns the model. required: true - name: model_name in: path type: string description: The name of the model. required: true - name: models-model_owner-model_name-versions-version_id path: /models/{model_owner}/{model_name}/versions/{version_id} operations: - name: modelsversionsdelete method: DELETE description: Delete a Model Version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: model_owner in: path type: string description: The name of the user or organization that owns the model. required: true - name: model_name in: path type: string description: The name of the model. required: true - name: version_id in: path type: string description: The ID of the version. required: true - name: modelsversionsget method: GET description: Get a Model Version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: model_owner in: path type: string description: The name of the user or organization that owns the model. required: true - name: model_name in: path type: string description: The name of the model. required: true - name: version_id in: path type: string description: The ID of the version. required: true - name: models-model_owner-model_name-versions-version_id-trainings path: /models/{model_owner}/{model_name}/versions/{version_id}/trainings operations: - name: trainingscreate method: POST description: Create a Training outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: model_owner in: path type: string description: The name of the user or organization that owns the model. required: true - name: model_name in: path type: string description: The name of the model. required: true - name: version_id in: path type: string description: The ID of the version. required: true - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.REPLICATE_API_KEY}}' exposes: - type: rest namespace: replicate-model-rest port: 8080 description: REST adapter for Replicate — Model. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/models/{model-owner}/{model-name} name: models-model-owner-model-name description: REST surface for models-model_owner-model_name. operations: - method: DELETE name: modelsdelete description: Delete a Model call: replicate-model.modelsdelete with: model_owner: rest.model_owner model_name: rest.model_name outputParameters: - type: object mapping: $. - method: GET name: modelsget description: Get a Model call: replicate-model.modelsget with: model_owner: rest.model_owner model_name: rest.model_name outputParameters: - type: object mapping: $. - path: /v1/models/{model-owner}/{model-name}/predictions name: models-model-owner-model-name-predictions description: REST surface for models-model_owner-model_name-predictions. operations: - method: POST name: modelspredictionscreate description: Create a Prediction Using an Official Model call: replicate-model.modelspredictionscreate with: model_owner: rest.model_owner model_name: rest.model_name body: rest.body outputParameters: - type: object mapping: $. - path: /v1/models/{model-owner}/{model-name}/versions name: models-model-owner-model-name-versions description: REST surface for models-model_owner-model_name-versions. operations: - method: GET name: modelsversionslist description: List Model Versions call: replicate-model.modelsversionslist with: model_owner: rest.model_owner model_name: rest.model_name outputParameters: - type: object mapping: $. - path: /v1/models/{model-owner}/{model-name}/versions/{version-id} name: models-model-owner-model-name-versions-version-id description: REST surface for models-model_owner-model_name-versions-version_id. operations: - method: DELETE name: modelsversionsdelete description: Delete a Model Version call: replicate-model.modelsversionsdelete with: model_owner: rest.model_owner model_name: rest.model_name version_id: rest.version_id outputParameters: - type: object mapping: $. - method: GET name: modelsversionsget description: Get a Model Version call: replicate-model.modelsversionsget with: model_owner: rest.model_owner model_name: rest.model_name version_id: rest.version_id outputParameters: - type: object mapping: $. - path: /v1/models/{model-owner}/{model-name}/versions/{version-id}/trainings name: models-model-owner-model-name-versions-version-id-trainings description: REST surface for models-model_owner-model_name-versions-version_id-trainings. operations: - method: POST name: trainingscreate description: Create a Training call: replicate-model.trainingscreate with: model_owner: rest.model_owner model_name: rest.model_name version_id: rest.version_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: replicate-model-mcp port: 9090 transport: http description: MCP adapter for Replicate — Model. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: delete-model description: Delete a Model hints: readOnly: false destructive: true idempotent: true call: replicate-model.modelsdelete with: model_owner: tools.model_owner model_name: tools.model_name outputParameters: - type: object mapping: $. - name: get-model description: Get a Model hints: readOnly: true destructive: false idempotent: true call: replicate-model.modelsget with: model_owner: tools.model_owner model_name: tools.model_name outputParameters: - type: object mapping: $. - name: create-prediction-using-official-model description: Create a Prediction Using an Official Model hints: readOnly: false destructive: false idempotent: false call: replicate-model.modelspredictionscreate with: model_owner: tools.model_owner model_name: tools.model_name body: tools.body outputParameters: - type: object mapping: $. - name: list-model-versions description: List Model Versions hints: readOnly: true destructive: false idempotent: true call: replicate-model.modelsversionslist with: model_owner: tools.model_owner model_name: tools.model_name outputParameters: - type: object mapping: $. - name: delete-model-version description: Delete a Model Version hints: readOnly: false destructive: true idempotent: true call: replicate-model.modelsversionsdelete with: model_owner: tools.model_owner model_name: tools.model_name version_id: tools.version_id outputParameters: - type: object mapping: $. - name: get-model-version description: Get a Model Version hints: readOnly: true destructive: false idempotent: true call: replicate-model.modelsversionsget with: model_owner: tools.model_owner model_name: tools.model_name version_id: tools.version_id outputParameters: - type: object mapping: $. - name: create-training description: Create a Training hints: readOnly: false destructive: false idempotent: false call: replicate-model.trainingscreate with: model_owner: tools.model_owner model_name: tools.model_name version_id: tools.version_id body: tools.body outputParameters: - type: object mapping: $.