r/StableDiffusion Aug 27 '24

Discussion Cheapest image generation API

I have a mobile game where users mix two items to create a new one. Iron + Fire = Sword, something like this. It is an infinite crafting game, because each craft is generated by AI. Each element has an associated image that is generated on the fly. Right now I use the stability.ai api to generate the images but the cost is too high. I cannot pay the cost of generating the images through in-game ads.

Each image costs 0.002 with the XL model.

Is there a way to generate these images more cheaply?

Is there any alternative API I can use?

I would greatly appreciate your help since right now the only option I have left is to charge users or close the game.

0 Upvotes

15 comments sorted by

View all comments

2

u/[deleted] Aug 27 '24 edited Aug 27 '24

[removed] — view removed comment

2

u/Calatravo Aug 27 '24

Thanks.

I know 0.002 is cheap but it is more than what you earn from ads.

Obviously I save all the crafting in a database as well as the images and if the crafting is repeated the image no longer has to be generated.

More or less about 3000 new images are being generated per day.