Features
A reusable Flask and React mini app template with a backend /api/generate-image route connected to the Macaron internal image-to-image service, OSS upload helpers, and frontend-compatible generated image response shape.
- Macaron image generation route
- Adds POST /api/generate-image and returns session.generatedImageUrl for the frontend ImageGenerator component.
- OSS upload bridge
- Reuses readonly_utils.image_utils and oss_utils so source images are uploaded before calling the internal image-to-image API.
- Reusable Flask React starter
- Keeps the lightweight template structure, tests, and build workflow for future mini apps.
Build with Macaron
1. Open the template
2. Configure MACARON_API_KEY or INSTANCE_SECRET_KEY and OSS credentials
3. Test POST /api/generate-image with an uploaded image
”