Portkey · Capability

Portkey API — Fine-tuning

Portkey API — Fine-tuning. 5 operations. Lead operation: List your organization's fine-tuning jobs. Self-contained Naftiko capability covering one Portkey business surface.

Run with Naftiko PortkeyFine-tuning

What You Can Do

GET
Listpaginatedfinetuningjobs — List your organization's fine-tuning jobs
/v1/fine-tuning/jobs
GET
Retrievefinetuningjob — Get info about a fine-tuning job.
/v1/fine-tuning/jobs/{fine-tuning-job-id}
POST
Cancelfinetuningjob — Immediately cancel a fine-tune job.
/v1/fine-tuning/jobs/{fine-tuning-job-id}/cancel
GET
Listfinetuningjobcheckpoints — List checkpoints for a fine-tuning job.
/v1/fine-tuning/jobs/{fine-tuning-job-id}/checkpoints
GET
Listfinetuningevents — Get status updates for a fine-tuning job.
/v1/fine-tuning/jobs/{fine-tuning-job-id}/events

MCP Tools

list-your-organization-s-fine-tuning

List your organization's fine-tuning jobs

read-only idempotent
get-info-about-fine-tuning

Get info about a fine-tuning job.

read-only idempotent
immediately-cancel-fine-tune-job

Immediately cancel a fine-tune job.

list-checkpoints-fine-tuning-job

List checkpoints for a fine-tuning job.

read-only idempotent
get-status-updates-fine-tuning

Get status updates for a fine-tuning job.

read-only idempotent

Capability Spec

portkey-fine-tuning.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Portkey API — Fine-tuning
  description: 'Portkey API — Fine-tuning. 5 operations. Lead operation: List your organization''s fine-tuning jobs. Self-contained
    Naftiko capability covering one Portkey business surface.'
  tags:
  - Portkey
  - Fine-tuning
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTKEY_API_KEY: PORTKEY_API_KEY
capability:
  consumes:
  - type: http
    namespace: portkey-fine-tuning
    baseUri: https://api.portkey.ai/v1
    description: Portkey API — Fine-tuning business capability. Self-contained, no shared references.
    resources:
    - name: fine_tuning-jobs
      path: /fine_tuning/jobs
      operations:
      - name: listpaginatedfinetuningjobs
        method: GET
        description: List your organization's fine-tuning jobs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: after
          in: query
          type: string
          description: Identifier for the last job from the previous pagination request.
        - name: limit
          in: query
          type: integer
          description: Number of fine-tuning jobs to retrieve.
    - name: fine_tuning-jobs-fine_tuning_job_id
      path: /fine_tuning/jobs/{fine_tuning_job_id}
      operations:
      - name: retrievefinetuningjob
        method: GET
        description: Get info about a fine-tuning job.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fine_tuning_job_id
          in: path
          type: string
          description: The ID of the fine-tuning job.
          required: true
    - name: fine_tuning-jobs-fine_tuning_job_id-cancel
      path: /fine_tuning/jobs/{fine_tuning_job_id}/cancel
      operations:
      - name: cancelfinetuningjob
        method: POST
        description: Immediately cancel a fine-tune job.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fine_tuning_job_id
          in: path
          type: string
          description: The ID of the fine-tuning job to cancel.
          required: true
    - name: fine_tuning-jobs-fine_tuning_job_id-checkpoints
      path: /fine_tuning/jobs/{fine_tuning_job_id}/checkpoints
      operations:
      - name: listfinetuningjobcheckpoints
        method: GET
        description: List checkpoints for a fine-tuning job.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fine_tuning_job_id
          in: path
          type: string
          description: The ID of the fine-tuning job to get checkpoints for.
          required: true
        - name: after
          in: query
          type: string
          description: Identifier for the last checkpoint ID from the previous pagination request.
        - name: limit
          in: query
          type: integer
          description: Number of checkpoints to retrieve.
    - name: fine_tuning-jobs-fine_tuning_job_id-events
      path: /fine_tuning/jobs/{fine_tuning_job_id}/events
      operations:
      - name: listfinetuningevents
        method: GET
        description: Get status updates for a fine-tuning job.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fine_tuning_job_id
          in: path
          type: string
          description: The ID of the fine-tuning job to get events for.
          required: true
        - name: after
          in: query
          type: string
          description: Identifier for the last event from the previous pagination request.
        - name: limit
          in: query
          type: integer
          description: Number of events to retrieve.
    authentication:
      type: bearer
      token: '{{env.PORTKEY_API_KEY}}'
  exposes:
  - type: rest
    namespace: portkey-fine-tuning-rest
    port: 8080
    description: REST adapter for Portkey API — Fine-tuning. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/fine-tuning/jobs
      name: fine-tuning-jobs
      description: REST surface for fine_tuning-jobs.
      operations:
      - method: GET
        name: listpaginatedfinetuningjobs
        description: List your organization's fine-tuning jobs
        call: portkey-fine-tuning.listpaginatedfinetuningjobs
        with:
          after: rest.after
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/fine-tuning/jobs/{fine-tuning-job-id}
      name: fine-tuning-jobs-fine-tuning-job-id
      description: REST surface for fine_tuning-jobs-fine_tuning_job_id.
      operations:
      - method: GET
        name: retrievefinetuningjob
        description: Get info about a fine-tuning job.
        call: portkey-fine-tuning.retrievefinetuningjob
        with:
          fine_tuning_job_id: rest.fine_tuning_job_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/fine-tuning/jobs/{fine-tuning-job-id}/cancel
      name: fine-tuning-jobs-fine-tuning-job-id-cancel
      description: REST surface for fine_tuning-jobs-fine_tuning_job_id-cancel.
      operations:
      - method: POST
        name: cancelfinetuningjob
        description: Immediately cancel a fine-tune job.
        call: portkey-fine-tuning.cancelfinetuningjob
        with:
          fine_tuning_job_id: rest.fine_tuning_job_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/fine-tuning/jobs/{fine-tuning-job-id}/checkpoints
      name: fine-tuning-jobs-fine-tuning-job-id-checkpoints
      description: REST surface for fine_tuning-jobs-fine_tuning_job_id-checkpoints.
      operations:
      - method: GET
        name: listfinetuningjobcheckpoints
        description: List checkpoints for a fine-tuning job.
        call: portkey-fine-tuning.listfinetuningjobcheckpoints
        with:
          fine_tuning_job_id: rest.fine_tuning_job_id
          after: rest.after
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/fine-tuning/jobs/{fine-tuning-job-id}/events
      name: fine-tuning-jobs-fine-tuning-job-id-events
      description: REST surface for fine_tuning-jobs-fine_tuning_job_id-events.
      operations:
      - method: GET
        name: listfinetuningevents
        description: Get status updates for a fine-tuning job.
        call: portkey-fine-tuning.listfinetuningevents
        with:
          fine_tuning_job_id: rest.fine_tuning_job_id
          after: rest.after
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: portkey-fine-tuning-mcp
    port: 9090
    transport: http
    description: MCP adapter for Portkey API — Fine-tuning. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-your-organization-s-fine-tuning
      description: List your organization's fine-tuning jobs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-fine-tuning.listpaginatedfinetuningjobs
      with:
        after: tools.after
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: get-info-about-fine-tuning
      description: Get info about a fine-tuning job.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-fine-tuning.retrievefinetuningjob
      with:
        fine_tuning_job_id: tools.fine_tuning_job_id
      outputParameters:
      - type: object
        mapping: $.
    - name: immediately-cancel-fine-tune-job
      description: Immediately cancel a fine-tune job.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: portkey-fine-tuning.cancelfinetuningjob
      with:
        fine_tuning_job_id: tools.fine_tuning_job_id
      outputParameters:
      - type: object
        mapping: $.
    - name: list-checkpoints-fine-tuning-job
      description: List checkpoints for a fine-tuning job.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-fine-tuning.listfinetuningjobcheckpoints
      with:
        fine_tuning_job_id: tools.fine_tuning_job_id
        after: tools.after
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: get-status-updates-fine-tuning
      description: Get status updates for a fine-tuning job.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-fine-tuning.listfinetuningevents
      with:
        fine_tuning_job_id: tools.fine_tuning_job_id
        after: tools.after
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.