AI-powered food imagery and manipulation backend.
This backend runs an Express.js server providing programmatic access to Google's Gemini Flash AI alongside Supabase storage for long-running image generation tasks.
By default, this server hosts the API for ChromaDish on port 3005.
Below is a comprehensive list of all exposed endpoints, their required payloads, and behaviors.
Returns the operational status of the API.
Submits a request to generate a single food mockup from a provided image.
image: The source food photo file.targetDesign: Instruction string for how to rebuild/mockup the food.additionalRequirements (Optional): Extra visual constraints.Polls the status of a specific background generation job.
Concurrently generates multiple styling variants off a single source image.
image: The source food photo file.targetDesign: Base instruction for layout/content.variants: JSON array of strings defining variant conditions (e.g., ["dark mode", "lunch special"]).Fetches standard styling presets available for menu items.
Serves the independent media gallery HTML interface for managing generated pictures.