Graphrt

Stability AI

Generate (Ultra, Core, SD 3.5), upscale (termasuk creative async), edit dan kontrol gambar, disimpan ke folder lokal (dibayar dengan kredit)

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

Tentang

Plugin Graphrt untuk Stability AI REST API (Stable Image v2beta). Buat gambar dengan Stable Image Ultra, Core dan Stable Diffusion 3.5, upscale, edit (hapus objek, inpaint, outpaint, cari dan ganti atau ubah warna, hapus background) dan kontrol (sketch, structure, style). Hasilnya disimpan ke folder lokal. Dibuat dengan lapisan REST deklaratif.

Yang bisa dilakukan

  • Generate: generate_ultra, generate_core, generate_sd3 (text-to-image, and image-to-image for Ultra and SD 3.5)
  • Upscale: upscale_fast (4x), upscale_conservative (to 4 MP), upscale_creative (async job, waits and saves the result), get_result (fetch any async result by id)
  • Edit: erase_object, inpaint, outpaint, search_and_replace, search_and_recolor, remove_background
  • Control: control_sketch, control_structure, control_style
  • Account: get_account, get_balance (free)
  • api_request: any other endpoint, e.g. /v1/engines/list (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.

  • Get account stability-ai.get_account
  • Get credit balance stability-ai.get_balance
  • Generate image (Stable Image Ultra) stability-ai.generate_ultra
  • Generate image (Stable Image Core) stability-ai.generate_core
  • Generate image (Stable Diffusion 3.5) stability-ai.generate_sd3
  • Upscale image (fast) stability-ai.upscale_fast
  • Upscale image (conservative) stability-ai.upscale_conservative
  • Upscale image (creative, async) stability-ai.upscale_creative
  • Get async result stability-ai.get_result
  • Erase object stability-ai.erase_object
Tampilkan semua 19 aksi
  • Inpaint stability-ai.inpaint
  • Outpaint stability-ai.outpaint
  • Search and replace stability-ai.search_and_replace
  • Search and recolor stability-ai.search_and_recolor
  • Remove background stability-ai.remove_background
  • Sketch to image stability-ai.control_sketch
  • Structure to image stability-ai.control_structure
  • Style guide stability-ai.control_style
  • Stability AI REST API request stability-ai.api_request

Pengaturan

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

  • STABILITY_API_KEY Wajib
    API key from <https://platform.stability.ai/dashboard/api-keys> (sent as Authorization: Bearer)
  • STABILITY_AI_OUTPUT_DIR For image operations
    Absolute directory where images are saved. Synchronous operations refuse to run without it (the API answers with raw image bytes)
  • STABILITY_AI_UPLOAD_DIR For local uploads
    Absolute directory that image/mask inputs may be read from. Unset: only https URLs are accepted

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari Stability AI.
  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 stability-ai
workflow.yaml
- id: draft
  type: stability-ai.generate_core
  prompt: "A cozy cabin in a snowy forest, golden hour"
  aspect_ratio: "16:9"
- id: big
  type: stability-ai.upscale_fast
  image: "{{#draft.data.path#}}"   # needs STABILITY_AI_UPLOAD_DIR to include the output dir
Plugin di docs