> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gp.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Fine Tuning Job

> ### Description
Model fine tuning jobs.

### Details

TODO



## OpenAPI

````yaml /openapi/v4.yaml post /v4/fine-tuning-jobs
openapi: 3.1.0
info:
  title: EGP API V4
  description: >-
    This is the parent API for all EGP APIs. If you are looking for the EGP API,
    please go to https://api.egp.scale.com/docs.
  contact:
    name: Scale Generative AI Platform
    url: https://scale.com/genai-platform
  version: 0.1.0
servers:
  - url: https://api.egp.scale.com
security: []
tags:
  - name: Models
    description: Model API.
paths:
  /v4/fine-tuning-jobs:
    post:
      tags:
        - Fine Tuning Jobs V3 (Beta)
      summary: Create Fine Tuning Job
      description: |-
        ### Description
        Model fine tuning jobs.

        ### Details

        TODO
      operationId: POST-V4-/fine-tuning-jobs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FineTuningJobRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FineTuningJobResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    FineTuningJobRequest:
      properties:
        base_model_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Base Model Id
        vendor_configuration:
          anyOf:
            - $ref: '#/components/schemas/FineTuningJobVendorConfiguration'
            - type: 'null'
        fine_tuned_model_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Fine Tuned Model Id
        training_dataset_id:
          type: string
          title: Training Dataset Id
        validation_dataset_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Validation Dataset Id
        account_id:
          type: string
          title: Account Id
          description: The ID of the account that owns the given entity.
          can_patch: false
      type: object
      required:
        - training_dataset_id
        - account_id
      title: FineTuningJobRequest
    FineTuningJobResponse:
      properties:
        base_model_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Base Model Id
        vendor_configuration:
          anyOf:
            - $ref: '#/components/schemas/FineTuningJobVendorConfiguration'
            - type: 'null'
        fine_tuned_model_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Fine Tuned Model Id
        training_dataset_id:
          type: string
          title: Training Dataset Id
        validation_dataset_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Validation Dataset Id
        status:
          $ref: '#/components/schemas/FineTuningJobStatus'
        id:
          type: string
          title: Id
          description: The unique identifier of the entity.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: The date and time when the entity was created in ISO format.
        account_id:
          type: string
          title: Account Id
          description: The ID of the account that owns the given entity.
          can_patch: false
        created_by_user_id:
          type: string
          title: Created By User Id
          description: The user who originally created the entity.
        created_by_identity_type:
          $ref: '#/components/schemas/IdentifierTypeEnum'
          description: The type of identity that created the entity.
      type: object
      required:
        - training_dataset_id
        - status
        - id
        - created_at
        - account_id
        - created_by_user_id
        - created_by_identity_type
      title: FineTuningJobResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FineTuningJobVendorConfiguration:
      oneOf:
        - $ref: '#/components/schemas/LaunchFineTuningJobConfiguration'
        - $ref: '#/components/schemas/LLMEngineFineTuningJobConfiguration'
        - $ref: '#/components/schemas/OpenAIFineTuningJobConfiguration'
      title: FineTuningJobVendorConfiguration
      discriminator:
        propertyName: vendor
        mapping:
          LAUNCH: '#/components/schemas/LaunchFineTuningJobConfiguration'
          LLMENGINE: '#/components/schemas/LLMEngineFineTuningJobConfiguration'
          OPENAI: '#/components/schemas/OpenAIFineTuningJobConfiguration'
    FineTuningJobStatus:
      type: string
      enum:
        - PENDING
        - COMPLETED
        - FAILED
        - RUNNING
        - CANCELED
      title: FineTuningJobStatus
    IdentifierTypeEnum:
      type: string
      enum:
        - user
        - service_account
      title: IdentifierTypeEnum
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
          additionalProperties: true
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    LaunchFineTuningJobConfiguration:
      properties:
        vendor:
          type: string
          const: LAUNCH
          title: Vendor
          default: LAUNCH
        hyperparameters:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Hyperparameters
        wandb_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Wandb Config
        suffix:
          anyOf:
            - type: string
            - type: 'null'
          title: Suffix
        output:
          anyOf:
            - type: string
            - type: 'null'
          title: Output
      type: object
      title: LaunchFineTuningJobConfiguration
    LLMEngineFineTuningJobConfiguration:
      properties:
        vendor:
          type: string
          const: LLMENGINE
          title: Vendor
          default: LLMENGINE
        hyperparameters:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Hyperparameters
        wandb_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Wandb Config
        suffix:
          anyOf:
            - type: string
            - type: 'null'
          title: Suffix
        output:
          anyOf:
            - type: string
            - type: 'null'
          title: Output
      type: object
      title: LLMEngineFineTuningJobConfiguration
    OpenAIFineTuningJobConfiguration:
      properties:
        vendor:
          type: string
          const: OPENAI
          title: Vendor
          default: OPENAI
        hyperparameters:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Hyperparameters
        suffix:
          anyOf:
            - type: string
            - type: 'null'
          title: Suffix
      type: object
      title: OpenAIFineTuningJobConfiguration

````