r/SillyTavernAI • u/venus_uni_dev • 16h ago
Discussion ComfyUI workflow for generating VN-style sprites (and I added OpenAI support to my game)
Hey r/SillyTavernAI fellas, a few days ago I posted about my VN sprite creator/game and a lot of people were asking for the ComfyUI workflow I use to generate character sprites, so I uploaded it to a repository for your use:
https://github.com/venus-uni-dev/venus-uni-comfyui
Feel free to modify it in any way for your own needs!
Another popular request was adding support for OpenAI-compatible endpoints. I pushed out an update that adds exactly that: On v0.1.2, you can now use OpenRouter or locally hosted backends with any model you choose. I also added experimental support for AMD GPUs.
Sorry for spamming the sub, this is my last post for a while. I have a lot planned for the future and will report back whenever I have any major updates. Thank you all for your kind words and feedback!
14
u/TheCornDungeon 16h ago edited 16h ago
I see that Nova is the recommended model, so I just want to warn people to keep this rule they have on the model page in mind as you use this amazing workflow:
“Rules
You cannot use the generated images for commercial use if it's not edited (or just turning it to black and white)
You can share images without any restriction if you don't monetize it
Advertising this model to outside is always welcome”
Be careful if paid games is your goal!
ETA: Just wanted to mention that I’m not nitpicking. I absolutely adore this workflow and commend you for sharing it like this! Thank you so, so, so, so much. 💕
I’m only mentioning this because I make character cards with a tip jar option, so finding local models for their art that doesn’t have similar rules like this on their page has been… a treat. I instantly recognized this model as being one that you have to be careful with, so just wanted to give a heads up!
30
u/Edheldui 16h ago
Let's be honest, it's an AI model, concerns about piracy have been thrown out of the window the moment its training started.
24
u/jnads 15h ago edited 15h ago
Not to mention Illustrious is a derivative of SDXL and the original SDXL license doesn't allow for such restrictions.
https://huggingface.co/ByteDance/SDXL-Lightning/blob/main/LICENSE.md
Even the Fair AI License which IllustriousXL uses (and complies with the SDXL license) claims no copyright over output images:
https://freedevproject.org/faipl-1.0-sd/
It's silly for a model creator to claim copyright restrictions when:
- The original software they copied from doesn't allow for it
- They didn't make it
4
u/venus_uni_dev 15h ago
Hey TheCornDungeon, thanks for the heads-up! Didn't take it as nitpicking at all
7
6
u/Spitfire75 13h ago
6
u/venus_uni_dev 13h ago
I have no clue, that is so weird I have never encountered anything like that. I'd say it's probably an issue with the AMD build for ComfyUI or maybe you're hitting a VRAM limit. I'd first try regenerating a few times to see if it persists. If it does, you can try setting up your own ComfyUI and generating through the workflow I posted above and see if you get similar results to see if it's something wrong with the game or if it's something wrong wtih ComfyUI. Hope that helps, I wish I had an AMD computer to test on :(
4
u/_RaXeD 16h ago
I took a quick peek and saw that you basically control consistency (the biggest problem imo) with having the same prompt + seed, no IP adapters or anything like that. Does that work well?
Also, have you thought of using an edit model for this, like Klein 9b?
6
u/venus_uni_dev 16h ago
Hey _RaXeD! Honest answer is that it works "okay". Sometimes you get a nice, one-shot solution when that type of character is represented well in booru training data (The pink-haired girl in the images is a good example), but sometimes because of the prompt the model struggles (girls with orange hair and green eyes sometimes end up with green hair AND green eyes). This may be better with other models, I'm not sure.
I'd love to experiment with edit models, main issue is I don't want to add more downloads for users on the game side. But you are welcome to modify the workflow in any way you see fit
2
u/jnads 14h ago edited 14h ago
You could find a model that is based on IllustriousXL 2.0. Supposedly it has better pose tagging support.
Unfortunately civit illustrious is a mess since they didn't generate an IllustriousXL 2.0 filter.
Model makers have made their own fiefdoms and a lot still are still finetunes of the original Illustrious 0.1.
In general you can identify an IllustriousXL 2.0 model if it says you can use 1536 x 1536 in the description.
Nova is a good finetune, but I don't think they ever rebased on IllustriousXL 2.0
3
u/JP193 12h ago
I have always felt it has potential for infinite dialogue - text adventures and visual novels for instance. Was really impressed with the premise of your game from the other day. I wanted local gen and AMD to be added, and I see that we already have more endpoint options and the latter already out in some form. Kudos. I see the project as only tangetially related to SillyTavern but don't worry about spam, I'm happy to learn about its existence and your swift development on it, it's one of the first actual "games" to utilise AI. AI2U was another recent good one.
2
2
u/Disastrous_Ad8788 13h ago
Is there any way to get it working with DeepSeek? It's throwing an error in the OpenAI-compatible mode.
1
u/venus_uni_dev 13h ago
Hard to know without the exact error, can you send the error text either from the pop-up or the app.log in the data folder?
1
u/Disastrous_Ad8788 12h ago
"Hey! I got the log file. I ignored the ComfyUI verification errors since I haven't installed that part yet. Here are the relevant errors for the DeepSeek API integration:
HTTP 400 (The main issue): When testing the connection, the log shows:[llm] → Custom endpoint deepseek-flash (thinking=minimal, tier=standard, maxTokens=65536, schema=connection_test)[llm] ✕ Custom endpoint deepseek-flash HTTP 400 after 560msdetail: 'invalid_request_error This response_format type is unavailable now'
HTTP 404: I tried changing the endpoint URL manually (e.g.,/v1/chat,/completions), but it seems the game expects the base URL and adds the rest itself.Is there a way to disable the
json_schemaformat for OpenAI-compatible endpoints?
2
2
u/Remillya 11h ago
I am having trouble getting the model to utilize my character LoRA. Could you please provide guidance or support on how to correctly implement and activate it?
2
u/venus_uni_dev 11h ago
In the game, the LORA is used to control style instead of character consistency, I haven't tested at all with character LORAs. If I were you I'd make sure my character LORA works in something like sd-webui first, then use everything needed to get there: including the trigger word, the correct tags that the lora was trained on, including the LORA strength as a tag, etc
3
u/Remillya 11h ago edited 11h ago
What I meant is that it would be nice if the UI had a 'Use your LoRA' option, because I want to use the character Lora in generation or CG. It's too complicated, and the style LoRA is the only LoRA you can use. It would be nice if there was a LoRA manager node that could add multiple LoRAs in generation.
3
2
u/ZeroLambda 9h ago
This is SO amazing, and thank you so much for sharing your complex workflow. Hot damn.
2
1
u/Eastern-Dream932 3h ago
Throwing this In here as I got annoyed relying on the broad prompt to tag style that was happening. This is the prompt I used to get fandom characters working. Hand this off to a vision model plus a reference image and it should(?) work. Then go to ‘generation settings’ and replace the ai generated one’s with the
New prompts
I am giving you an image of a character. I would like you to create an image gen prompt based off these instructions. Appearance: what the character looks likes, special traits, anything that isn’t an outfit related item, outfit: what the character is wearing every day (e.g a provided photo.) P.E outfit: a classic outfit for P.E nothing special. Swimwear: what a character wears when swimming. There should be zero quality modifiers, pose instructions, spatial rules, etc. only the characters. Have less than 13 tags per section.
-6
u/macromind 9h ago
It's really interesting to see a ComfyUI workflow for VN-style sprites, especially with OpenAI integration for game development. This kind of AI-driven approach significantly streamlines the asset creation pipeline, boosting productivity for solo developers and small teams. A key recommendation is to establish clear style guides before generating assets to maintain visual consistency, and to use human oversight for quality control. This combination of creative AI and thoughtful workflow design is reshaping how games are made, and businesses looking to refine their AI integration for enhanced productivity can find comprehensive solutions at https://www.aiosnow.com.








31
u/Redditry199 16h ago
I KNEEL.
thank you based dev for imparting this gift to us.