OpenAI · Arazzo Workflow

OpenAI Cancel Fine-Tuning Job

Version 1.0.0

Inspect a running fine-tuning job and cancel it only if it is still in progress.

1 workflow 1 source API 1 provider
View Spec View on GitHub Artificial IntelligenceLarge Language ModelsT1ArazzoWorkflows

Provider

openai

Workflows

cancel-fine-tuning-job
Cancel an in-progress fine-tuning job after checking its status.
Reads the current state of a fine-tuning job and issues a cancel request only when the job is still running, returning the post-cancel status.
2 steps inputs: apiKey, jobId outputs: finalStatus, initialStatus
1
getJob
Retrieve the fine-tuning job and branch on whether it is still running.
2
cancelJob
Cancel the still-running fine-tuning job.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: OpenAI Cancel Fine-Tuning Job
  summary: Inspect a running fine-tuning job and cancel it only if it is still in progress.
  description: >-
    Retrieves a fine-tuning job, branches on its status, and cancels the job only
    when it is still validating, queued, or running; if it has already reached a
    terminal status the flow ends without issuing a cancel. Every step spells out
    its request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-610.60
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-610.60
      capability_name: Artificial Intelligence Management
      spec: openai-fine-tuning-api-openapi.yml
      confidence: 0.85
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: fineTuningApi
  url: ../openapi/openai-fine-tuning-api-openapi.yml
  type: openapi
workflows:
- workflowId: cancel-fine-tuning-job
  summary: Cancel an in-progress fine-tuning job after checking its status.
  description: >-
    Reads the current state of a fine-tuning job and issues a cancel request only
    when the job is still running, returning the post-cancel status.
  inputs:
    type: object
    required:
    - apiKey
    - jobId
    properties:
      apiKey:
        type: string
        description: OpenAI API key used as a Bearer token.
      jobId:
        type: string
        description: The id of the fine-tuning job to inspect and possibly cancel.
  steps:
  - stepId: getJob
    description: Retrieve the fine-tuning job and branch on whether it is still running.
    operationId: retrieveFineTuningJob
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    - name: fine_tuning_job_id
      in: path
      value: $inputs.jobId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
    onSuccess:
    - name: jobRunning
      type: goto
      stepId: cancelJob
      criteria:
      - context: $response.body
        condition: $.status == "validating_files" || $.status == "queued" || $.status == "running"
        type: jsonpath
    - name: jobTerminal
      type: end
      criteria:
      - context: $response.body
        condition: $.status == "succeeded" || $.status == "failed" || $.status == "cancelled"
        type: jsonpath
  - stepId: cancelJob
    description: Cancel the still-running fine-tuning job.
    operationId: cancelFineTuningJob
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    - name: fine_tuning_job_id
      in: path
      value: $inputs.jobId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
  outputs:
    initialStatus: $steps.getJob.outputs.status
    finalStatus: $steps.cancelJob.outputs.status

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/openai-cancel-fine-tuning-job-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.