OneInfer · Schema

DistillCreateRequest

Teacher answers -> a new dataset version -> a fine-tuning run of the student (services/training/distill.py). The prompts come from a dataset version (source) or are generated from a task description (task, count).

Artificial IntelligenceInferenceCloudPlatformOpenAI-Compatible

Properties

Name Type Description
teacher string
teacher_provider object
student string
source object
task object
seed_examples object
topics object
format object
inline_answers boolean
count object
dataset_name object
temperature object
max_tokens object
system_prompt object
concurrency object
max_spend_usd number
accept_terms boolean
validation_fraction object
max_hours object
run object
View JSON Schema on GitHub

JSON Schema

oneinfer-ai-distill-create-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oneinfer-ai/json-schema/oneinfer-ai-distill-create-request-schema.json",
  "title": "DistillCreateRequest",
  "description": "Teacher answers -> a new dataset version -> a fine-tuning run of the student (services/training/distill.py).\nThe prompts come from a dataset version (source) or are generated from a task description (task, count).",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oneinfer-ai-openapi.json#/components/schemas/DistillCreateRequest",
  "properties": {
    "teacher": {
      "type": "string",
      "maxLength": 200,
      "title": "Teacher"
    },
    "teacher_provider": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Teacher Provider"
    },
    "student": {
      "type": "string",
      "maxLength": 200,
      "title": "Student"
    },
    "source": {
      "anyOf": [
        {
          "$ref": "#/$defs/SyntheticSource"
        },
        {
          "type": "null"
        }
      ]
    },
    "task": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 8000
        },
        {
          "type": "null"
        }
      ],
      "title": "Task"
    },
    "seed_examples": {
      "anyOf": [
        {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "type": "object"
              }
            ]
          },
          "type": "array",
          "maxItems": 20
        },
        {
          "type": "null"
        }
      ],
      "title": "Seed Examples"
    },
    "topics": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Topics"
    },
    "format": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "instruction",
            "chat"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Format"
    },
    "inline_answers": {
      "type": "boolean",
      "title": "Inline Answers",
      "default": false
    },
    "count": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 50000.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Count"
    },
    "dataset_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Dataset Name"
    },
    "temperature": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 2.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Temperature"
    },
    "max_tokens": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 32768.0,
          "minimum": 16.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Tokens"
    },
    "system_prompt": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 20000
        },
        {
          "type": "null"
        }
      ],
      "title": "System Prompt"
    },
    "concurrency": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 32.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Concurrency"
    },
    "max_spend_usd": {
      "type": "number",
      "maximum": 10000.0,
      "exclusiveMinimum": 0.0,
      "title": "Max Spend Usd"
    },
    "accept_terms": {
      "type": "boolean",
      "title": "Accept Terms",
      "default": false
    },
    "validation_fraction": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 0.5,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Validation Fraction"
    },
    "max_hours": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 72.0,
          "minimum": 0.5
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Hours"
    },
    "run": {
      "$ref": "#/$defs/DistillRunRequest"
    }
  },
  "type": "object",
  "required": [
    "teacher",
    "student",
    "max_spend_usd",
    "run"
  ],
  "$defs": {
    "DistillRunRequest": {
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 80,
          "title": "Name"
        },
        "method": {
          "type": "string",
          "enum": [
            "lora",
            "qlora",
            "full"
          ],
          "title": "Method",
          "default": "lora"
        },
        "objective": {
          "type": "string",
          "const": "sft",
          "title": "Objective",
          "default": "sft"
        },
        "offer_id": {
          "type": "string",
          "maxLength": 200,
          "title": "Offer Id"
        },
        "hyperparameters": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hyperparameters"
        },
        "max_hours": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 168.0,
              "minimum": 0.25
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Hours"
        },
        "hf_token": {
          "anyOf": [
            {
              "type": "string",
              "format": "password",
              "writeOnly": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Hf Token"
        }
      },
      "type": "object",
      "required": [
        "name",
        "offer_id"
      ],
      "title": "DistillRunRequest"
    },
    "SyntheticSource": {
      "properties": {
        "dataset_id": {
          "type": "string",
          "maxLength": 64,
          "title": "Dataset Id"
        },
        "version": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Version"
        }
      },
      "type": "object",
      "required": [
        "dataset_id"
      ],
      "title": "SyntheticSource"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/oneinfer-ai-distill-create-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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