v1

latestOpenAPI 3.0.3raw.githubusercontent.com2025-07-15155231.4 KB

Creates a new model

Creates a new model. Pass a LoRA config to create a new LoRA adapter for the base model.

post/api/v1/create_model

Request body

type'create_model'
base_modelstring required

Example request

{
  "lora_config": {
    "rank": 16,
    "seed": 42
  },
  "base_model": "meta-llama/Llama-3.2-1B"
}

Response

API future for creating model

request_idstring uuid required
model_idstring uuid

Example response

{
  "request_id": "123e4567-e89b-12d3-a456-426614174000",
  "model_id": "123e4567-e89b-12d3-a456-426614174000"
}