Portkey · Capability

Portkey API — Finetune

Portkey API — Finetune. 1 operations. Lead operation: Create a Finetune Job. Self-contained Naftiko capability covering one Portkey business surface.

Run with Naftiko PortkeyFinetune

What You Can Do

POST
Createfinetuningjob — Create a Finetune Job
/v1/fine-tuning/jobs

MCP Tools

create-finetune-job

Create a Finetune Job

Capability Spec

portkey-finetune.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Portkey API — Finetune
  description: 'Portkey API — Finetune. 1 operations. Lead operation: Create a Finetune Job. Self-contained Naftiko capability
    covering one Portkey business surface.'
  tags:
  - Portkey
  - Finetune
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTKEY_API_KEY: PORTKEY_API_KEY
capability:
  consumes:
  - type: http
    namespace: portkey-finetune
    baseUri: https://api.portkey.ai/v1
    description: Portkey API — Finetune business capability. Self-contained, no shared references.
    resources:
    - name: fine_tuning-jobs
      path: /fine_tuning/jobs
      operations:
      - name: createfinetuningjob
        method: POST
        description: Create a Finetune Job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.PORTKEY_API_KEY}}'
  exposes:
  - type: rest
    namespace: portkey-finetune-rest
    port: 8080
    description: REST adapter for Portkey API — Finetune. 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: POST
        name: createfinetuningjob
        description: Create a Finetune Job
        call: portkey-finetune.createfinetuningjob
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: portkey-finetune-mcp
    port: 9090
    transport: http
    description: MCP adapter for Portkey API — Finetune. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-finetune-job
      description: Create a Finetune Job
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: portkey-finetune.createfinetuningjob
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.