https://github.com/nowalone/waifulabs.api
An unofficial .Net library for interacting with https://waifulabs.com.
https://github.com/nowalone/waifulabs.api
Last synced: about 1 year ago
JSON representation
An unofficial .Net library for interacting with https://waifulabs.com.
- Host: GitHub
- URL: https://github.com/nowalone/waifulabs.api
- Owner: NowaLone
- License: mit
- Created: 2021-12-22T22:59:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-23T01:12:38.000Z (over 4 years ago)
- Last Synced: 2025-02-03T07:01:50.594Z (over 1 year ago)
- Language: C#
- Homepage: https://waifulabs.com
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WaifuLabs.Api
An unofficial library for interacting with https://waifulabs.com.
Support author of https://waifulabs.com [@sizigistudios](https://twitter.com/SizigiStudios)
[](https://www.patreon.com/bePatron?u=23037728)
[](https://ko-fi.com/B0B5106CI)
# Example
```CSharp
const string generateUriString = "https://api.waifulabs.com/generate";
const string generateBigUriString = "https://api.waifulabs.com/generate_big";
const string generatePreivewUriString = "https://api.waifulabs.com/generate_preview";
// Init client.
IClient client = new Api.Client.Client(new Uri(generateUriString), new Uri(generateBigUriString), new Uri(generatePreivewUriString));
// Choose your initial waifu.
NewGirlsResponse newGirlsResponse = await client.Generate(null, 0);
// Tune the color palette.
newGirlsResponse = await client.Generate(newGirlsResponse.NewGirls.First().Seeds, 1);
// Fine tune the details.
newGirlsResponse = await client.Generate(newGirlsResponse.NewGirls.First().Seeds, 2);
// Finish with your favorite pose!.
newGirlsResponse = await client.Generate(newGirlsResponse.NewGirls.First().Seeds, 3);
// Meet your waifu...
GirlResponse girlResponse = await client.GenerateBig(newGirlsResponse.NewGirls.First().Seeds, 4);
// On a pillow
GirlResponse girlResponsePillow = await client.GeneratePreview(newGirlsResponse.NewGirls.First().Seeds, Product.Pillow);
// And a poster.
GirlResponse girlResponsePoster = await client.GeneratePreview(newGirlsResponse.NewGirls.First().Seeds, Product.Poster);
// Or do it all in one step.
GirlResponse girlResponse = await client.GenerateRandom();
```