[ {"state":"DONE","url":"https://civitai.com/api/v1/models/118870","name":"Marie Rose (DoA) Swimsuit","modelId":"118870","id":"2685e0bd-211f-4304-86bf-0589e226fae3" }]
{"message": "User not logged","errorCode": 4001,"statusCode": 401,"path": "/v1/lora","error": true,"method": "GET"}
/ 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
POSThttps://api.crazyhorse.ai/v1/lora
Install new lora model
Headers
Request Body
{"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}