diff --git a/backend/app/api/v1/modules.py b/backend/app/api/v1/modules.py index a0339bc..fc5663c 100644 --- a/backend/app/api/v1/modules.py +++ b/backend/app/api/v1/modules.py @@ -617,6 +617,19 @@ async def generate_alt_text( return job_response(job) +@router.get("/image/providers") +def get_image_providers(): + """Get all image providers with their capabilities""" + from app.services.image_generator import IMAGE_PROVIDERS, STABILITY_STYLE_PRESETS + + # Add Stability style presets to the config + providers = IMAGE_PROVIDERS.copy() + if "stable-diffusion" in providers: + providers["stable-diffusion"]["style_presets"] = STABILITY_STYLE_PRESETS + + return providers + + @router.post("/text/enhance-prompt") async def enhance_prompt( request: PromptEnhanceRequest,