/varg:gpt-image-giffrom varg
Creates looping animated GIFs from still images, mascots, logos, or text prompts using GPT Image 2.6 on varg. Covers sprite-sheet pixel budgets, frame sizing, approve-a-still workflow, loop-lock prompts, transparent backgrounds, and failure modes.
Ships in varg. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
GPT Image 2.6 returns a real animated GIF when you set output_format: "gif". It draws all frames as
one sprite sheet, then cuts the sheet into frames
(@op7418 on ChatGPT; the API errors below show the
same sheet). That one fact explains most of what follows: the frames share one image's pixel budget,
and one image's price. Model guide and prices: gpt-image-2-6.
Examples made on varg with gpt_image_2_6 (2026-11-04/05):
| Example | Made from | Settings |
|---|---|---|
| Paper boat on a night sea | a prompt only | 9 frames, default 4:3 (1024×768), 150 ms |
| Mascot "Pip" waves and hops | the approved still in files | 9 frames of 768×768, 140 ms |
| Sticker "LOL" | the same still | 6 frames of 768×768, 160 ms, transparent |
| Failure: "ON MY WAY!" | the same still | three words garbled from frame to frame |
| Ball bounce, 12 frames | a prompt only | 12 frames of 768×768, quality: low, 3 credits, default 200 ms |
Frame times are read from the files.
image_size (or the aspect_ratio preset) sets the size of each frame. fal lays the frames out
on a grid and checks the whole sheet:
Which grids fal tries, read from its error messages (we sent oversize requests, which fail for free):
| Frames | Grids fal tries | Measured |
|---|---|---|
| 2-8 | 4×2 or 2×4 (eight cells, even for 2 frames) | 2, 4, 6, 8 |
| 9 | 3×3 | 9 |
| 12 | 4×3, 3×4 or 4×4 | 12 |
| 16 | 4×4 | 16 |
| 10, 11, 13-15 | not measured |
So a square frame can be at most 960 px for 2-9 frames (four or three cells across 3840 px), 816 px for 12 and 720 px for 16. 9 frames of 960² and 16 frames of 720² both worked: their sheets are exactly 8,294,400 px, so the limit includes the boundary. What fits:
| Frames | Largest square frame | Worked (measured) | Rejected (measured) | 4:3 preset (1024×768) | 16:9 preset | 1:1 preset (1024×1024) |
|---|---|---|---|---|---|---|
| 2 | 960 (computed) | — | 2048² | fits (2×4 grid, computed) | fits (computed) | no (4096 px sheet, computed) |
| 4 | 960 (computed) | — | 2048² | fits (computed) | fits (computed) | no (computed) |
| 6 | 960 (computed) | 768² | 1024² | fits (computed) | fits (computed) | no |
| 9 | 960 (measured) | 960², 768², 1024×768, 512² (@KakiponzuX) | 1024², 256² (@KakiponzuX) | fits | fits (computed) | no |
| 12 | 816 (computed) | 768² | 1024² | no (computed) | fits (3×4 grid, computed) | no |
| 16 | 720 (measured) | 720² | 976×528 (sheet 3904 px wide) | no (computed) | no (computed) | no (computed) |
"Computed" follows from the rules above; we did not run it. Safe defaults: image_size: {"width": 768, "height": 768} for 2-12 frames, 720×720 or smaller for 16, or the default 4:3 preset for up to 9
frames. num_images above 1 splits the same budget across all outputs (fal).
The error text names the sheet it tried, e.g. No supported sheet fits 6 GIF frames at size '1024x1024'. Invalid size '4096x2048'. The longest edge must be less than or equal to 3840. Divide the
sheet by the frame size to see the grid, then shrink the frame.
background: "transparent", PNG). Approve it before any GIF: when the GIF is made from
the same still every time, the character and colours drift less
(@yyf940515: without a saved reference, faces
and colours drift after 5-6 GIFs). 6 credits.create_upload on the MCP, or POST /v2/files), so you have an https://s3.varg.ai/…
URL. The upload tools list PNG, JPEG and WebP for images, not GIF.files, output_format: "gif", a
frame count and a size from the table, the motion prompt (section 3). 6-7 credits.magick in.gif -coalesce +append strip.png puts them side
by side. Look for a changing face, moving text, a boiling background and a jump from the last frame
to the first.scripts/gif2web.sh in.gif (section 6).The call (MCP):
call_tool({
"tool": "image",
"input": {
"model": "gpt_image_2_6",
"prompt": "Animate the character from the reference image. Motion: Pip waves its right paw twice, then does one small hop. 9 frames. The first and last frame show the same resting pose, so the loop has no jump. Same size, position and ground line in every frame; fixed camera, no zoom. Plain white background that stays the same in every frame. Flat colours, no text.",
"files": [{"url": "https://s3.varg.ai/files/194b94d0-58ff-4e8b-91de-4f1959d04013/file_5ed17708b8d2.png"}],
"provider_options": {"fal": {
"output_format": "gif",
"frame_count": 9,
"image_size": {"width": 768, "height": 768},
"frame_duration_ms": 140,
"quality": "high"
}}
},
"wait": true
})
Over REST the same input goes to POST https://api.varg.ai/v2/image (see gpt-image-2-6
section 6). Text only (no files) works the same way on the text-to-image route.
OpenAI's advice: "Start with the artwork and describe the motion you want. Try a wave, a double take, or a victory dance that loops back to the starting pose" (@OpenAIDevs).
Template:
Animate the [character / logo / object] from the reference image.
Motion: [ONE simple action: waves twice / blinks and sways / bounces once / turns its head and back].
[N] frames.
The first and last frame show the same resting pose, so the loop has no jump.
Same size, position and ground line in every frame; fixed camera, no zoom, no camera move.
[Plain white | transparent] background that stays the same in every frame.
Flat colours, no gradients, no text.
The loop-lock lines come from people who measured the difference: writing "loop first/last frame identical + lock character proportions" into the prompt made API GIFs much better for @freeman1266; @goan999999 asks for "固定人物大小和位置" (keep the figure's size and position fixed) and "最后一帧能接回第一帧" (the last frame can join back to the first) (prompt).
Short motions people liked:
reasoning_effort matters more for motion than for stills: at low complexity Flare skipped the rotation
frames of a backflip; high was smoother (@gabrielchua,
an OpenAI engineer). Use reasoning_effort: "high" for GIFs.
frame_duration_ms: 20-2000, "rounded to 10 ms" (fal). Default 200 ms (measured: our 12-frame GIF
without it played at 200 ms). Loop length = frames × duration: 9 × 200 ms = 1.8 s. 120-160 ms reads
as lively, 200 ms as calm. A GIF's frame delay is stored in 1/100 s, so use multiples of 10 ms.background: "transparent" works: our sticker GIFs came back with 54-62% transparent pixels. GIF
has 1-bit alpha, so edges are hard; on dark chats a white fringe can show. If you need soft edges,
make a PNG sprite sheet instead and assemble it yourself (gpt-image-sprite-sheet).| What you see | Fix |
|---|---|
| A sentence in the frames garbles ("ON MY WAY!" broke; "LOL" and "THANKS!" held; measured) | One short word per GIF, or no text in the GIF and add the caption later |
| A still image with motion lines instead of an animation (ChatGPT, @goan999999) | In the API, output_format: "gif" always returns frames; in ChatGPT ask for the frames first |
| Fast or complex motion is wrong: a 360 kickflip (@justynclark), a backflip at low effort (@gabrielchua) | One slow action; reasoning_effort: "high"; for real action use a video model |
| Choppy motion, few in-between poses (@798145343h; our boat and wave GIFs) | Smaller motion over the same frame count; or accept it as a sticker look |
| The background boils, clouds and feathers change every frame (@pigeon__s) | Plain or transparent background, "stays the same in every frame" |
| Still and moving parts in one GIF break (@AM09_21) | Animate one subject; for games make each sprite separately |
| An illustration turns into a grainy stock-photo GIF (@goaimode) | Attach the approved still in files and name the style |
| Pixel art fails (@Angaisb_) | Flat cartoon frames, pixelate afterwards |
| A dance prompt blocked by output moderation (@KakiponzuX) | Reword the motion; a wave passed |
No supported sheet fits N GIF frames | Smaller image_size or fewer frames (section 1) |
GIF frames exceed the total request pixel budget | frames × frame area is over 8,294,400 px: shrink the frames |
A GIF is the biggest way to ship an animation. scripts/gif2web.sh writes an animated WebP (keeps
transparency and frame times) and an H.264 MP4 (the loop played N times, alpha flattened onto a
colour), then prints a size report.
bash scripts/gif2web.sh pip_wave.gif # -> pip_wave.webp + pip_wave.mp4 next to it
bash scripts/gif2web.sh lol.gif out/ --loops 1 --bg 0x1E1E1E --quality 70
Tested 2026-11-05 on our examples (gif2webp for the WebP, --loops 3, crf 23):
| GIF | GIF size | WebP | MP4 (3 loops) |
|---|---|---|---|
| boat, 9 × 1024×768 | 885 KB | 214 KB (24%) | 415 KB (47%) |
| mascot wave, 9 × 768² | 841 KB | 266 KB (32%) | 467 KB (55%) |
| sticker LOL, 6 × 768², transparent | 433 KB | 167 KB (39%) | 288 KB (66%); 98 KB for 1 loop |
@joseamijares measured WebP at 80-91% smaller than the GIF; ours came out 61-76% smaller at quality 80. Use the WebP on web pages, the MP4 for social posts and video editors, and keep the GIF for chats and tools that only take GIF.
The model's GIFs carry a C2PA content-credentials block (checked 2026-11-05); the WebP and MP4 do not. Keep the original if you need the provenance.
2026-11-05 on varg: the grid and budget errors in section 1 (free failed requests for 2, 4, 6, 8, 9, 12
and 16 frames), three GIFs at quality: low for 3 credits each (12 × 768², 16 × 720², 9 × 960²), the
default 200 ms frame time, and gif2web.sh on the boat, mascot and sticker GIFs (both the gif2webp and
the ImageMagick path).
gpt-image-2-6 (model guide, prices), gpt-image-sticker-pack (one GIF per emotion, exported for six messengers), gpt-image-sprite-sheet (PNG sheets you slice yourself), gpt-image-markup-edit (fix the still before you animate it).
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.73: Invalid string: must start with "./", skills.74: Invalid string: must start with "./", skills.75: Invalid string: must start with "./", skills.76: Invalid string: must start with "./", skills.77: Invalid string: must start with "./"
.claude-plugin/plugin.json: skills.73: Invalid string: must start with "./", skills.74: Invalid string: must start with "./", skills.75: Invalid string: must start with "./", skills.76: Invalid string: must start with "./", skills.77: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
83 skills in this plugin
/ad-creative-testingTurn one winning ad into a creative testing plan for TikTok and Meta. Decodes why an ad won (hook, argument, buyer, format), plans concepts that Meta's Andromeda and TikTok treat as genuinely different (buyer × angle × format × first frame, not caption swaps), sets how many creatives to launch, the budget per test and when to judge, writes file and ad names that make results readable, reads hook rate, hold rate, CTR and CPA to find which part failed, and says when to kill, iterate or scale. Use when someone asks how many ads to test, how to make ad variants, why their variants all perform the same, whether an ad is fatigued, when to kill an ad, or how to scale a winner. NOT for producing the videos (use ecommerce-video-ads, ecommerce-video-edit or product-video-hooks) or for media-buying account setup./ai-ad-compliance-checkTurns an AI video ad into a compliance report for TikTok Shop, TikTok ads, Meta, YouTube, the FTC, New York's synthetic-performer law and the EU AI Act before it runs: varg video_analyze pulls every shot, spoken and on-screen claim and person, each claim is matched to the seller's evidence, the visuals are checked against TikTok Shop's AI product rules (no fake effects, before/after, changed quantity or size), people and voices against the FTC fake-testimonial rule, and the result is a pass / fix / block list with the rule, source and date, a rewrite for each fix, and the AI labels to set on each platform. Use when someone asks "is this ad allowed", "will TikTok Shop reject this", "check my AI ad for compliance", "do I need an AI label", "can an AI avatar say it used the product", or before publishing AI product ads, UGC or testimonials. Not legal advice, and not for writing the ad (use ecommerce-video-ads or tiktok-shop-video)./ai-parody-videoPlan and make a short AI parody video: a known movie scene, TV format or news shot with one wrong element, 10 to 45 seconds, built to be shared. Gives the joke structure, six formats measured on clips with 60 thousand to 9 million views (scene recast with new dialogue, original-vs-remake, one-prompt sitcom sketch, fake live news shot, character monologue, silent slapstick), which production route each one takes, prompt templates for the sketch and the news shot, subtitle and caption rules, and a plain list of what is allowed with real people, known characters, studio footage and cloned voices, with platform AI labels. Use when someone asks for a parody, spoof, meme video, movie mashup, crossover, "X in the world of Y", a celebrity or politician comedy clip, a fake trailer, or wants videos like the viral AI parodies on X, TikTok or Shorts. Then use scene-recast-video for remakes of an existing clip and multi-angle-monologue for speeches./ai-ugc-ad-videoOpen-source alternative to Arcads: AI UGC ads with an AI actor holding your real product. Casts a creator whose age matches the claim in the room where the problem happens, writes a phone-real script (a yapper, unboxing, street interview or in-car take) with every line in the prompt, locks the face, the voice and the product label across shots, prompts camera flaws and breaths so it doesn't look waxy, generates on Seedance 2.5, Kling 4 or Creatify through varg, and labels it. It never puts a first-person testimonial or result in an AI mouth (FTC rule) and never targets TikTok Shop presenters (AI voices banned there). Use when someone wants AI UGC ads, an AI creator or actor talking about their product, Arcads/Creatify/MakeUGC-style ads, or UGC without hiring creators. NOT for TikTok Shop affiliate videos (use tiktok-shop-video), product-only shots with no person (use product-photo-to-video), or the same characters across a multi-scene story (use varg-consistent-characters)./app-ui-mockupsTen animated UI mockups for product, launch and dev-tool videos, rebuilt as HTML instead of screen recordings: phone message thread, team chat channel, coding-agent terminal session, terminal command run, desktop terminal window, desktop notification banner, code editor walkthrough, 3D code slab, exploded UI panels and an amber CRT console. Presets give typing speed (12-20 characters per second with seeded gaps), reading holds from character count, entrance easing and scale, camera lead before each action, text size as a share of frame height, and theme colors from MIT theme sources, from Charm VHS, Screen Studio, Emil Kowalski, Apple HIG and Netflix timing rules. Use when someone wants a fake text or Slack conversation, a terminal or Claude Code demo, a code walkthrough or an exploded UI shot in a video. NOT for recording a real screen or for real people's messages presented as genuine./blender-code-filmMake a short 3D film in Blender written entirely in Python by an agent (Claude Fable 5.2, Claude Code, Codex): the shots and the look as data, a world built from code (procedural terrain, hundreds of instanced props, node materials, lights, haze), one camera per shot bound to timeline markers, a stills-first approval pass, a quarter-size draft, a contact-sheet audit, a fresh critic subagent, then the final render to PNG frames and an ffmpeg encode with an optional varg music bed. Includes a tested starter (scripts/film.py, a 9 s three-shot film) and the Blender 5.x traps that turn frames black. Use when someone asks for a Blender animation or film made with code or Python, "make a video in Blender with Claude", a 3D short, music video, toy commercial or product film rendered in Blender, a low-poly or storybook 3D film, or a remake of a viral Fable 5.2 Blender video. Not for previz that feeds Seedance (code-to-video-previz, varg-previz), three.js films in the browser (karpathy-3d-story, code-3d-explainer), recording a browser game (code-game-trailer), 2D motion graphics (hyperframes, kinetic-type-art) or AI-generated footage (varg-ai).Other plugins' skills for the same job