# TODO: Implement this service, taking the code currently placed in app/routes/api/generation.py