Lora
Get List Lora
Get list lora models
GET
https://api.crazyhorse.ai/v1/lora
Get list lora models
Headers
Name
Type
Description
api-key*
String
[
{
"state": "DONE",
"url": "https://civitai.com/api/v1/models/118870",
"name": "Marie Rose (DoA) Swimsuit",
"modelId": "118870",
"id": "2685e0bd-211f-4304-86bf-0589e226fae3"
}
]
/ require the myapi module and set it up with your API key
const axios = require('axios').default;
const options = {
headers: {
'api-key': 'xxxxxxxx'
}
};
const url = 'https://api.crazyhorse.ai/v1/lora';
const getLoras = away axios.get(url, options)
Install Lora
Install new lora model
POST
https://api.crazyhorse.ai/v1/lora
Install new lora model
Headers
Name
Type
Description
api-key*
String
Request Body
Name
Type
Description
{
"data": {
"state": "WAITING",
"url": "https://civitai.com/api/v1/models/156754",
"name": "SD1.5 Pumpkin Head LoRA",
"modelId": "156754",
"id": "fa861c5a-4ce1-4e65-aa91-c87be4c053fd"
},
"path": "/v1/lora",
"method": "POST",
"message": "success",
"statusCode": 200
}
const axios = require('axios').default;
const url = 'https://api.crazyhorse.ai/v1/lora';
const payload = {
modelId: "15361"
};
const options = {
headers: {
'api-key': 'xxxxxxxx'
}
};
const addModel = away axios.post(url, payload, options)
Last updated