Image Generation AI and VPSs: How Far Can CPU Alone Go?
Why image-generating AI assumes a GPU, and what you can realistically do with a CPU-only VPS. We also cover the idea of leaving generation itself to an external service.

Ren

Procura
Why a GPU is practically required
Image generation repeats a calculation dozens of times that gradually cleans up a noisy image. GPUs are good at running the huge number of calculations inside each repetition at the same time, while a CPU can only run a limited number in parallel. The nature of the computation is different from text generation, so don't expect to close this gap with clever tricks.

Ren
Procura
Realistic roles for the VPS
- Accept requests to the generation API and manage a queue that processes them in order
- Store and serve the generated images
- Add a step that checks for inappropriate content
- Record each user's number of generations and put a cap on it

Procura
Copyright and terms of use
Image generation is more complicated than text generation when it comes to rights. How the generated images relate to the material used for training, and whether you can use them commercially, depend on the terms of the service you use. At the stage of choosing a service, check how rights to the generated output are handled. Changing it after you've started operating is a hassle.
- Check the terms of use to see whether commercial use is allowed
- Prompts that imitate real people or copyrighted works tend to cause trouble
- State in your terms of use who is responsible for images that users generate

Ren

Procura
How to estimate the number of calls
Image generation APIs generally charge per call. If you design it so users can generate as many times as they like, costs may pile up faster than you expected. You need to check the provider's pricing page each time for the specific amounts, but on the VPS side it's reassuring to decide a limit first, such as 'up to N times per person per day,' and have a mechanism that stops generation once it's exceeded.
- Record each user's number of generations and set a cap
- Consider a mechanism that notifies users when they approach the cap
- Pricing can change, so check the provider's latest information each time

Ren
This article is translated from the Japanese original. If the two differ, the Japanese version is the one we keep up to date.