Skip to main content
POST
Create Lora
When called with an API key, the key needs the lora scope (about scopes).

Authorizations

Authorization
string
header
required

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

Headers

xi-api-key
string | null
x-api-key
string | null

Body

application/json
base_model
string
required
lora_name
string
required
source
SourceModel · object
required
private
boolean
required
description
string | null
default:""

Response

Successful Response

deploy_id
string
required

Deploy Id

Example:

"fkj843kjh8"

model_name
string
required

Model Id from huggingface

Example:

"google/vit-base-patch16-224"

version
string
required

Model version

Example:

"d8b79b422843bd59d628bf25b01aded94a9ec1a9b917e69fe460df9ff39ec42b"

task
string
required

Task

Example:

"image-classification"

status
string
required

Status

Example:

"deployed"

fail_reason
string
required

Failure reason

Example:

"Initialization failed"

created_at
string
required

Created at

Example:

"2021-08-27T17:19:21+00:00"

updated_at
string
required

Updated at

Example:

"2021-08-27T17:19:21+00:00"

type
enum<string>
default:legacy
Available options:
legacy,
llm,
lora,
tts
instances
DeployInstances · object | null

Details about number of instances running right now

config
DeployLLMConfig · object | null

Immutable deploy configuration

settings
ScaleSettings · object | null

Scale Settings

standard_args
StandardArgs · object

Current engine tuning knobs

extra_args
string[] | null

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

update_error
string | null

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

rollout
DeployRollout · object | null

Per-instance rollout progress of the current config