Replicate · Capability

Replicate — Predictions

Replicate — Predictions. 6 operations. Lead operation: Create a Prediction Using a Deployment. Self-contained Naftiko capability covering one Replicate business surface.

Run with Naftiko ReplicatePredictions

What You Can Do

POST
Deploymentspredictionscreate — Create a Prediction Using a Deployment
/v1/deployments/{deployment-owner}/{deployment-name}/predictions
POST
Modelspredictionscreate — Create a Prediction Using an Official Model
/v1/models/{model-owner}/{model-name}/predictions
GET
Predictionslist — List Predictions
/v1/predictions
POST
Predictionscreate — Create a Prediction
/v1/predictions
GET
Predictionsget — Get a Prediction
/v1/predictions/{prediction-id}
POST
Predictionscancel — Cancel a Prediction
/v1/predictions/{prediction-id}/cancel

MCP Tools

create-prediction-using-deployment

Create a Prediction Using a Deployment

create-prediction-using-official-model

Create a Prediction Using an Official Model

list-predictions

List Predictions

read-only idempotent
create-prediction

Create a Prediction

get-prediction

Get a Prediction

read-only idempotent
cancel-prediction

Cancel a Prediction

Capability Spec

replicate-predictions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Replicate — Predictions
  description: 'Replicate — Predictions. 6 operations. Lead operation: Create a Prediction Using a Deployment. Self-contained
    Naftiko capability covering one Replicate business surface.'
  tags:
  - Replicate
  - Predictions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    REPLICATE_API_KEY: REPLICATE_API_KEY
capability:
  consumes:
  - type: http
    namespace: replicate-predictions
    baseUri: https://api.replicate.com/v1
    description: Replicate — Predictions business capability. Self-contained, no shared references.
    resources:
    - name: deployments-deployment_owner-deployment_name-predictions
      path: /deployments/{deployment_owner}/{deployment_name}/predictions
      operations:
      - name: deploymentspredictionscreate
        method: POST
        description: Create a Prediction Using a Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: deployment_owner
          in: path
          type: string
          description: The name of the user or organization that owns the deployment.
          required: true
        - name: deployment_name
          in: path
          type: string
          description: The name of the deployment.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - 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: predictions
      path: /predictions
      operations:
      - name: predictionslist
        method: GET
        description: List Predictions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: predictionscreate
        method: POST
        description: Create a Prediction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: predictions-prediction_id
      path: /predictions/{prediction_id}
      operations:
      - name: predictionsget
        method: GET
        description: Get a Prediction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: prediction_id
          in: path
          type: string
          description: The ID of the prediction to get.
          required: true
    - name: predictions-prediction_id-cancel
      path: /predictions/{prediction_id}/cancel
      operations:
      - name: predictionscancel
        method: POST
        description: Cancel a Prediction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: prediction_id
          in: path
          type: string
          description: The ID of the prediction to cancel.
          required: true
    authentication:
      type: bearer
      token: '{{env.REPLICATE_API_KEY}}'
  exposes:
  - type: rest
    namespace: replicate-predictions-rest
    port: 8080
    description: REST adapter for Replicate — Predictions. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/deployments/{deployment-owner}/{deployment-name}/predictions
      name: deployments-deployment-owner-deployment-name-predictions
      description: REST surface for deployments-deployment_owner-deployment_name-predictions.
      operations:
      - method: POST
        name: deploymentspredictionscreate
        description: Create a Prediction Using a Deployment
        call: replicate-predictions.deploymentspredictionscreate
        with:
          deployment_owner: rest.deployment_owner
          deployment_name: rest.deployment_name
          body: rest.body
        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-predictions.modelspredictionscreate
        with:
          model_owner: rest.model_owner
          model_name: rest.model_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/predictions
      name: predictions
      description: REST surface for predictions.
      operations:
      - method: GET
        name: predictionslist
        description: List Predictions
        call: replicate-predictions.predictionslist
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: predictionscreate
        description: Create a Prediction
        call: replicate-predictions.predictionscreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/predictions/{prediction-id}
      name: predictions-prediction-id
      description: REST surface for predictions-prediction_id.
      operations:
      - method: GET
        name: predictionsget
        description: Get a Prediction
        call: replicate-predictions.predictionsget
        with:
          prediction_id: rest.prediction_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/predictions/{prediction-id}/cancel
      name: predictions-prediction-id-cancel
      description: REST surface for predictions-prediction_id-cancel.
      operations:
      - method: POST
        name: predictionscancel
        description: Cancel a Prediction
        call: replicate-predictions.predictionscancel
        with:
          prediction_id: rest.prediction_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: replicate-predictions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Replicate — Predictions. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-prediction-using-deployment
      description: Create a Prediction Using a Deployment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: replicate-predictions.deploymentspredictionscreate
      with:
        deployment_owner: tools.deployment_owner
        deployment_name: tools.deployment_name
        body: tools.body
      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-predictions.modelspredictionscreate
      with:
        model_owner: tools.model_owner
        model_name: tools.model_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-predictions
      description: List Predictions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: replicate-predictions.predictionslist
      outputParameters:
      - type: object
        mapping: $.
    - name: create-prediction
      description: Create a Prediction
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: replicate-predictions.predictionscreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-prediction
      description: Get a Prediction
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: replicate-predictions.predictionsget
      with:
        prediction_id: tools.prediction_id
      outputParameters:
      - type: object
        mapping: $.
    - name: cancel-prediction
      description: Cancel a Prediction
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: replicate-predictions.predictionscancel
      with:
        prediction_id: tools.prediction_id
      outputParameters:
      - type: object
        mapping: $.