diff --git a/CLAUDE.md b/CLAUDE.md index 55f0728..97e947b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -163,7 +163,7 @@ OpenRouter delisted it. For OpenRouter models, `openrouter.ai/api/v1/models` is authoritative for availability as well as price; a pricing page keeps quoting a rate after the endpoints are gone. -Image generation via OpenAI (gpt-image-2.5-flare, gpt-image-2.5-sunburst, gpt-image-2), xAI (grok-2-image, grok-imagine-image-2.0), ByteDance +Image generation via OpenAI (gpt-image-2.6-flare, gpt-image-2.6-sunburst, gpt-image-2.5-flare, gpt-image-2.5-sunburst, gpt-image-2), xAI (grok-2-image, grok-imagine-image-2.0), ByteDance (seedream-4.0, seedream-5.0-lite, seedance-4.5, seedance-5.0), and Z.ai (glm-image) is served through a provider `/images/generations` endpoint rather than the chat path (see `image_generation.py`), but is surfaced on `/v1/chat/completions` exactly like diff --git a/README.md b/README.md index d05ac62..8415da8 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ The gateway solves this by running inside a hardware-isolated Nitro Enclave wher | NEAR AI | deepseek-v4.1-flash-abliterated | Image generation: krea-3 and qwen-image-3.0-pro (via WaveSpeed), gpt-image-2, -gpt-image-2.5-flare, gpt-image-2.5-sunburst, gemini-2.5-flash-image, +gpt-image-2.6-flare, gpt-image-2.6-sunburst, gpt-image-2.5-flare, gpt-image-2.5-sunburst, gemini-2.5-flash-image, gemini-nano-banana-2.1, gemini-3.1-flash-image, grok-2-image, grok-imagine-image-2.0, seedream-4.0, seedream-5.0-lite, seedance-4.5, seedance-5.0, glm-image. diff --git a/tee_gateway/model_registry.py b/tee_gateway/model_registry.py index 65b69ab..b6cad30 100644 --- a/tee_gateway/model_registry.py +++ b/tee_gateway/model_registry.py @@ -544,6 +544,38 @@ class SupportedModel(Enum): image_aspect_ratios=_GPT_IMAGE_ASPECT_SIZES, image_aspect_ratio_param="size", ) + # GPT-Image-2.6 Sunburst — successor to 2.5 Sunburst (OpenAI model page: text $5/$1.25 cached, + # image in $8/$2 cached, image out $30 per MTok — same as 2.5, so same flat per-image + # approximation). Only /images/generations + /images/edits. + GPT_IMAGE_2_6_SUNBURST = ModelConfig( + provider="openai", + api_name="gpt-image-2.6-sunburst", + input_price_usd=Decimal("0"), + output_price_usd=Decimal("0"), + image_generation=True, + per_image_price_usd=Decimal("0.05"), + image_response_format=None, + image_supports_reference=True, + image_edit_endpoint="/images/edits", + image_extra_params={"quality": "medium"}, + image_aspect_ratios=_GPT_IMAGE_ASPECT_SIZES, + image_aspect_ratio_param="size", + ) + # GPT-Image-2.6 Flare — successor to 2.5 Flare; same endpoints, token rates and request shaping. + GPT_IMAGE_2_6_FLARE = ModelConfig( + provider="openai", + api_name="gpt-image-2.6-flare", + input_price_usd=Decimal("0"), + output_price_usd=Decimal("0"), + image_generation=True, + per_image_price_usd=Decimal("0.05"), + image_response_format=None, + image_supports_reference=True, + image_edit_endpoint="/images/edits", + image_extra_params={"quality": "medium"}, + image_aspect_ratios=_GPT_IMAGE_ASPECT_SIZES, + image_aspect_ratio_param="size", + ) # GPT-Image-2.5 Flare — OpenAI's fastest model for high-quality, everyday # image generation (GA 2026-09-08), positioned as the general-purpose # successor to gpt-image-2 (50% lower latency, better reference-photo @@ -1377,6 +1409,9 @@ class SupportedModel(Enum): "gpt-6-sol": SupportedModel.GPT_6_SOL, "gpt-6-luna": SupportedModel.GPT_6_LUNA, "gpt-image-2": SupportedModel.GPT_IMAGE_2, + "gpt-image-2.6": SupportedModel.GPT_IMAGE_2_6_FLARE, + "gpt-image-2.6-flare": SupportedModel.GPT_IMAGE_2_6_FLARE, + "gpt-image-2.6-sunburst": SupportedModel.GPT_IMAGE_2_6_SUNBURST, "gpt-image-2.5": SupportedModel.GPT_IMAGE_2_5_FLARE, "gpt-image-2.5-flare": SupportedModel.GPT_IMAGE_2_5_FLARE, "gpt-image-2.5-flare-2026-09-08": SupportedModel.GPT_IMAGE_2_5_FLARE, diff --git a/tests/test_pricing.py b/tests/test_pricing.py index e26ce23..ecbb9f5 100644 --- a/tests/test_pricing.py +++ b/tests/test_pricing.py @@ -338,6 +338,21 @@ def test_gpt_6_luna_resolves(self): self.assertTrue(cfg.responses_api_for_tools) self.assertFalse(cfg.supports_temperature) + def test_gpt_image_2_6_flare_resolves(self): + cfg = get_model_config("gpt-image-2.6-flare") + self.assertEqual(cfg.provider, "openai") + self.assertEqual(cfg.api_name, "gpt-image-2.6-flare") + self.assertTrue(cfg.image_generation) + self.assertEqual(cfg.per_image_price_usd, Decimal("0.05")) + self.assertEqual(get_model_config("gpt-image-2.6"), cfg) + + def test_gpt_image_2_6_sunburst_resolves(self): + cfg = get_model_config("gpt-image-2.6-sunburst") + self.assertEqual(cfg.provider, "openai") + self.assertEqual(cfg.api_name, "gpt-image-2.6-sunburst") + self.assertTrue(cfg.image_generation) + self.assertEqual(cfg.per_image_price_usd, Decimal("0.05")) + def test_gpt_image_2_5_flare_resolves(self): cfg = get_model_config("gpt-image-2.5-flare") self.assertEqual(cfg.provider, "openai")