---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Keyframe Still and Recraft SVG Asset Skill"
description: "Installable SKILL.md teaching Claude Code, Cursor, and Codex how to generate, verify, and optimize opening keyframes (Black Forest Labs FLUX 3 Image / Nano Banana 2.1), transparent PNG cutouts (Ideogram 4.6 / Seedream 5.5 / OpenAI GPT-Image-2.6), and editable SVG vectors (Recraft V4.1) with Star-Branch naming, SVGO cleanup, WebP conversion, and zero layout shift."
canonical: "https://framesfield.com/skills/image-keyframe-and-svg-asset-skill"
---

# Keyframe Still and Recraft SVG Asset Skill

> Installable SKILL.md teaching Claude Code, Cursor, and Codex how to generate, verify, and optimize opening keyframes (Black Forest Labs FLUX 3 Image / Nano Banana 2.1), transparent PNG cutouts (Ideogram 4.6 / Seedream 5.5 / OpenAI GPT-Image-2.6), and editable SVG vectors (Recraft V4.1) with Star-Branch naming, SVGO cleanup, WebP conversion, and zero layout shift.

- **Canonical URL:** https://framesfield.com/skills/image-keyframe-and-svg-asset-skill
- **Raw Payload URL:** https://framesfield.com/raw/skills/image-keyframe-and-svg-asset-skill
- **Asset Type:** SKILL.md
- **Compatible Hosts:** Claude Code, Cursor, Codex
- **Target Creative Tool:** FLUX 3 / Recraft V4.1 / Ideogram 4.6
- **License:** MIT
- **Last Verified:** 2026-11-30
- **Source Reference:** https://www.recraft.ai/docs/api-reference/getting-started

## Setup & Install

```bash
mkdir -p .claude/skills/keyframe-and-svg-assets
curl -fsSL https://framesfield.com/raw/skills/image-keyframe-and-svg-asset-skill -o .claude/skills/keyframe-and-svg-assets/SKILL.md

```

## Copyable Asset (SKILL.md)

```markdown
---
name: keyframe-and-svg-assets
description: Route, generate, optimize, and verify visual production assets across Black Forest Labs FLUX 3 Image, Google Nano Banana 2.1, ByteDance Seedream 5.5, Recraft V4.1 (native SVG), and Ideogram 4.6 with Star-Branch naming, SVGO cleanup, WebP encoding, and exact dimension checks.
---

# Keyframe Still, Cutout & Vector SVG Asset Protocol

Whenever asked to generate or process visual assets for AI video keyframes, thumbnails, or web landing sections, enforce this deterministic routing and file-hygiene standard:

## 1. Strict Tool Routing by Asset Type
- **Editable Icons, Logos & Diagrams (`.svg`) -> `Recraft V4.1` (`$0.08/SVG`, `$0.035/raster`):** Pass explicit RGB/hex color arrays (`controls.colors`) and save raw XML `.svg`. Never trace raster PNGs when native SVG is needed. (Legacy `Recraft V3` remains available at `$0.08/SVG` only if a workflow specifically requires V3's curated `vector_illustration` preset.)
- **Transparent Foreground Cutouts & Layer Kits (`.png`) -> `ByteDance Seedream 5.5` (`$0.020–$0.035` BytePlus / `$0.03–$0.0405` fal.ai up to 2K; native RGBA PNGs + `/layerize` up to 99 layers), `Ideogram 4.6` (`background: "transparent"` up to 4K), or `OpenAI GPT-Image-2.6` (`background: "transparent"`, token-billed at `$30`/1M output tokens):** Use whenever subjects or products need true alpha transparency for Figma, Remotion, or Resolve overlays.
- **Character / Product Keyframe Editing (`.png`) -> `FLUX 3 Image` (`/v1/flux-3-image`, `$0.048/1K`, `$0.10/2K`, up to 10 free reference images; `/v1/flux-3-image-klein` `$0.009/1K`) or `Nano Banana 2.1` (`$0.0336` at 1K):** Always branch Shot 01..N directly off `level0_anchor.png` (Depth 1)—never chain edit-of-edit.
- **High-Contrast Typographic Covers (`.png`) -> `Ideogram 4.6` (`/v2/image/generate/ideogram-4-6`, `$0.008` Very Low 2K draft -> `$0.06` Medium 2K -> `$0.12` Medium 4K / `$0.20` High 4K, plus masked `/v2/image/precise-edit/ideogram-4-6`):** Always reserve bottom-right `220x80px` empty on `16:9` YouTube covers.

## 2. Video Keyframe Dimension Hygiene
- Save video opening frames as **lossless PNG** (`keyframes/shot_01_16x9.png`)—never JPEG-compress opening frames before Image-to-Video.
- Match target aspect ratio upfront (`16:9` vs `9:16`), and ensure local ComfyUI keyframes divide cleanly by `32` (`1344x768` or `768x1344`) so Wan 2.2 and LTX-2 never crash on tensor shape errors.

## 3. Web Asset Optimization & Zero-CLS Contract
- Convert raster web assets to `.webp` via `sharp` (`quality: 90–92`) and optimize `.svg` outputs cleanly (strip redundant editor metadata, preserve explicit `viewBox`).
- Whenever embedding any asset in HTML/Astro/React, read exact pixel dimensions and write explicit numeric `width`, `height`, and descriptive `alt` text (`CLS = 0`).

## 4. Mandatory Visual Inspection Step
Never commit or feed a generated keyframe or SVG blindly into a paid video render. Open/inspect every generated file first to verify exact text spelling, clean edges, and lighting direction match.
```

## Example Input

```text
"Generate 3 minimalist SVG icons matching our #111111 / #E04420 palette via Recraft V4.1 API, clean them up, and embed them in src/components/FeatureGrid.astro with explicit dimensions."
```

## Expected Output

```text
- Calls Recraft V4.1 vector SVG endpoint (`$0.24` total for 3 SVGs) passing exact RGB arrays `[17,17,17]` and `[224,68,32]`.
- Validates clean XML `<svg viewBox=...>` output, saves descriptive slugs inside `public/images/icons/`, visually verifies stroke weights, and wires explicit `width`/`height`/`alt` attributes into the component.
```

## Requirements

- API keys in environment variables for your chosen providers (`BFL_API_KEY`, `GEMINI_API_KEY`, `IDEOGRAM_API_KEY`, `FAL_KEY`, or `RECRAFT_API_KEY`)
- Node.js with `sharp` (for WebP conversion) if optimizing web assets

## Known Limits

- Always inspect generated text spelling at 200% zoom before feeding a keyframe into paid video APIs—re-rolling a $0.009–$0.048 still is dramatically cheaper than re-rolling a video clip
- Recraft free web plan images are public, owned by Recraft, and not licensed for commercial use; always use paid API units for client work

## Implementation Notes

## Build cohesive brand & keyframe pipelines

See the full methodology behind Star-Branching and packaging fidelity in [Guide 05: Consistent Characters, Product Placement & Brand Assets](/guides/consistent-characters-and-brand-assets-guide) and [Workflow 07: High-Contrast YouTube Thumbnail & Brand Kit System](/workflows/youtube-thumbnail-and-brand-kit-pipeline).
