POST
/
lora
curl --request POST \
  --url https://app.empower.dev/api/v1/lora \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "hf_revision": "c1b0db933684edbfe29a06fa47eb19cc48025e93",
  "hf_token": "hf_**********************************",
  "model_name": "IlyaGusev/saiga_mistral_7b_lora",
  "model_source": "HF_HUB",
  "name": "custom_mistral_7b_lora"
}'
{
  "active_deployment": {
    "base_model_name": "meta-llama/Llama-2-7b-chat-hf",
    "created_at": 1706652711,
    "creator": {
      "actor_type": "USER",
      "api_key": {
        "name": "<string>"
      },
      "user": {
        "email": "<string>",
        "first_name": "<string>",
        "last_name": "<string>",
        "profile_image_url": "<string>"
      }
    },
    "hf_revision": "c1b0db933684edbfe29a06fa47eb19cc48025e93",
    "model_name": "IlyaGusev/saiga_mistral_7b_lora",
    "model_source": "HF_HUB"
  },
  "name": "custom_mistral_7b_lora",
  "unit_price": 123
}

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