İçeriğe geç
YENİAlaaddin ile tanış: sesi olan yapay zekâ cinin. trig8n 1 Ocak 2027'de yayında. Yeniliklere bak

Kütüphane / Görüntü, Video ve Ses

Görüntü, Video ve Ses

Google Gemini ile webhook stüdyosu üzerinden pazarlama görselleri üret

Bir n8n webhook'undan tarayıcı tabanlı bir görsel stüdyosu sunar; kullanıcılar en fazla iki referans görsel yükler ve her istekte Google Gemini bir görsel üretir.

Ne yapar

## 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.

Adımlar

  1. Webhook /gemini-image-studio
  2. Settings (UI)
  3. Build studio page
  4. Respond with studio page
  5. Settings (generator)
  6. Validate & build prompt
  7. Request valid?
  8. Respond 400 (bad request)
  9. How many images?
  10. Gemini: text to image
  11. Gemini: edit 1 image
  12. Gemini: edit 2 images
  13. Merge generated image
  14. Pack image response

Toplam 18 adım.

Benzer otomasyonlar