Graphrt

Google Imagen

Pembuatan gambar Google lewat Gemini Interactions API (model Nano Banana, Imagen sendiri sudah dihentikan), generate, edit multi turn dan multi gambar, disimpan ke folder lokal (dibayar per gambar)

Beta v0.1.0 Node.js 8 aksi
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk pembuatan gambar Google lewat Gemini API.

Yang bisa dilakukan

  • generate_image: prompt to image, with aspect ratio (1:1 ... 21:9, plus 1:4, 4:1, 1:8, 8:1 on Nano Banana 2.1 and 3.1 Flash) and size (512, 1K, 2K, 4K). previous_interaction_id continues an earlier interaction, so you can edit its image conversationally without uploading it again.
  • edit_image: edit or combine up to 14 input images (https URLs or local files) with a prompt.
  • create_interaction: low-level call with your own content blocks (text, base64 images, Files API URIs).
  • get_interaction, list_models, get_model: reads (free). delete_interaction: node only.
  • api_request: any other Gemini API endpoint (GET only when called by an agent)

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • List models google-imagen.list_models
  • Get model google-imagen.get_model
  • Generate image google-imagen.generate_image
  • Create interaction google-imagen.create_interaction
  • Get interaction google-imagen.get_interaction
  • Delete interaction google-imagen.delete_interaction
  • Gemini API request google-imagen.api_request
  • Edit image google-imagen.edit_image

Pengaturan

Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.

  • GEMINI_API_KEY Wajib
    API key from <https://aistudio.google.com/apikey> (sent as x-goog-api-key)
  • GOOGLE_IMAGEN_OUTPUT_DIR For files
    Absolute directory where generated images are saved, each base64 image in the result is replaced by "[saved to <path>]". Unset: nothing is saved and the result keeps the base64 (large)
  • GOOGLE_IMAGEN_UPLOAD_DIR For local inputs
    Absolute directory that edit_image may read local images from. Unset: only https URLs are accepted

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari Google Imagen.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan CLI

terminal
$ graphrt plugin install google-imagen
workflow.yaml
- id: poster
  type: google-imagen.generate_image
  prompt: "A vintage travel poster of Bandung with bold lettering"
  aspect_ratio: "3:4"
  image_size: 2K
- id: night
  type: google-imagen.generate_image
  prompt: "Same poster, but at night with city lights"
  previous_interaction_id: "{{#poster.data.result.id#}}"
- id: combined
  type: google-imagen.edit_image
  prompt: "Put the product from the second image on the table in the first"
  images: ["https://example.com/table.jpg", "https://example.com/product.png"]
Plugin di docs