# Codex CLI 0.168.0 adds opt-in animated GIF generation for image tasks

> Codex CLI 0.168.0 lets users enable features.image_generation_animation to generate or edit animated GIFs with frame count and timing controls.

- Status: official (From the company, authors or authority themselves, with a link to their own page.)
- Topic: Products
- Published: 2026-11-13T03:56:26+00:00
- Updated: 2026-11-13T04:09:11.611855+00:00
- Web page: https://ai-news.ikangai.com/story/codex-cli-0-168-0-adds-opt-in-animated-gif-generation-for-image-tasks/
- Seen in: Codex CLI releases
- Change: capability (New capability)
- Applies to: Codex CLI 0.168.0, features.image_generation_animation

## What changed

Codex CLI 0.168.0 adds opt-in generation and editing of animated GIFs from image tasks, with optional frame_count and frame_duration_ms controls.

Codex CLI 0.168.0 adds an opt-in ability to generate or edit animated GIFs from image tasks. It stays off until a user sets features.image_generation_animation in their configuration. The release notes describe the feature in one line: it generates or edits animated GIFs "with optional frame count and timing controls." The merged pull request behind it, #59073, fills in the details.

The gate comes first. The pull request says GIF output sits behind features.image_generation_animation, which is disabled by default. Once enabled, the image generation and editing paths accept a gif option. Its controls are frame_count and frame_duration_ms, both optional. Passing an empty gif object, written as gif: {}, tells the service to use its own defaults. The release notes' phrase "timing controls" appears to correspond to frame_duration_ms, which takes a duration in milliseconds. The pull request does not say what range of values is accepted.

The more interesting design choice concerns what the model sees. According to the pull request, animated output is saved with a .gif filename and returned as an image/gif data URL, while a still preview is supplied to the model. The pull request does not give the author's reason for this. The arrangement means the model reasons over a single frame when it replays earlier turns, and the full animation exists as saved bytes on disk. The pull request also adds guidance for simple animations and for spritesheet-based GIF edits.

The testing claims are limited to integration coverage. The pull request lists tests for GIF generation and editing, explicit frame controls versus API defaults, saved animation bytes, and still-preview replay across follow-up turns. It does not include a demonstration output, a file size comparison, or any measure of how long generation takes with frame controls set.

The changelog entry for the feature is attributed to Gan-Tu. The pull request was merged by copyberry[bot] on November 3, 2026, and the release was tagged on 13 November. The pull request was a copy from an internal branch. The bot's commit message identifies this through a GitOrigin-RevId field, so the change reached the public repository through an automated sync rather than a conventional contributor branch.

## Why it matters

Teams building image workflows on Codex get animated output as an experimental option, though the release notes do not describe its quality or limits.

## What you can do

Product teams that need animated assets can test the flag on sample prompts before depending on it in production.

## Original source

- [Release 0.168.0 · openai/codex · GitHub](https://github.com/openai/codex/releases/tag/rust-v0.168.0)
- [Add optional animated GIF output to image generation by copyberry(bot) · Pull Request #59073 · openai/codex · GitHub](https://github.com/openai/codex/pull/59073)

---

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it.

Cite as: IKANGAI AI News, "Codex CLI 0.168.0 adds opt-in animated GIF generation for image tasks", 2026-11-13, https://ai-news.ikangai.com/story/codex-cli-0-168-0-adds-opt-in-animated-gif-generation-for-image-tasks/
