OpenAI · Capability

OpenAI fine tuning — Fine Tuning

OpenAI fine tuning — Fine Tuning. 5 operations. Lead operation: OpenAI Creates a fine-tuning job which begins the process of creating a new model from a given dataset. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete. [Learn more about fine-tuning](/docs/guides/fine-tuning). Self-contained Naftiko capability covering one Opena

Run with Naftiko OpenaiFine Tuning

What You Can Do

POST
Createfinetuningjob — OpenAI Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
/v1/fine-tuning/jobs
GET
Listpaginatedfinetuningjobs — OpenAI List your organization's fine-tuning jobs
/v1/fine-tuning/jobs
GET
Retrievefinetuningjob — OpenAI Get info about a fine-tuning job.
/v1/fine-tuning/jobs/{fine-tuning-job-id}
POST
Cancelfinetuningjob — OpenAI Immediately cancel a fine-tune job.
/v1/fine-tuning/jobs/{fine-tuning-job-id}/cancel
GET
Listfinetuningevents — OpenAI Get status updates for a fine-tuning job.
/v1/fine-tuning/jobs/{fine-tuning-job-id}/events

MCP Tools

openai-creates-fine-tuning-job

OpenAI Creates a fine-tuning job which begins the process of creating a new model from a given dataset.

openai-list-your-organization-s-fine

OpenAI List your organization's fine-tuning jobs

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

OpenAI Get info about a fine-tuning job.

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

OpenAI Immediately cancel a fine-tune job.

openai-get-status-updates-fine

OpenAI Get status updates for a fine-tuning job.

read-only idempotent

Capability Spec

fine-tuning-fine-tuning.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenAI fine tuning — Fine Tuning
  description: 'OpenAI fine tuning — Fine Tuning. 5 operations. Lead operation: OpenAI Creates a fine-tuning job which begins
    the process of creating a new model from a given dataset.


    Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.


    [Learn more about fine-tuning](/docs/guides/fine-tuning). Self-contained Naftiko capability covering one Opena'
  tags:
  - Openai
  - Fine Tuning
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENAI_API_KEY: OPENAI_API_KEY
capability:
  consumes:
  - type: http
    namespace: fine-tuning-fine-tuning
    baseUri: https://api.openai.com/v1
    description: OpenAI fine tuning — Fine Tuning business capability. Self-contained, no shared references.
    resources:
    - name: fine_tuning-jobs
      path: /fine_tuning/jobs
      operations:
      - name: createfinetuningjob
        method: POST
        description: OpenAI Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listpaginatedfinetuningjobs
        method: GET
        description: OpenAI 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: OpenAI 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: OpenAI 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-events
      path: /fine_tuning/jobs/{fine_tuning_job_id}/events
      operations:
      - name: listfinetuningevents
        method: GET
        description: OpenAI 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.OPENAI_API_KEY}}'
  exposes:
  - type: rest
    namespace: fine-tuning-fine-tuning-rest
    port: 8080
    description: REST adapter for OpenAI fine tuning — 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: POST
        name: createfinetuningjob
        description: OpenAI Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
        call: fine-tuning-fine-tuning.createfinetuningjob
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listpaginatedfinetuningjobs
        description: OpenAI List your organization's fine-tuning jobs
        call: fine-tuning-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: OpenAI Get info about a fine-tuning job.
        call: fine-tuning-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: OpenAI Immediately cancel a fine-tune job.
        call: fine-tuning-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}/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: OpenAI Get status updates for a fine-tuning job.
        call: fine-tuning-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: fine-tuning-fine-tuning-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenAI fine tuning — Fine Tuning. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: openai-creates-fine-tuning-job
      description: OpenAI Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fine-tuning-fine-tuning.createfinetuningjob
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-list-your-organization-s-fine
      description: OpenAI List your organization's fine-tuning jobs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fine-tuning-fine-tuning.listpaginatedfinetuningjobs
      with:
        after: tools.after
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-get-info-about-fine
      description: OpenAI Get info about a fine-tuning job.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fine-tuning-fine-tuning.retrievefinetuningjob
      with:
        fine_tuning_job_id: tools.fine_tuning_job_id
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-immediately-cancel-fine-tune
      description: OpenAI Immediately cancel a fine-tune job.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fine-tuning-fine-tuning.cancelfinetuningjob
      with:
        fine_tuning_job_id: tools.fine_tuning_job_id
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-get-status-updates-fine
      description: OpenAI Get status updates for a fine-tuning job.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fine-tuning-fine-tuning.listfinetuningevents
      with:
        fine_tuning_job_id: tools.fine_tuning_job_id
        after: tools.after
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.