v4

latestOpenAPI 3.1.02026-07-31155218294.8 KB
LoRA Adapters

Upload Lora Model

post/lora-model

Headers

xi-api-keystring nullable
x-api-keystring nullable

Request body

hf_model_namestring required
hf_tokenstring nullable
lora_model_namestring required
base_model_namestring nullable

Response

Successful Response

type'legacy' | 'llm' | 'lora' | 'tts'
deploy_idstring required

Deploy Id

model_namestring required

Model Id from huggingface

versionstring required

Model version

taskstring required

Task

statusstring required

Status

fail_reasonstring required

Failure reason

created_atstring required

Created at

updated_atstring required

Updated at

extra_argsstring[] nullable

Current extra engine-specific command-line args (custom-weight deploys only)

update_errorstring nullable

If the last config update was auto-reverted after an engine crash-loop, the error that caused it (status stays 'running')

Example response

{
  "deploy_id": "fkj843kjh8",
  "model_name": "google/vit-base-patch16-224",
  "version": "d8b79b422843bd59d628bf25b01aded94a9ec1a9b917e69fe460df9ff39ec42b",
  "task": "image-classification",
  "status": "deployed",
  "fail_reason": "Initialization failed",
  "created_at": "2021-08-27T17:19:21+00:00",
  "updated_at": "2021-08-27T17:19:21+00:00"
}