Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat: add GPT-5.5 model support (#14147)

YuTengjingeec89338da3b
diff --git a/packages/model-bank/src/aiModels/lobehub/chat/openai.ts b/packages/model-bank/src/aiModels/lobehub/chat/openai.ts
index 62c8f9e3906..1e834404ce3 100644
--- a/packages/model-bank/src/aiModels/lobehub/chat/openai.ts
+++ b/packages/model-bank/src/aiModels/lobehub/chat/openai.ts
@@ -1,6 +1,58 @@
import type { AIChatModelCard } from '../../../types/aiModel';
export const openaiChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_050_000,
+ description:
+ "GPT-5.5 is OpenAI's latest frontier model for complex professional work, coding, and agentic tasks.",
+ displayName: 'GPT-5.5',
+ enabled: true,
+ id: 'gpt-5.5',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 5, upTo: 272_000 },
+ { rate: 10, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.5, upTo: 272_000 },
+ { rate: 1, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 30, upTo: 272_000 },
+ { rate: 45, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-04-23',
+ settings: {
+ extendParams: ['gpt5_2ReasoningEffort', 'textVerbosity'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/openai.ts b/packages/model-bank/src/aiModels/openai.ts
index 8464d14e659..eb41d4a673e 100644
--- a/packages/model-bank/src/aiModels/openai.ts
+++ b/packages/model-bank/src/aiModels/openai.ts
@@ -19,6 +19,68 @@ export const gptImage1ParamsSchema: ModelParamsSchema = {
};
export const openaiChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_050_000,
+ description:
+ 'GPT-5.5 is the frontier model for the most complex professional work, coding, and agentic tasks.',
+ displayName: 'GPT-5.5',
+ enabled: true,
+ id: 'gpt-5.5',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ {
+ lookup: {
+ prices: {
+ '[0, 0.272]': 5,
+ '[0.272, infinity]': 10,
+ },
+ pricingParams: ['textInput'],
+ },
+ name: 'textInput',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ {
+ lookup: {
+ prices: {
+ '[0, 0.272]': 0.5,
+ '[0.272, infinity]': 1,
+ },
+ pricingParams: ['textInput'],
+ },
+ name: 'textInput_cacheRead',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ {
+ lookup: {
+ prices: {
+ '[0, 0.272]': 30,
+ '[0.272, infinity]': 45,
+ },
+ pricingParams: ['textInput'],
+ },
+ name: 'textOutput',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-04-23',
+ settings: {
+ extendParams: ['gpt5_2ReasoningEffort', 'textVerbosity'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/modelProviders/lobehub.ts b/packages/model-bank/src/modelProviders/lobehub.ts
index 7685f5bf31b..2f134563799 100644
--- a/packages/model-bank/src/modelProviders/lobehub.ts
+++ b/packages/model-bank/src/modelProviders/lobehub.ts
@@ -22,6 +22,6 @@ export default LobeHub;
export const planCardModels = [
'claude-sonnet-4-6',
'gemini-3.1-pro-preview',
- 'gpt-5.4',
+ 'gpt-5.5',
'deepseek-v4-flash',
];
diff --git a/packages/model-runtime/src/const/models.ts b/packages/model-runtime/src/const/models.ts
index b5d2abefbcb..322f3d618c1 100644
--- a/packages/model-runtime/src/const/models.ts
+++ b/packages/model-runtime/src/const/models.ts
@@ -50,6 +50,7 @@ export const responsesAPIModels = new Set([
'gpt-5.4-mini',
'gpt-5.4-nano',
'gpt-5.4-pro',
+ 'gpt-5.5',
]);
/**
diff --git a/packages/model-runtime/src/providers/openai/index.test.ts b/packages/model-runtime/src/providers/openai/index.test.ts
index a03b6aac803..c9230b0cd41 100644
--- a/packages/model-runtime/src/providers/openai/index.test.ts
+++ b/packages/model-runtime/src/providers/openai/index.test.ts
@@ -273,6 +273,20 @@ describe('LobeOpenAI', () => {
expect(createCall.model).toBe('o1-pro');
});
+ it('should use responses API for gpt-5.5', async () => {
+ const payload = {
+ messages: [{ content: 'Hello', role: 'user' as const }],
+ model: 'gpt-5.5',
+ temperature: 0.7,
+ };
+
+ await instance.chat(payload);
+
+ expect(instance['client'].responses.create).toHaveBeenCalled();
+ const createCall = (instance['client'].responses.create as Mock).mock.calls[0][0];
+ expect(createCall.model).toBe('gpt-5.5');
+ });
+
it('should use responses API when enabledSearch is true', async () => {
const payload = {
enabledSearch: true,
diff --git a/packages/model-runtime/src/providers/openrouter/index.test.ts b/packages/model-runtime/src/providers/openrouter/index.test.ts
index 45a62d4eb89..63abb49e7d3 100644
--- a/packages/model-runtime/src/providers/openrouter/index.test.ts
+++ b/packages/model-runtime/src/providers/openrouter/index.test.ts
@@ -478,6 +478,16 @@ describe('LobeOpenRouterAI - custom features', () => {
describe('models mapping', () => {
it('should map extendParams for gpt-5.x reasoning and verbosity', async () => {
const mockModels = [
+ {
+ architecture: { input_modalities: ['text'] },
+ created: 1_700_000_000,
+ description: 'Test model',
+ id: 'openai/gpt-5.5',
+ name: 'openai/gpt-5.5',
+ pricing: { completion: '0.00001', prompt: '0.00001' },
+ supported_parameters: ['reasoning'],
+ top_provider: { context_length: 8192, max_completion_tokens: 1024 },
+ },
{
architecture: { input_modalities: ['text'] },
created: 1_700_000_000,
@@ -509,9 +519,13 @@ describe('LobeOpenRouterAI - custom features', () => {
);
const models = await params.models();
+ const gpt55 = models.find((m) => m.id === 'openai/gpt-5.5');
const gpt52 = models.find((m) => m.id === 'openai/gpt-5.2-mini');
const gpt51 = models.find((m) => m.id === 'openai/gpt-5.1-mini');
+ expect(gpt55?.settings?.extendParams).toEqual(
+ expect.arrayContaining(['gpt5_2ReasoningEffort', 'textVerbosity']),
+ );
expect(gpt52?.settings?.extendParams).toEqual(
expect.arrayContaining(['gpt5_2ReasoningEffort', 'textVerbosity']),
);
diff --git a/packages/model-runtime/src/providers/openrouter/index.ts b/packages/model-runtime/src/providers/openrouter/index.ts
index eea5cbb34a9..189676672e7 100644
--- a/packages/model-runtime/src/providers/openrouter/index.ts
+++ b/packages/model-runtime/src/providers/openrouter/index.ts
@@ -166,7 +166,12 @@ export const params = {
if (model.description && model.description.includes('`reasoning` `enabled`')) {
extendParams.push('enableReasoning');
}
- if (hasReasoning && (model.id.includes('gpt-5.2') || model.id.includes('gpt-5.4'))) {
+ if (
+ hasReasoning &&
+ (model.id.includes('gpt-5.2') ||
+ model.id.includes('gpt-5.4') ||
+ model.id.includes('gpt-5.5'))
+ ) {
extendParams.push('gpt5_2ReasoningEffort', 'textVerbosity');
} else if (hasReasoning && model.id.includes('gpt-5.1')) {
extendParams.push('gpt5_1ReasoningEffort', 'textVerbosity');
diff --git a/packages/model-runtime/src/providers/vercelaigateway/index.test.ts b/packages/model-runtime/src/providers/vercelaigateway/index.test.ts
index 7ada7e24632..5ce74a1daa5 100644
--- a/packages/model-runtime/src/providers/vercelaigateway/index.test.ts
+++ b/packages/model-runtime/src/providers/vercelaigateway/index.test.ts
@@ -248,6 +248,13 @@ describe('LobeVercelAIGatewayAI - custom features', () => {
it('should map extendParams for gpt-5.x reasoning models', async () => {
const mockModelData: VercelAIGatewayModelCard[] = [
+ {
+ id: 'openai/gpt-5.5',
+ name: 'GPT-5.5',
+ pricing: { input: 0.000_005, output: 0.000_03 },
+ tags: ['reasoning'],
+ type: 'chat',
+ },
{
id: 'openai/gpt-5.2-mini',
name: 'GPT-5.2 Mini',
@@ -278,10 +285,14 @@ describe('LobeVercelAIGatewayAI - custom features', () => {
};
const models = await params.models({ client: mockClient as any });
+ const gpt55 = models.find((m) => m.id === 'openai/gpt-5.5');
const gpt52 = models.find((m) => m.id === 'openai/gpt-5.2-mini');
const gpt51 = models.find((m) => m.id === 'openai/gpt-5.1-mini');
const gpt5 = models.find((m) => m.id === 'openai/gpt-5-mini');
+ expect(gpt55?.settings?.extendParams).toEqual(
+ expect.arrayContaining(['gpt5_2ReasoningEffort', 'textVerbosity']),
+ );
expect(gpt52?.settings?.extendParams).toEqual(
expect.arrayContaining(['gpt5_2ReasoningEffort', 'textVerbosity']),
);
diff --git a/packages/model-runtime/src/providers/vercelaigateway/index.ts b/packages/model-runtime/src/providers/vercelaigateway/index.ts
index 668970e3921..563adbd3f1d 100644
--- a/packages/model-runtime/src/providers/vercelaigateway/index.ts
+++ b/packages/model-runtime/src/providers/vercelaigateway/index.ts
@@ -127,7 +127,8 @@ export const params = {
m.id.includes('gpt-5') &&
!m.id.includes('gpt-5.1') &&
!m.id.includes('gpt-5.2') &&
- !m.id.includes('gpt-5.4')
+ !m.id.includes('gpt-5.4') &&
+ !m.id.includes('gpt-5.5')
) {
extendParams.push('gpt5ReasoningEffort', 'textVerbosity');
}
@@ -136,7 +137,7 @@ export const params = {
}
if (
tags.includes('reasoning') &&
- (m.id.includes('gpt-5.2') || m.id.includes('gpt-5.4'))
+ (m.id.includes('gpt-5.2') || m.id.includes('gpt-5.4') || m.id.includes('gpt-5.5'))
) {
extendParams.push('gpt5_2ReasoningEffort', 'textVerbosity');
}