feat: add cost and rendering support for gpt-image-1 and gpt-image-1.5#5536
feat: add cost and rendering support for gpt-image-1 and gpt-image-1.5#5536
Conversation
chitalian
commented
Jan 21, 2026
- Add mapper type detection for gpt-image-1* models to render as openai-image type
- Add cost configuration for gpt-image-1 and gpt-image-1.5 models
- Set ptbEnabled: false for both image models as requested
- Pricing: gpt-image-1.5 at $5/1M input, $10/1M output
- Pricing: gpt-image-1 at $6.25/1M input, $12.50/1M output
- Add mapper type detection for gpt-image-1* models to render as openai-image type - Add cost configuration for gpt-image-1 and gpt-image-1.5 models - Set ptbEnabled: false for both image models as requested - Pricing: gpt-image-1.5 at $5/1M input, $10/1M output - Pricing: gpt-image-1 at $6.25/1M input, $12.50/1M output
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Claude finished @chitalian's task —— View job PR Review - GPT Image Model SupportTodo List:
Score: 7/10 - Minor improvements suggested, generally ready to mergeAnalysis SummaryThis PR adds support for OpenAI's new gpt-image-1 and gpt-image-1.5 models, implementing cost tracking and proper mapper type detection. The implementation follows existing patterns well. Issues Found:1. Pricing Inconsistency (Minor)The snapshot test shows only gpt-image-1.5 pricing, but both models are defined: In
In Recommendation: The snapshot should include both models' pricing or be regenerated to reflect the actual implementation. 2. Missing Context Information (Minor)The models have identical specs except pricing:
Question: Are these the correct specifications for image generation models? Image models typically have different context/token limitations than chat models. 3. Model Creation Dates (Minor)In
Recommendation: Verify these are the actual release dates from OpenAI. Positive Aspects:✅ Proper Architecture: Follows the established pattern with separate Code Quality:
Suggestions:
Security/Performance:
Ready to merge with minor snapshot validation recommended. |
Add snapshot entries for gpt-image-1 and gpt-image-1.5 models: - endpoint configurations - model coverage - pricing - modelToProviders - update totalEndpoints/totalModelProviderConfigs to 290 - update openai modelCount to 31