OpenAI · Arazzo Workflow

OpenAI Fine-Tuning Job

Version 1.0.0

Upload a training file, start a fine-tuning job, poll until terminal, and read the result.

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

Provider

openai

Workflows

fine-tuning-job
Upload training data, run a fine-tuning job, and poll to completion.
Uploads the training file, creates a fine-tuning job, polls the job status, and on success returns the resulting fine-tuned model identifier.
4 steps inputs: apiKey, model, trainingFile outputs: fineTunedModel, jobId
1
uploadTrainingFile
Upload the JSONL training file with the fine-tune purpose.
2
createJob
Create a fine-tuning job using the uploaded training file.
3
pollJob
Poll the fine-tuning job until it reaches a terminal status, branching to the result step when finished and looping while it is still running.
4
getResult
Retrieve the finished fine-tuning job and return the fine-tuned model.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: OpenAI Fine-Tuning Job
  summary: Upload a training file, start a fine-tuning job, poll until terminal, and read the result.
  description: >-
    Uploads a JSONL training file with the fine-tune purpose, enqueues a
    fine-tuning job against it, polls the job until it reaches a terminal status,
    and branches on the outcome to return the fine-tuned model name on success.
    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: filesApi
  url: ../openapi/openai-files-api-openapi.yml
  type: openapi
- name: fineTuningApi
  url: ../openapi/openai-fine-tuning-api-openapi.yml
  type: openapi
workflows:
- workflowId: fine-tuning-job
  summary: Upload training data, run a fine-tuning job, and poll to completion.
  description: >-
    Uploads the training file, creates a fine-tuning job, polls the job status,
    and on success returns the resulting fine-tuned model identifier.
  inputs:
    type: object
    required:
    - apiKey
    - trainingFile
    - model
    properties:
      apiKey:
        type: string
        description: OpenAI API key used as a Bearer token.
      trainingFile:
        type: string
        description: The JSONL training file contents to upload (binary/multipart field).
      model:
        type: string
        description: The base model to fine-tune (e.g. gpt-4o-mini).
  steps:
  - stepId: uploadTrainingFile
    description: Upload the JSONL training file with the fine-tune purpose.
    operationId: createFile
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    requestBody:
      contentType: multipart/form-data
      payload:
        file: $inputs.trainingFile
        purpose: fine-tune
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      fileId: $response.body#/id
  - stepId: createJob
    description: Create a fine-tuning job using the uploaded training file.
    operationId: createFineTuningJob
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    requestBody:
      contentType: application/json
      payload:
        model: $inputs.model
        training_file: $steps.uploadTrainingFile.outputs.fileId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      jobId: $response.body#/id
      status: $response.body#/status
  - stepId: pollJob
    description: >-
      Poll the fine-tuning job until it reaches a terminal status, branching to
      the result step when finished and looping while it is still running.
    operationId: retrieveFineTuningJob
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    - name: fine_tuning_job_id
      in: path
      value: $steps.createJob.outputs.jobId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
      fineTunedModel: $response.body#/fine_tuned_model
    onSuccess:
    - name: jobSucceeded
      type: goto
      stepId: getResult
      criteria:
      - context: $response.body
        condition: $.status == "succeeded"
        type: jsonpath
    - name: jobStillRunning
      type: goto
      stepId: pollJob
      criteria:
      - context: $response.body
        condition: $.status == "validating_files" || $.status == "queued" || $.status == "running"
        type: jsonpath
  - stepId: getResult
    description: Retrieve the finished fine-tuning job and return the fine-tuned model.
    operationId: retrieveFineTuningJob
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    - name: fine_tuning_job_id
      in: path
      value: $steps.createJob.outputs.jobId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      fineTunedModel: $response.body#/fine_tuned_model
      trainedTokens: $response.body#/trained_tokens
  outputs:
    jobId: $steps.createJob.outputs.jobId
    fineTunedModel: $steps.getResult.outputs.fineTunedModel

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-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.