[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CNAEY7Y6WEAC0R5DYWEEXJ":3,"skill-same:01M6CNAEY7Y6WEAC0R5DYWEEXJ":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6CNAEY7Y6WEAC0R5DYWEEXJ","kie-gemini-omni",null,"Submit-and-poll harness for Kie AI image + video models. IMAGE generation default is GPT Image v2 (`gpt-image-2-text-to-image` \u002F `gpt-image-2-image-to-image`) — best text rendering, the right tool for X-reply attachments, ad creative, posters\u002Fcards, blog hero images, brand visuals; Nano Banana Pro (`nano-banana-pro`) is the fallback. VIDEO generation via `gemini-omni-video` for short-form B-roll. Replaces the deprecated Veo3 path. Handles the safety-filter rejections, Cloudflare CDN 403, duration rounding, and 500 transient errors that bite first-time users. Activate when the user mentions Kie AI, GPT Image, Gemini Omni, Nano Banana, generate-an-image-via-Kie, or wants to produce AI images\u002Fshort clips through kie.ai's \u002Fapi\u002Fv1\u002Fjobs\u002FcreateTask endpoint.","anton-abyzov\u002Fvskill","anton-abyzov","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F979819?v=4","01M6CN5XDNZDM4A59WYJ1MF0DF","Anton Abyzov","01M6CN5XHVS7FXP067EJQVVZHK",47,"MIT","https:\u002F\u002Fgithub.com\u002Fanton-abyzov\u002Fvskill\u002Fblob\u002Fmain\u002Fplugins\u002Fmarketing\u002Fskills\u002Fkie-gemini-omni\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"gemini","kie gemini omni","kie","text","image","activate","default","fallback","images","short","video generation","generate","harness","ad creative","Video","api","Safety","endpoint","nano banana pro","cloudflare","2026-11-10 10:12:30",false,"---\nname: kie-gemini-omni\ndescription: Submit-and-poll harness for Kie AI image + video models. IMAGE generation default is GPT Image v2 (`gpt-image-2-text-to-image` \u002F `gpt-image-2-image-to-image`) — best text rendering, the right tool for X-reply attachments, ad creative, posters\u002Fcards, blog hero images, brand visuals; Nano Banana Pro (`nano-banana-pro`) is the fallback. VIDEO generation via `gemini-omni-video` for short-form B-roll. Replaces the deprecated Veo3 path. Handles the safety-filter rejections, Cloudflare CDN 403, duration rounding, and 500 transient errors that bite first-time users. Activate when the user mentions Kie AI, GPT Image, Gemini Omni, Nano Banana, generate-an-image-via-Kie, or wants to produce AI images\u002Fshort clips through kie.ai's \u002Fapi\u002Fv1\u002Fjobs\u002FcreateTask endpoint.\nmetadata:\n  version: 1.0.0\n  author: Anton Abyzov\n---\n\n# Kie Gemini Omni — image + video generation harness\n\nYou drive Kie AI's job queue (`\u002Fapi\u002Fv1\u002Fjobs\u002FcreateTask` + `\u002Fapi\u002Fv1\u002Fjobs\u002FrecordInfo`) to produce images and short clips through Google's Gemini-family models. **Veo3 is deprecated** — use Nano Banana Pro for stills, `gemini-omni-video` for clips.\n\n## When to use which model\n\n| Use case | Model ID | Aspect \u002F resolution | Latency |\n|---|---|---|---|\n| **DEFAULT — X-reply image, blog hero, brand visual, poster, diagram** | **`gpt-image-2-text-to-image`** (GPT Image v2, Anton's pick) | aspect_ratio auto\u002F16:9\u002F1:1\u002F9:16\u002F… , resolution 1K\u002F2K\u002F4K | 30-120 sec |\n| Edit \u002F restyle an existing image, or composite with reference images | **`gpt-image-2-image-to-image`** | same; pass refs via `input_urls` (public URLs) | 30-120 sec |\n| Fallback if GPT Image v2 errors or rejects the prompt | `nano-banana-pro` (Gemini 3 Pro Image) | 16:9, 1:1, 9:16 — 1080p\u002F2K | 10-30 sec |\n| Cheap batch images (~20+ at once) | `nano-banana-2` (Gemini 3.1 Flash Image) | same | 5-15 sec |\n| Short-form vertical clip 6-10s (TikTok\u002FReels\u002FShorts B-roll) | **`gemini-omni-video`** | 9:16, 16:9, 1:1, up to 10s | 90-300 sec |\n\n**Default still model is `gpt-image-2-text-to-image`** (per Anton, 2026-06-01). It renders on-image text far more reliably than Nano Banana and is the right tool for posters\u002Fcards with words. Nano Banana Pro is the fallback only. **Note the param differences vs Nano Banana:** GPT Image v2 uses `resolution: 1K|2K|4K` (NOT `1080p`), takes `aspect_ratio` (default `auto`; `1:1` cannot go `4K`), and does NOT take `output_format` (returns PNG). Result still comes back as `.data.resultJson` → `.resultUrls[0]`, same poller, same Cloudflare-UA download gotcha.\n\n**Never use Veo3** — Kie still exposes the endpoint for backwards compat, but the model is outdated, the prompts you'd write for Veo3 don't translate, and Gemini Omni Video produces equivalent or better output at lower credit cost.\n\n## Pre-flight (every run)\n\n```bash\nexport KIE_API_KEY=$(security find-generic-password -s 'kie-api-key' -w 2>\u002Fdev\u002Fnull || cat ~\u002F.config\u002Fkie\u002Fapi_key)\ntest -n \"$KIE_API_KEY\" || { echo \"KIE_API_KEY missing\"; exit 1; }\n```\n\nAPI key lookup order:\n1. `KIE_API_KEY` env var\n2. macOS Keychain `kie-api-key`\n3. `~\u002F.config\u002Fkie\u002Fapi_key`\n4. Obsidian: `003 Resources\u002FTechnical Knowledge\u002FCredentials-Secrets-Passwords\u002FKie creds.md`\n\n## Pattern A — Image (GPT Image v2, default)\n\nThe single most common use. ~30-120 sec end-to-end.\n\n### Submit\n\n```bash\nTASK_ID=$(curl -sS -X POST https:\u002F\u002Fapi.kie.ai\u002Fapi\u002Fv1\u002Fjobs\u002FcreateTask \\\n  -H \"Authorization: Bearer $KIE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"gpt-image-2-text-to-image\",\n    \"input\": {\n      \"prompt\": \"\u003Cyour prompt — see prompt-craft section below>\",\n      \"aspect_ratio\": \"16:9\",\n      \"resolution\": \"2K\"\n    }\n  }' | jq -r '.data.taskId')\n\necho \"taskId=$TASK_ID\"\n```\n\n`aspect_ratio`: `auto` (default) | `1:1` | `3:2` | `2:3` | `4:3` | `3:4` | `16:9` | `9:16` | `2:1` | `1:2` | `21:9` | … · `resolution`: `1K` | `2K` | `4K` (`1:1` cannot be `4K`). No `output_format` field — returns PNG. Verified live 2026-06-01: returns 2048×1152 at 2K\u002F16:9.\n\n**Image-to-image \u002F edit \u002F reference compositing** — same endpoint, model `gpt-image-2-image-to-image`, add `\"input_urls\": [\"https:\u002F\u002Fpublic-url\u002Fref.png\"]` (must be public URLs, not local paths or data URIs):\n\n```bash\n  -d '{ \"model\":\"gpt-image-2-image-to-image\",\n        \"input\": { \"prompt\":\"\u003Cedit instruction>\", \"input_urls\":[\"https:\u002F\u002F...\u002Fref.png\"], \"aspect_ratio\":\"16:9\", \"resolution\":\"2K\" } }'\n```\n\n**Fallback model** if GPT Image v2 errors twice or rejects the prompt — swap `\"model\":\"nano-banana-pro\"` and use `\"output_format\":\"png\",\"resolution\":\"1080p\"` (Nano Banana uses `1080p`\u002F`2K`, NOT `1K\u002F2K\u002F4K`).\n\nFor batches, send multiple createTask calls in parallel — Kie tolerates concurrent submissions per account.\n\n### Poll\n\n```bash\npoll_kie() {\n  local tid=$1\n  for i in $(seq 1 60); do\n    resp=$(curl -sS \"https:\u002F\u002Fapi.kie.ai\u002Fapi\u002Fv1\u002Fjobs\u002FrecordInfo?taskId=$tid\" \\\n      -H \"Authorization: Bearer $KIE_API_KEY\")\n    state=$(echo \"$resp\" | jq -r '.data.state')\n    case \"$state\" in\n      success) echo \"$resp\" | jq -r '.data.resultJson' | jq -r '.resultUrls[0]'; return 0 ;;\n      fail)    echo \"$resp\" >&2; return 1 ;;\n      *)       sleep 3 ;;\n    esac\n  done\n  echo \"timeout\" >&2; return 2\n}\n\nURL=$(poll_kie \"$TASK_ID\")\necho \"Got: $URL\"\n```\n\n### Download (Cloudflare CDN gotcha)\n\nKie's `tempfile.aiquickdraw.com` CDN **rejects** the default `Python-urllib\u002F3.9` user agent with HTTP 403. Always force a Mozilla UA:\n\n```bash\ncurl -sS -A 'Mozilla\u002F5.0' -o .\u002Fimage.png \"$URL\"\n```\n\nIn Python:\n```python\nimport urllib.request\nreq = urllib.request.Request(url, headers={\"User-Agent\": \"Mozilla\u002F5.0\"})\nwith urllib.request.urlopen(req) as r, open(out, \"wb\") as f:\n    f.write(r.read())\n```\n\n## Pattern B — Video (`gemini-omni-video`)\n\nUse only for short-form B-roll, ad creative, social clips. 1-2 min latency per clip; submit-and-walk-away.\n\n### Submit\n\n```bash\ncurl -sS -X POST https:\u002F\u002Fapi.kie.ai\u002Fapi\u002Fv1\u002Fjobs\u002FcreateTask \\\n  -H \"Authorization: Bearer $KIE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"gemini-omni-video\",\n    \"input\": {\n      \"prompt\": \"\u003Cprompt — see safe-prompts below>\",\n      \"aspect_ratio\": \"9:16\",\n      \"duration\": 8,\n      \"image_urls\": [\"https:\u002F\u002Fpath\u002Fto\u002Freference.png\"]\n    }\n  }'\n```\n\n- **`duration`**: requested values of 4 or 6 routinely come back as 8 or 10. Either pre-trim with ffmpeg or accept the longer clip.\n- **`image_urls`**: optional reference images. Up to 3-5. Pass real images (uploaded to your own CDN or Postiz, not data URIs).\n- **Aspect**: `9:16` for vertical (TikTok\u002FReels\u002FShorts), `16:9` for horizontal, `1:1` for IG square.\n\n### Poll + download\n\nSame as Pattern A. Download via `curl -A 'Mozilla\u002F5.0'`.\n\n## Failure modes (and how to recover)\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| HTTP 500 on createTask (image OR video) | Kie transient cluster error | Retry up to 3x with same payload. ~30% of first-submissions on busy days return 500; the retry almost always succeeds. Credits **are not** charged on these. |\n| `state: fail` with `PUBLIC_ERROR_UNSAFE_GENERATION` | Safety filter rejected the prompt | **Rewrite, don't retry.** Common triggers below. |\n| `state: fail` with generic `INTERNAL_ERROR` | Stochastic failure | Retry up to 3x. Credits refunded. |\n| Image downloads as 403 \u002F empty | Cloudflare CDN UA reject | Use `-A 'Mozilla\u002F5.0'`. |\n| Image text is garbled | Nano Banana Pro can produce bad typography under stress | Pre-render text in a layer (Pillow\u002FSketch) and overlay yourself. Don't ask the model for fine typography in small font sizes. |\n| Video duration is 8s when you asked for 4s | Kie rounding | Trim in post: `ffmpeg -i in.mp4 -t 4 -c copy out.mp4`. Or accept. |\n\n### Safety filter triggers (avoid these in prompts)\n\nHard-learned from the 2026-05-22 JobWeave campaign:\n\n- **Rejection-letter language**: \"we've decided to move forward with other candidates\", \"position has been filled\". Use generic \"status update\" phrasing.\n- **Competitor brand verbatim** in body text: \"Claude AI\", \"ChatGPT\", \"OpenAI\", \"Google\" rendered as on-screen text. Filter is fine with these in non-rendered prompt sections; just don't ask the model to render the logo or product name.\n- **Google OAuth modal flashes** in screen recordings. Use a generic \"sign-in modal\" instead.\n- **Lip-sync motion shorter than 3 seconds**. Either render with motion-blurred lips, or no lip motion at all, or extend to ≥3s.\n- **Identifiable people on video calls** that the model would have to fabricate. Use blurred neutral avatars (initials over a soft colored circle) — preserves intent without the filter trigger.\n- **Real CEOs \u002F public figures** by name when asked to render them visually. Generic descriptive prompts only.\n\nThe filter is intermittent. The SAME prompt can fail 3 times and succeed on attempt 4 unchanged. After 2 same-prompt fails, **rewrite**, don't keep retrying.\n\n## Prompt craft (Nano Banana Pro)\n\nThis model rewards specific, photoreal-cinematic prompts with clear composition. Pattern:\n\n```\n{Style}, {camera + lens}, {lighting + time of day}.\nSubject: {2-3 sentences describing the central element with brand colors and aesthetic}.\nComposition: {framing — close-up \u002F wide \u002F split-screen \u002F panel}.\nText on image: {if any — keep to 1-2 short labels, large size, sans-serif, in quotes}.\nMood: {one adjective}.\nAvoid: {anything you don't want}.\n```\n\nExample for an X reply on the spec-driven dev angle:\n\n```\nVertical 16:9 photoreal cinematic, 35mm shallow depth of field. Cool blue-gray studio lighting.\nSubject: A clean dark-mode terminal window centered in frame, showing 3 stacked spec files (spec.md, plan.md, tasks.md) with crisp purple syntax highlighting. The file titles are legible in white sans-serif.\nComposition: tight centered framing, slight perspective tilt.\nText on image: A single white sans-serif label in the upper-third reading exactly \"ship the spec, not the prompt.\"\nMood: confident.\nAvoid: garbled text, third-party logos, generic stock aesthetics.\n```\n\n## Prompt craft (gemini-omni-video)\n\n10-second cap per clip. For longer videos, render multiple clips and concatenate.\n\n```\nVertical 9:16 photoreal cinematic, {duration} seconds, shallow depth of field 85mm.\n{Lighting + setting + time of day}.\n{Subject description — keep continuity-friendly: same person, same outfit, same room across multi-clip sequences via image_urls references}.\n{Action timeline using t=0s, t=2s, t=4s markers}.\n{Text overlays — fixed sans-serif labels with exact quoted text}.\n{Audio direction — \"soft ambient room tone, no music\" is the safest default}.\n{Negative cues — \"no garbled text, no recognizable third-party logos, photoreal skin\"}.\n```\n\n## Aspect-ratio cheat sheet\n\n| Platform | Use | Aspect | Resolution to request |\n|---|---|---|---|\n| X reply \u002F quote \u002F blog hero | image | 16:9 | 1080p (= 1920×1080) |\n| TikTok \u002F Reels \u002F Shorts | image OR video | 9:16 | 1080p (= 1080×1920) |\n| Instagram feed | image | 1:1 OR 4:5 | 1080p |\n| LinkedIn document | image | 1:1 OR 4:5 | 2K if doc-style |\n| YouTube thumbnail | image | 16:9 | 2K (= 2560×1440) |\n\n## Cost reference\n\n| Model | Per-unit credits | $ approx (assuming 1 credit ≈ $0.0007) |\n|---|---|---|\n| `gpt-image-2-text-to-image` (default) | ~50-55 \u002F image observed | ~$0.04 |\n| `gpt-image-2-image-to-image` | similar | ~$0.04 |\n| `nano-banana-pro` (1080p PNG, fallback) | ~60 | ~$0.04 |\n| `nano-banana-pro` (2K PNG, fallback) | ~120 | ~$0.08 |\n| `nano-banana-2` | ~30 | ~$0.02 |\n| `gemini-omni-video` (10s, 1080p) | ~180 | ~$0.13 |\n| `gemini-omni-video` (10s, 720p upscaled to 1080p) | ~150 | ~$0.10 |\n\nCost is not the constraint per Anton — pick the best model (GPT Image v2), not the cheapest.\n\nFailures are not billed (Kie auto-refunds creditsConsumed on `fail` state).\n\n## Integration with the social engagement routine\n\nThe `social-engagement-hourly` scheduled task calls this skill on `IMAGE_FIRE=1` fires (odd hours, ~8\u002Fday). Pattern: generate ONE 16:9 image for ONE of the 6-8 X replies, attach via the inline composer's file input, post. (The old `twitter-social-media-promotion` task is disabled — do not reference it.)\n\nSee `~\u002F.claude\u002Fscheduled-tasks\u002Fsocial-engagement-hourly\u002FSKILL.md` Step 1.6.\n\n## Sample end-to-end (single image)\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\nKEY=$(security find-generic-password -s 'kie-api-key' -w 2>\u002Fdev\u002Fnull || cat ~\u002F.config\u002Fkie\u002Fapi_key)\n\nPROMPT='Vertical 16:9 photoreal cinematic, 35mm shallow depth of field. Cool blue-gray studio lighting.\nSubject: A clean dark-mode terminal window centered in frame, showing 3 stacked spec files (spec.md, plan.md, tasks.md) with crisp purple syntax highlighting. The file titles are legible in white sans-serif.\nComposition: tight centered framing.\nText on image: A single white sans-serif label in the upper-third reading exactly \"ship the spec, not the prompt.\"\nMood: confident.\nAvoid: garbled text, third-party logos, generic stock aesthetics.'\n\nTID=$(curl -sS -X POST https:\u002F\u002Fapi.kie.ai\u002Fapi\u002Fv1\u002Fjobs\u002FcreateTask \\\n  -H \"Authorization: Bearer $KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d \"$(jq -n --arg p \"$PROMPT\" '{model:\"gpt-image-2-text-to-image\",input:{prompt:$p,aspect_ratio:\"16:9\",resolution:\"2K\"}}')\" \\\n  | jq -r '.data.taskId')\n\necho \"taskId=$TID, polling...\"\n\nfor i in $(seq 1 60); do\n  R=$(curl -sS \"https:\u002F\u002Fapi.kie.ai\u002Fapi\u002Fv1\u002Fjobs\u002FrecordInfo?taskId=$TID\" -H \"Authorization: Bearer $KEY\")\n  S=$(echo \"$R\" | jq -r '.data.state')\n  case \"$S\" in\n    success) URL=$(echo \"$R\" | jq -r '.data.resultJson' | jq -r '.resultUrls[0]'); break ;;\n    fail) echo \"$R\" | jq '.data.failReason'; exit 1 ;;\n    *) sleep 3 ;;\n  esac\ndone\n\nOUT=\u002Ftmp\u002Fkie-$(date +%s).png\ncurl -sS -A 'Mozilla\u002F5.0' -o \"$OUT\" \"$URL\"\necho \"Saved: $OUT\"\n```\n\n## Why this exists\n\nBefore this skill: every video\u002Fimage gen run re-derived the model name from memory (\"was it Veo 3.1 or `gemini-omni-video`?\"), re-discovered the Cloudflare UA gotcha, re-tripped the safety filter on the same patterns, and used Veo3 by default — which is outdated and produces lower-fidelity results at higher credit cost. This skill locks in the model selection (Nano Banana Pro for images, Gemini Omni Video for clips), the safety-filter avoidance, the CDN UA, and the failure-recovery loop so every run starts from a known-good baseline.\n","# Kie Gemini Omni — image + video generation harness\n\nYou drive Kie AI's job queue (`\u002Fapi\u002Fv1\u002Fjobs\u002FcreateTask` + `\u002Fapi\u002Fv1\u002Fjobs\u002FrecordInfo`) to produce images and short clips through Google's Gemini-family models. **Veo3 is deprecated** — use Nano Banana Pro for stills, `gemini-omni-video` for clips.\n\n## When to use which model\n\n| Use case | Model ID | Aspect \u002F resolution | Latency |\n|---|---|---|---|\n| **DEFAULT — X-reply image, blog hero, brand visual, poster, diagram** | **`gpt-image-2-text-to-image`** (GPT Image v2, Anton's pick) | aspect_ratio auto\u002F16:9\u002F1:1\u002F9:16\u002F… , resolution 1K\u002F2K\u002F4K | 30-120 sec |\n| Edit \u002F restyle an existing image, or composite with reference images | **`gpt-image-2-image-to-image`** | same; pass refs via `input_urls` (public URLs) | 30-120 sec |\n| Fallback if GPT Image v2 errors or rejects the prompt | `nano-banana-pro` (Gemini 3 Pro Image) | 16:9, 1:1, 9:16 — 1080p\u002F2K | 10-30 sec |\n| Cheap batch images (~20+ at once) | `nano-banana-2` (Gemini 3.1 Flash Image) | same | 5-15 sec |\n| Short-form vertical clip 6-10s (TikTok\u002FReels\u002FShorts B-roll) | **`gemini-omni-video`** | 9:16, 16:9, 1:1, up to 10s | 90-300 sec |\n\n**Default still model is `gpt-image-2-text-to-image`** (per Anton, 2026-06-01). It renders on-image text far more reliably than Nano Banana and is the right tool for posters\u002Fcards with words. Nano Banana Pro is the fallback only. **Note the param differences vs Nano Banana:** GPT Image v2 uses `resolution: 1K|2K|4K` (NOT `1080p`), takes `aspect_ratio` (default `auto`; `1:1` cannot go `4K`), and does NOT take `output_format` (returns PNG). Result still comes back as `.data.resultJson` → `.resultUrls[0]`, same poller, same Cloudflare-UA download gotcha.\n\n**Never use Veo3** — Kie still exposes the endpoint for backwards compat, but the model is outdated, the prompts you'd write for Veo3 don't translate, and Gemini Omni Video produces equivalent or better output at lower credit cost.\n\n## Pre-flight (every run)\n\n```bash\nexport KIE_API_KEY=$(security find-generic-password -s 'kie-api-key' -w 2>\u002Fdev\u002Fnull || cat ~\u002F.config\u002Fkie\u002Fapi_key)\ntest -n \"$KIE_API_KEY\" || { echo \"KIE_API_KEY missing\"; exit 1; }\n```\n\nAPI key lookup order:\n1. `KIE_API_KEY` env var\n2. macOS Keychain `kie-api-key`\n3. `~\u002F.config\u002Fkie\u002Fapi_key`\n4. Obsidian: `003 Resources\u002FTechnical Knowledge\u002FCredentials-Secrets-Passwords\u002FKie creds.md`\n\n## Pattern A — Image (GPT Image v2, default)\n\nThe single most common use. ~30-120 sec end-to-end.\n\n### Submit\n\n```bash\nTASK_ID=$(curl -sS -X POST https:\u002F\u002Fapi.kie.ai\u002Fapi\u002Fv1\u002Fjobs\u002FcreateTask \\\n  -H \"Authorization: Bearer $KIE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"gpt-image-2-text-to-image\",\n    \"input\": {\n      \"prompt\": \"\u003Cyour prompt — see prompt-craft section below>\",\n      \"aspect_ratio\": \"16:9\",\n      \"resolution\": \"2K\"\n    }\n  }' | jq -r '.data.taskId')\n\necho \"taskId=$TASK_ID\"\n```\n\n`aspect_ratio`: `auto` (default) | `1:1` | `3:2` | `2:3` | `4:3` | `3:4` | `16:9` | `9:16` | `2:1` | `1:2` | `21:9` | … · `resolution`: `1K` | `2K` | `4K` (`1:1` cannot be `4K`). No `output_format` field — returns PNG. Verified live 2026-06-01: returns 2048×1152 at 2K\u002F16:9.\n\n**Image-to-image \u002F edit \u002F reference compositing** — same endpoint, model `gpt-image-2-image-to-image`, add `\"input_urls\": [\"https:\u002F\u002Fpublic-url\u002Fref.png\"]` (must be public URLs, not local paths or data URIs):\n\n```bash\n  -d '{ \"model\":\"gpt-image-2-image-to-image\",\n        \"input\": { \"prompt\":\"\u003Cedit instruction>\", \"input_urls\":[\"https:\u002F\u002F...\u002Fref.png\"], \"aspect_ratio\":\"16:9\", \"resolution\":\"2K\" } }'\n```\n\n**Fallback model** if GPT Image v2 errors twice or rejects the prompt — swap `\"model\":\"nano-banana-pro\"` and use `\"output_format\":\"png\",\"resolution\":\"1080p\"` (Nano Banana uses `1080p`\u002F`2K`, NOT `1K\u002F2K\u002F4K`).\n\nFor batches, send multiple createTask calls in parallel — Kie tolerates concurrent submissions per account.\n\n### Poll\n\n```bash\npoll_kie() {\n  local tid=$1\n  for i in $(seq 1 60); do\n    resp=$(curl -sS \"https:\u002F\u002Fapi.kie.ai\u002Fapi\u002Fv1\u002Fjobs\u002FrecordInfo?taskId=$tid\" \\\n      -H \"Authorization: Bearer $KIE_API_KEY\")\n    state=$(echo \"$resp\" | jq -r '.data.state')\n    case \"$state\" in\n      success) echo \"$resp\" | jq -r '.data.resultJson' | jq -r '.resultUrls[0]'; return 0 ;;\n      fail)    echo \"$resp\" >&2; return 1 ;;\n      *)       sleep 3 ;;\n    esac\n  done\n  echo \"timeout\" >&2; return 2\n}\n\nURL=$(poll_kie \"$TASK_ID\")\necho \"Got: $URL\"\n```\n\n### Download (Cloudflare CDN gotcha)\n\nKie's `tempfile.aiquickdraw.com` CDN **rejects** the default `Python-urllib\u002F3.9` user agent with HTTP 403. Always force a Mozilla UA:\n\n```bash\ncurl -sS -A 'Mozilla\u002F5.0' -o .\u002Fimage.png \"$URL\"\n```\n\nIn Python:\n```python\nimport urllib.request\nreq = urllib.request.Request(url, headers={\"User-Agent\": \"Mozilla\u002F5.0\"})\nwith urllib.request.urlopen(req) as r, open(out, \"wb\") as f:\n    f.write(r.read())\n```\n\n## Pattern B — Video (`gemini-omni-video`)\n\nUse only for short-form B-roll, ad creative, social clips. 1-2 min latency per clip; submit-and-walk-away.\n\n### Submit\n\n```bash\ncurl -sS -X POST https:\u002F\u002Fapi.kie.ai\u002Fapi\u002Fv1\u002Fjobs\u002FcreateTask \\\n  -H \"Authorization: Bearer $KIE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"gemini-omni-video\",\n    \"input\": {\n      \"prompt\": \"\u003Cprompt — see safe-prompts below>\",\n      \"aspect_ratio\": \"9:16\",\n      \"duration\": 8,\n      \"image_urls\": [\"https:\u002F\u002Fpath\u002Fto\u002Freference.png\"]\n    }\n  }'\n```\n\n- **`duration`**: requested values of 4 or 6 routinely come back as 8 or 10. Either pre-trim with ffmpeg or accept the longer clip.\n- **`image_urls`**: optional reference images. Up to 3-5. Pass real images (uploaded to your own CDN or Postiz, not data URIs).\n- **Aspect**: `9:16` for vertical (TikTok\u002FReels\u002FShorts), `16:9` for horizontal, `1:1` for IG square.\n\n### Poll + download\n\nSame as Pattern A. Download via `curl -A 'Mozilla\u002F5.0'`.\n\n## Failure modes (and how to recover)\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| HTTP 500 on createTask (image OR video) | Kie transient cluster error | Retry up to 3x with same payload. ~30% of first-submissions on busy days return 500; the retry almost always succeeds. Credits **are not** charged on these. |\n| `state: fail` with `PUBLIC_ERROR_UNSAFE_GENERATION` | Safety filter rejected the prompt | **Rewrite, don't retry.** Common triggers below. |\n| `state: fail` with generic `INTERNAL_ERROR` | Stochastic failure | Retry up to 3x. Credits refunded. |\n| Image downloads as 403 \u002F empty | Cloudflare CDN UA reject | Use `-A 'Mozilla\u002F5.0'`. |\n| Image text is garbled | Nano Banana Pro can produce bad typography under stress | Pre-render text in a layer (Pillow\u002FSketch) and overlay yourself. Don't ask the model for fine typography in small font sizes. |\n| Video duration is 8s when you asked for 4s | Kie rounding | Trim in post: `ffmpeg -i in.mp4 -t 4 -c copy out.mp4`. Or accept. |\n\n### Safety filter triggers (avoid these in prompts)\n\nHard-learned from the 2026-05-22 JobWeave campaign:\n\n- **Rejection-letter language**: \"we've decided to move forward with other candidates\", \"position has been filled\". Use generic \"status update\" phrasing.\n- **Competitor brand verbatim** in body text: \"Claude AI\", \"ChatGPT\", \"OpenAI\", \"Google\" rendered as on-screen text. Filter is fine with these in non-rendered prompt sections; just don't ask the model to render the logo or product name.\n- **Google OAuth modal flashes** in screen recordings. Use a generic \"sign-in modal\" instead.\n- **Lip-sync motion shorter than 3 seconds**. Either render with motion-blurred lips, or no lip motion at all, or extend to ≥3s.\n- **Identifiable people on video calls** that the model would have to fabricate. Use blurred neutral avatars (initials over a soft colored circle) — preserves intent without the filter trigger.\n- **Real CEOs \u002F public figures** by name when asked to render them visually. Generic descriptive prompts only.\n\nThe filter is intermittent. The SAME prompt can fail 3 times and succeed on attempt 4 unchanged. After 2 same-prompt fails, **rewrite**, don't keep retrying.\n\n## Prompt craft (Nano Banana Pro)\n\nThis model rewards specific, photoreal-cinematic prompts with clear composition. Pattern:\n\n```\n{Style}, {camera + lens}, {lighting + time of day}.\nSubject: {2-3 sentences describing the central element with brand colors and aesthetic}.\nComposition: {framing — close-up \u002F wide \u002F split-screen \u002F panel}.\nText on image: {if any — keep to 1-2 short labels, large size, sans-serif, in quotes}.\nMood: {one adjective}.\nAvoid: {anything you don't want}.\n```\n\nExample for an X reply on the spec-driven dev angle:\n\n```\nVertical 16:9 photoreal cinematic, 35mm shallow depth of field. Cool blue-gray studio lighting.\nSubject: A clean dark-mode terminal window centered in frame, showing 3 stacked spec files (spec.md, plan.md, tasks.md) with crisp purple syntax highlighting. The file titles are legible in white sans-serif.\nComposition: tight centered framing, slight perspective tilt.\nText on image: A single white sans-serif label in the upper-third reading exactly \"ship the spec, not the prompt.\"\nMood: confident.\nAvoid: garbled text, third-party logos, generic stock aesthetics.\n```\n\n## Prompt craft (gemini-omni-video)\n\n10-second cap per clip. For longer videos, render multiple clips and concatenate.\n\n```\nVertical 9:16 photoreal cinematic, {duration} seconds, shallow depth of field 85mm.\n{Lighting + setting + time of day}.\n{Subject description — keep continuity-friendly: same person, same outfit, same room across multi-clip sequences via image_urls references}.\n{Action timeline using t=0s, t=2s, t=4s markers}.\n{Text overlays — fixed sans-serif labels with exact quoted text}.\n{Audio direction — \"soft ambient room tone, no music\" is the safest default}.\n{Negative cues — \"no garbled text, no recognizable third-party logos, photoreal skin\"}.\n```\n\n## Aspect-ratio cheat sheet\n\n| Platform | Use | Aspect | Resolution to request |\n|---|---|---|---|\n| X reply \u002F quote \u002F blog hero | image | 16:9 | 1080p (= 1920×1080) |\n| TikTok \u002F Reels \u002F Shorts | image OR video | 9:16 | 1080p (= 1080×1920) |\n| Instagram feed | image | 1:1 OR 4:5 | 1080p |\n| LinkedIn document | image | 1:1 OR 4:5 | 2K if doc-style |\n| YouTube thumbnail | image | 16:9 | 2K (= 2560×1440) |\n\n## Cost reference\n\n| Model | Per-unit credits | $ approx (assuming 1 credit ≈ $0.0007) |\n|---|---|---|\n| `gpt-image-2-text-to-image` (default) | ~50-55 \u002F image observed | ~$0.04 |\n| `gpt-image-2-image-to-image` | similar | ~$0.04 |\n| `nano-banana-pro` (1080p PNG, fallback) | ~60 | ~$0.04 |\n| `nano-banana-pro` (2K PNG, fallback) | ~120 | ~$0.08 |\n| `nano-banana-2` | ~30 | ~$0.02 |\n| `gemini-omni-video` (10s, 1080p) | ~180 | ~$0.13 |\n| `gemini-omni-video` (10s, 720p upscaled to 1080p) | ~150 | ~$0.10 |\n\nCost is not the constraint per Anton — pick the best model (GPT Image v2), not the cheapest.\n\nFailures are not billed (Kie auto-refunds creditsConsumed on `fail` state).\n\n## Integration with the social engagement routine\n\nThe `social-engagement-hourly` scheduled task calls this skill on `IMAGE_FIRE=1` fires (odd hours, ~8\u002Fday). Pattern: generate ONE 16:9 image for ONE of the 6-8 X replies, attach via the inline composer's file input, post. (The old `twitter-social-media-promotion` task is disabled — do not reference it.)\n\nSee `~\u002F.claude\u002Fscheduled-tasks\u002Fsocial-engagement-hourly\u002FSKILL.md` Step 1.6.\n\n## Sample end-to-end (single image)\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\nKEY=$(security find-generic-password -s 'kie-api-key' -w 2>\u002Fdev\u002Fnull || cat ~\u002F.config\u002Fkie\u002Fapi_key)\n\nPROMPT='Vertical 16:9 photoreal cinematic, 35mm shallow depth of field. Cool blue-gray studio lighting.\nSubject: A clean dark-mode terminal window centered in frame, showing 3 stacked spec files (spec.md, plan.md, tasks.md) with crisp purple syntax highlighting. The file titles are legible in white sans-serif.\nComposition: tight centered framing.\nText on image: A single white sans-serif label in the upper-third reading exactly \"ship the spec, not the prompt.\"\nMood: confident.\nAvoid: garbled text, third-party logos, generic stock aesthetics.'\n\nTID=$(curl -sS -X POST https:\u002F\u002Fapi.kie.ai\u002Fapi\u002Fv1\u002Fjobs\u002FcreateTask \\\n  -H \"Authorization: Bearer $KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d \"$(jq -n --arg p \"$PROMPT\" '{model:\"gpt-image-2-text-to-image\",input:{prompt:$p,aspect_ratio:\"16:9\",resolution:\"2K\"}}')\" \\\n  | jq -r '.data.taskId')\n\necho \"taskId=$TID, polling...\"\n\nfor i in $(seq 1 60); do\n  R=$(curl -sS \"https:\u002F\u002Fapi.kie.ai\u002Fapi\u002Fv1\u002Fjobs\u002FrecordInfo?taskId=$TID\" -H \"Authorization: Bearer $KEY\")\n  S=$(echo \"$R\" | jq -r '.data.state')\n  case \"$S\" in\n    success) URL=$(echo \"$R\" | jq -r '.data.resultJson' | jq -r '.resultUrls[0]'); break ;;\n    fail) echo \"$R\" | jq '.data.failReason'; exit 1 ;;\n    *) sleep 3 ;;\n  esac\ndone\n\nOUT=\u002Ftmp\u002Fkie-$(date +%s).png\ncurl -sS -A 'Mozilla\u002F5.0' -o \"$OUT\" \"$URL\"\necho \"Saved: $OUT\"\n```\n\n## Why this exists\n\nBefore this skill: every video\u002Fimage gen run re-derived the model name from memory (\"was it Veo 3.1 or `gemini-omni-video`?\"), re-discovered the Cloudflare UA gotcha, re-tripped the safety filter on the same patterns, and used Veo3 by default — which is outdated and produces lower-fidelity results at higher credit cost. This skill locks in the model selection (Nano Banana Pro for images, Gemini Omni Video for clips), the safety-filter avoidance, the CDN UA, and the failure-recovery loop so every run starts from a known-good baseline.\n",{"name":5,"metadata":44,"description":7},{"author":12,"version":45},"1.0.0","main","b198d63224f1ecec8bca1300fb21dfa996c853db","plugins\u002Fmarketing\u002Fskills\u002Fkie-gemini-omni",5,"https:\u002F\u002Fgithub.com\u002Fanton-abyzov\u002Fvskill","https:\u002F\u002Fverified-skill.com","https:\u002F\u002Fgithub.com\u002Fanton-abyzov","https:\u002F\u002Fspecwithcode.com","Founder of SpecWithCode · Creator of SpecWeave · AI coding agents, Cloud, DevOps · 20 yrs SWE · YouTube: @AntonAbyzov","2026-11-13 06:33:58",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add anton-abyzov\u002Fvskill --skill kie-gemini-omni",{"tool":62,"command":63},"bunx","bunx skills add anton-abyzov\u002Fvskill --skill kie-gemini-omni",{"tool":65,"command":66},"pnpm","pnpm dlx skills add anton-abyzov\u002Fvskill --skill kie-gemini-omni","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fanton-abyzov\u002Fvskill\u002Fblob\u002Fmain\u002Fplugins\u002Fmarketing\u002Fskills\u002Fkie-gemini-omni\u002FSKILL.md",true,[],[71,98,114,134,159,184],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":39},"01M6HKP9JT8CH33W7DJB544DCS","x-reply-drafts","Find live X threads where a product genuinely fits, and draft truthful, humanized replies for the owner to review and post by hand. Human pace only: max 5 replies a day, never two within 20 minutes, no automated posting. Use when the user asks to 'find threads to reply to', 'draft X replies', 'reply-guy session', 'join trending conversations', 'engage on Twitter about \u003Cproduct>', or wants a daily batch of reply drafts. Not for scheduling original posts (social-media-posting) or bulk publishing (blotato).","https:\u002F\u002Fgithub.com\u002Fanton-abyzov\u002Fvskill\u002Fblob\u002Fmain\u002Fplugins\u002Fmarketing\u002Fskills\u002Fx-reply-drafts\u002FSKILL.md",[],[78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],"reply","drafts","x reply drafts","review","product","batch","Media","unslop","never","only","humanize","social","human","join","trending","bulk","posts","threads","conversations","hand",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":39},"01M6CND903Q6E6R2XDWMFH8MAY","hello-world","A tiny test skill used by the 0853 verify-runtime harness. Says hello. No external calls. Use when the user asks for a sanity-check skill in a verify-harness fixture.","https:\u002F\u002Fgithub.com\u002Fanton-abyzov\u002Fvskill\u002Fblob\u002Fmain\u002Ftest\u002Fverify\u002Ffixtures\u002Ftiny-skill-source\u002Fplugins\u002Ftiny-test-plugin\u002Fskills\u002Fhello-world\u002FSKILL.md",[],[105,106,107,108,109,31,110,111,112,113],"hello world","hello","world","test","Test Skill","verify","check","user","use",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":39},"01M6CND60H0N1CYEB6ABEW18NS","existing-skill","Lint markdown files for style and grammar issues.","https:\u002F\u002Fgithub.com\u002Fanton-abyzov\u002Fvskill\u002Fblob\u002Fmain\u002Fsrc\u002Fcommands\u002F__tests__\u002Ffixtures\u002Fexisting-skill\u002FSKILL.md",[],[121,122,123,124,125,126,127,128,129,130,131,132,133],"existing skill","docs","lint","code","issues","markdown","grammar","read","write","edit","cursor","files","lint markdown files",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":39},"01M6CND1JAW97FY3W50MAPNKX7","remotion-best-practices","Best practices for Remotion video creation in React — scaffolding, compositions, animations, transitions — PLUS hard-won rules for high-fidelity product-demo videos: real logos\u002Ficons, precise YouTube-reference matching, full-screen camera zooms, click-targets that actually hit, content-tight rectangle highlights, voiceover regeneration discipline, audio-level normalization (no double-boost), per-scene voice-sync math, Studio detail-page mirror patterns, bold-not-subtle connection lines, and the YouTube publication kit (chapters, description, thumbnail, hashtags) that turns a render into a shipped video.","https:\u002F\u002Fgithub.com\u002Fanton-abyzov\u002Fvskill\u002Fblob\u002Fmain\u002Fskills\u002Fremotion-best-practices\u002FSKILL.md",[],[141,142,143,144,145,82,146,33,147,148,149,150,151,152,153,154,155,156,157,158],"best practices","remotion best practices","Remotion","react","sync","normalization","Animation","Composition","Audio","page","math","discipline","publishing","camera","youtube","voiceover","patterns","remotion, video, react, animation, composition",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":39},"01M6CNCXMSB1MKQ7646AR12VXY","rea","Find out exactly how a feature is implemented in a shipped tool or app you don't have the source for (desktop apps, Electron apps like Claude desktop, native CLIs like Codex, websites, APKs, .NET assemblies) using REA - Reverse Engineer Anything (github.com\u002Fmorluto\u002Frea). Sets REA up when it is missing (CLI, MCP registration, Hopper or Ghidra), routes the target to the right REA tool, keeps evidence out of the context window, and turns findings into a clean-room spec before any rebuild. Use when the user says 'use REA', 'reverse engineer', 'how does \u003Capp> do X', 'how is this feature implemented in \u003Ctool>', 'clone this feature', 'decompile', 'look inside the app', or asks how a closed-source competitor works. Skip it when the source is available - read the repo instead.","https:\u002F\u002Fgithub.com\u002Fanton-abyzov\u002Fvskill\u002Fblob\u002Fmain\u002Fskills\u002Frea\u002FSKILL.md",[],[161,166,167,168,169,170,171,172,173,174,128,175,176,177,178,179,180,181,182,183],"MCP","cli","reverse-engineering","ghidra","binary-analysis","analysis","how","reverse engineer anything","repo","context","evidence","up","engineer","rebuild","clean","registration","do","reverse engineer",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":39},"01M6CNCSE0847Q1FP1GRQ75SR9","motion-graphics-promo","After Effects-style motion graphics for short product promos (15-45 s, vertical or landscape), built as code with HyperFrames + GSAP. Covers a story-first brief, motion grammar (energetic entry, one transition per task, spring settle, 2-3 s of stable proof), a 32-second promo timeline, device-frame and kinetic-type recipes, vertical-first composition, evidence rules (real UI only, no fake clicks), music licensing and encoded-frame verification. Use when the user asks for an After Effects-like animation, motion graphics, a kinetic-type promo, an app promo video, a product teaser, a Reels\u002FTikTok\u002FShorts ad, or 'animations like After Effects'. Also covers short explainers, tutorials and 15-second vertical ads: a design kit (footage beds, condensed caps in a marker box, white device frames, falling stickers, voice-over with music ducking) and HyperFrames render traps that silently break output. Pairs with hyperframes-best-practices (screencast pipeline) and remotion-best-practices.","https:\u002F\u002Fgithub.com\u002Fanton-abyzov\u002Fvskill\u002Fblob\u002Fmain\u002Fskills\u002Fmotion-graphics-promo\u002FSKILL.md",[],[191,192,193,194,195,124,196,82,197,198,199,33,147,143,148,200,127,28,87,201],"graphics","motion graphics","motion","motion graphics promo","design","verification","ui","brief","pipeline","ads","tiktok"]