Repository navigation
feat: add GPT Image 2.6, key-aware media schemas and model updates - #436
Merged
Merged
Conversation
Add GPT Image 2.6 Sunburst and Flare on OpenAI and OpenRouter, with complexity, SVG and GIF output, and markup-guided edits. Build the generateImage, generateVideo, generateAudio and executePrompts schemas from the model catalogs, filtered to providers with a key, so an agent only reads rules it can use. Check per-model aspect ratios before a request and drop numberOfImages, which no adapter honoured. Remove models past or near shutdown, mapping saved speech and realtime selections to their successors. Pin ElevenLabs music and sound effects to current models instead of deprecated API defaults. Add new image, video and chat models and refresh prices from provider listings. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Started as adding GPT Image 2.6 and grew into three connected changes. They touch the same catalogs and files, so they ship together.
GPT Image 2.6
complexitysetting on both. On OpenAI direct only: SVG and GIF output throughoutputFormat, and markup-guided edits throughmarkupImage. OpenRouter refused SVG and GIF when tested.Schemas follow the keys you have
generateImage,generateVideo,generateAudioand image requests inexecutePromptsnow build their parameters and limits from the catalogs, filtered to providers with a key that are switched on. With only OpenRouter, an agent never seesoutputFormatormarkupImage.numberOfImagesis gone from the schema, because no adapter ever made more than one image. JSON callers that still send it get a note saying it was ignored. The CLI form now gets an "Unknown flag" error.Model updates
gemini-3.1-flash-live-preview(Nov 17),gpt-realtime-mini(Jan 20),minimax-m2.7(expired),mimo-v2-omni,mimo-v2-pro,gpt-5.1-codex*,gpt-5.2-codex, Groq'sqwen3.6-27bandmistral-saba-latest. Saved speech and realtime selections move to their successors. A saved chat selection naming a removed model has no automatic mapping and needs re-picking.music_v2_5andeleven_text_to_sound_v3. They sent no model before, so they ran on defaults being removed in January and March. Voice gains v4, v4 Turbo, v3, v3 Conversational and Flash v2.5.2kin the video resolution type.gpt-6.1-terraon OpenAI, Codex and OpenRouter. On OpenRouter also Gemini 4 Argon, Kimi K3.1 Pro, DeepSeek V4.1 Flash, MiMo V2.6 and MiniMax M3.1 Flash.gpt-5.6-sol, the OpenAI default, was listed at $5/$30 and is now $4/$20.Bugs fixed along the way
tts-1andtts-1-hdoffered four voices their API rejects.generateImagefor OpenAI-only setups.generateAudio.Testing
npm run build,schemas:checkand the registry gate all pass.complexityreaching OpenAIgpt-6.1-terraon OpenAI, and all 8 new or corrected OpenRouter chat idstts-1andgpt-4o-mini-ttsNot tested live:
gpt-6.1-terraon Codex, which is confirmed only by Codex's model list.Worth checking in review
glm-5.2at $0.006 input andkimi-k3at $0.192 input.schemas/5.21.3/is regenerated in place, as the catalog protocol directs.Follow-up
OpenAI's TTS models shut down January 6, 2027, and their replacement needs a new transport. They stay for now, tracked in #435.
🤖 Generated with Claude Code