Skip to main content

Body_create_weight_api_v1_weights_post

filestring<binary>required

Weight file (LoRA, safetensors, etc.)

weight_typeWeightType (string)required

Weight/model artifact type

Possible values: [lora, conversation, voice_id]

ai_model_idAi Model Id (integer)required

AI model ID from backend

dataset_id object

Dataset ID if trained on dataset

anyOf
integer
external_id object

External provider ID (e.g., ElevenLabs voice ID)

anyOf
string
metadata object

JSON metadata string

anyOf
string
Body_create_weight_api_v1_weights_post
{
"file": "string",
"weight_type": "lora",
"ai_model_id": 0,
"dataset_id": 0,
"external_id": "string",
"metadata": "string"
}