# #image-creation Summary

## Overview
Curious Endeavor integrated the Recraft API for AI-powered image generation, specifically to create vector logos that can be seamlessly imported into Figma. Assaf requested a solution to generate SVG logos via Recraft and automate their insertion into Figma, and Kitt built an end-to-end pipeline to accomplish this.

## Key Decisions & Outcomes
- **Recraft V4** selected as primary model (latest Feb 2026, best design quality, native SVG output)
- **Option B chosen:** Build a Figma plugin with SVG auto-insertion rather than manual paste workflow
- **Plugin built:** Extended existing Figma Bridge with `insert_svg` command using `figma.createNodeFromSvg()` API
- **Script created:** `scripts/recraft-to-figma.cjs` — end-to-end pipeline for generating logos and inserting them directly into Figma canvas
- **Supported features:** Text-to-image, image-to-image, inpainting, style references, vectorization; supports 1-6 variations with custom positioning/scaling

## Active/Open Items
- ⏳ **Plugin reload required:** Figma Bridge needs to be reloaded in Figma (Plugins → Development)
- ⏳ **End-to-end test pending:** Kitt asked if Assaf wants to test the full pipeline now or reload plugin first
- ⏳ **API key storage:** Needs proper secure storage setup

## Key Links & References
- **Recraft API endpoint:** `https://external.api.recraft.ai/v1`
- **Script usage:** `node scripts/recraft-to-figma.cjs --prompt "minimal logo for NOVA" --name "NOVA Logo"`
- **Available models:** `recraftv4`, `recraftv4_pro`, `recraftv3`, `recraftv2` (with vector variants)
- **Test output:** `nova-logo.svg` (confirmed clean SVG output)