Библиотека / Изображения, видео и аудио
Изображения, видео и аудио
Генерация маркетинговых изображений через веб-студию на вебхуке с Google Gemini
Раздает браузерную студию изображений через вебхук n8n: пользователи загружают до двух референсных изображений, а Google Gemini возвращает сгенерированное изображение на каждый запрос.
Что делает
## Gemini Image Studio Serves its own HTML interface straight from a webhook: drop in up to two reference images, pick a mode, and Google Gemini returns a finished image. No bucket, no CDN, no frontend to deploy. ### How it works 1. A GET on the webhook returns a single-page studio interface, generated inside n8n from the values in Settings (UI). 2. The page downscales each upload in the browser, then POSTs the mode, the options and the images back to the same URL. 3. Validate & build prompt checks the request, decodes the images into binary and assembles the prompt for the chosen mode. Bad input gets a 400 with a readable reason. 4. One of three Gemini nodes runs depending on how many images arrived: text to image, a single-image edit, or a space + logo composite. 5. The result comes back as a data URL with its prompt and metadata, so the page can show it, download it, or feed it in again as the next reference. ### Setup steps - [ ] Attach a Google Gemini (PaLM) API credential to the three Gemini: nodes. - [ ] Set an image-capable model in Settings (generator) (gemini_model). - [ ] Adjust the title, subtitle and upload limits in Settings (UI). - [ ] Activate the workflow, then open the production webhook URL in a browser. ### Customization Six preset modes live in Validate & build prompt: reword their prompts, or add your own and mirror the key in Build studio page. Output ratios and upload limits sit in those same two nodes.
Шаги
- Webhook /gemini-image-studio
- Settings (UI)
- Build studio page
- Respond with studio page
- Settings (generator)
- Validate & build prompt
- Request valid?
- Respond 400 (bad request)
- How many images?
- Gemini: text to image
- Gemini: edit 1 image
- Gemini: edit 2 images
- Merge generated image
- Pack image response
Всего шагов: 18.
Похожие автоматизации
Генерация и обогащение лидовСоздание и рассылка ИИ-лид-магнитов с GeminiШагов: 5Изображения, видео и аудиоCreate narrated Google Slides videos with Gemini TTS, Shotstack, Slack, and DriveШагов: 55Изображения, видео и аудиоReward kids’ clean plates with LINE, Google Gemini and Google SheetsШагов: 11Изображения, видео и аудиоСоздание UGC-рекламы товаров из строк Google Sheets с Gemini, Veo и PostWireШагов: 18