{"slug": "breaking-openai-value-can-now-return-gif-svg", "title": "OpenAI: value can now return \"gif\", \"svg\"", "summary": "OpenAI's published API specification now lists \"gif\" and \"svg\" as additional values for BetaImageOutputFormat, expanding the enum from \"jpeg\", \"png\" and \"webp\" to five values. The change reaches 6 operations through BetaImageOutputFormat and 14 OpenAI operations overall, and also applies to output_format fields on BetaImageGenTool, ImageGenTool, BetaImageGenToolCall, ImageGenToolCall, ImageOutputFormat and ImagesResponse. Because the addition breaks exhaustive switches, strict parsers and generated client enums that lack branches for the new values, code reading these objects must be updated.", "body_md": "## What changed\n\nProducer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.\n\nAffects this value on `BetaImageOutputFormat` reachable from 6 operations.\n\nNew values: `gif`, `svg`.\n\ncan now return \"gif\", \"svg\"\n\n## Who is affected\n\nCode that reads OpenAI's BetaImageOutputFormat objects, used by 14 OpenAI operations.\n\n## Before and after\n\n| Where | Before | After | \n|---|---|---|\n| BetaImageOutputFormat | \"jpeg\", \"png\", \"webp\" | \"gif\", \"jpeg\", \"png\", \"svg\", \"webp\" | \n| BetaImageGenTool.output_format | \"jpeg\", \"png\", \"webp\" | \"gif\", \"jpeg\", \"png\", \"svg\", \"webp\" | \n| ImageGenToolCall.output_format | \"jpeg\", \"png\", \"webp\" | \"gif\", \"jpeg\", \"png\", \"svg\", \"webp\" | \n| BetaImageGenToolCall.output_format | \"jpeg\", \"png\", \"webp\" | \"gif\", \"jpeg\", \"png\", \"svg\", \"webp\" | \n| ImageGenTool.output_format | \"jpeg\", \"png\", \"webp\" | \"gif\", \"jpeg\", \"png\", \"svg\", \"webp\" | \n| ImageOutputFormat | \"jpeg\", \"png\", \"webp\" | \"gif\", \"jpeg\", \"png\", \"svg\", \"webp\" | \n| ImagesResponse.output_format | \"jpeg\", \"png\", \"webp\" | \"gif\", \"jpeg\", \"png\", \"svg\", \"webp\" | \n\n## Code that breaks\n\n```\nswitch (response) {\n  // existing branches …\n  // no branch for \"gif\"\n  // no branch for \"svg\"\n  default:\n    throw new Error(\"unexpected value\");\n}\n```\n\nBased on OpenAI’s published API specification. [How severity is decided](https://driftwatch.et/method).", "url": "https://wpnews.pro/news/breaking-openai-value-can-now-return-gif-svg", "canonical_source": "https://driftwatch.et/changes/openai-2026-11-05-c283d743", "published_at": "2026-11-05 01:32:39+00:00", "updated_at": "2026-11-05 07:20:04.516320+00:00", "lang": "en", "topics": ["ai-products", "developer-tools", "artificial-intelligence"], "entities": ["OpenAI", "BetaImageOutputFormat", "BetaImageGenTool", "ImageGenTool", "BetaImageGenToolCall", "ImageGenToolCall", "ImageOutputFormat", "ImagesResponse"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/breaking-openai-value-can-now-return-gif-svg", "markdown": "https://wpnews.pro/news/breaking-openai-value-can-now-return-gif-svg.md", "text": "https://wpnews.pro/news/breaking-openai-value-can-now-return-gif-svg.txt", "jsonld": "https://wpnews.pro/news/breaking-openai-value-can-now-return-gif-svg.jsonld"}}