POST
/
lora

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
hf_revision
string | null

Hugging Face repository revision, valid for Hugging Face models only.

hf_token
string | null

Hugging Face access token (https://huggingface.co/docs/hub/en/security-tokens), useful when the model repository is private.

model_name
string
required

Full name of the model. For Hugging Face model, use the Hugging Face repository id as the name.

model_source
enum<string>
required

Source of the model, currently only HF_HUB (Hugging Face hub) is supported.

Available options:
HF_HUB
name
string | null

Name of the LoRA, used as the unique identifier, if not provided, it will be the same as the "model_name"

Response

200 - application/json
active_deployment
object

Current active deployment of the LoRA.

name
string
required

Name of the LoRA, used as the unique identifier.

unit_price
number
required