🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style(model-bank): add Gemini 4 Neon to Google, Vertex AI and OpenRouter (#23494)
YuTengjingf773db0a0155
diff --git a/packages/model-bank/src/aiModels/__tests__/index.test.ts b/packages/model-bank/src/aiModels/__tests__/index.test.tsindex ff9a4fa2aad..753f5518924 100644--- a/packages/model-bank/src/aiModels/__tests__/index.test.ts+++ b/packages/model-bank/src/aiModels/__tests__/index.test.ts@@ -418,6 +418,9 @@ describe('recent direct-provider models', () => {['google', 'gemini-4-carbon', 'thinkingLevel3'],['vertexai', 'gemini-4-carbon', 'thinkingLevel3'],['openrouter', 'google/gemini-4-carbon', 'thinkingLevel3'],+ ['google', 'gemini-4-neon', 'thinkingLevel5'],+ ['vertexai', 'gemini-4-neon', 'thinkingLevel5'],+ ['openrouter', 'google/gemini-4-neon', 'thinkingLevel5'],['xai', 'grok-4.6', 'grok4_6ReasoningEffort'],['qwen', 'qwen3.8-max', 'qwen38ReasoningEffort'],['qwen', 'qwen3.8-max-0902', 'qwen38ReasoningEffort'],@@ -604,3 +607,28 @@ describe('Google context-caching pricing', () => {expect(units('gemini-3-flash-preview')).toContainEqual(fixed('audioInput_cacheRead', 0.1));});});++describe('Gemini 4 Neon pricing', () => {+ it.each([+ ['google', 'gemini-4-neon'],+ ['vertexai', 'gemini-4-neon'],+ ['openrouter', 'google/gemini-4-neon'],+ ])('bills %s/%s at $3 input and $15 output', (providerId, id) => {+ const model = LOBE_DEFAULT_MODEL_LIST.find(+ (entry) => entry.providerId === providerId && entry.id === id,+ );+ expect(model?.pricing?.units).toEqual(+ expect.arrayContaining([+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ]),+ );+ });++ it('marks only the Gemini API card as the official price source', () => {+ const official = LOBE_DEFAULT_MODEL_LIST.filter(+ (entry) => entry.id === 'gemini-4-neon' && entry.isOfficial,+ );+ expect(official.map((entry) => entry.providerId)).toEqual(['google']);+ });+});diff --git a/packages/model-bank/src/aiModels/google/index.ts b/packages/model-bank/src/aiModels/google/index.tsindex da096de1620..97b911dde86 100644--- a/packages/model-bank/src/aiModels/google/index.ts+++ b/packages/model-bank/src/aiModels/google/index.ts@@ -5,9 +5,10 @@ import {nanoBananaProParameters,} from '../../const/imageParameters';import type { ModelParamsSchema } from '../../standard-parameters';-import type { AIChatModelCard, AIImageModelCard, AIVideoModelCard } from '../../types';+import type { AIChatModelCard, AIImageModelCard } from '../../types';import { gemini25ChatModels } from './gemini25';import { googleTTSModels } from './tts';+import { googleVideoModels } from './video';/*** gemini implicit caching not extra cost@@ -202,6 +203,53 @@ const googleChatModels: AIChatModelCard[] = [},type: 'chat',},+ {+ abilities: {+ audio: true,+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ video: true,+ vision: true,+ },+ // Unified 1M window shared by input, thinking and output: 64K output per synchronous request,+ // up to 1M with long decode.+ // https://ai.google.dev/gemini-api/docs/models/gemini-4-neon+ contextWindowTokens: 1_048_576,+ description:+ 'Gemini 4 Neon sits between Hydrogen and Carbon, bringing near-Carbon quality to complex software engineering, knowledge work and science workflows at faster speeds and lower cost.',+ displayName: 'Gemini 4 Neon',+ enabled: true,+ family: 'gemini',+ generation: 'gemini-4',+ id: 'gemini-4-neon',+ isOfficial: true,+ maxOutput: 65_536,+ /** Explicit caching is not supported, so there is no cache-write price.+ * @see https://ai.google.dev/gemini-api/docs/pricing+ */+ pricing: {+ units: [+ { name: 'textInput_cacheRead', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'imageInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'videoInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-11-18',+ // Thinking levels are low / medium / high (default) / xhigh; `minimal` is rejected and+ // sampling parameters are ignored. https://ai.google.dev/gemini-api/docs/whats-new-gemini-4-neon+ settings: {+ disabledParams: ['temperature', 'top_p'],+ extendParams: ['thinkingLevel5', 'urlContext'],+ searchImpl: 'params',+ searchProvider: 'google',+ },+ type: 'chat',+ },{abilities: {audio: true,@@ -1061,114 +1109,6 @@ const googleImageModels: AIImageModelCard[] = [},];-const googleVideoModels: AIVideoModelCard[] = [- {- description:- 'Our latest video generation model, available to developers on the paid tier of the Gemini API.',- displayName: 'Veo 3.1 Generate Preview',- enabled: true,- id: 'veo-3.1-generate-preview',- parameters: {- aspectRatio: {- default: '16:9',- enum: ['16:9', '9:16'],- },- duration: { default: 8, enum: [4, 6, 8] },- endImageUrl: {- default: null,- },- imageUrls: {- default: [],- maxCount: 3,- },- prompt: { default: '' },- resolution: {- default: '720p',- enum: ['720p', '1080p', '4k'],- },- seed: { default: null },- },- pricing: {- units: [{ name: 'videoGeneration', rate: 0.6, strategy: 'fixed', unit: 'second' }],- },- releasedAt: '2026-01-13',- type: 'video',- },- {- description:- 'Our latest video generation model, available to developers on the paid tier of the Gemini API.',- displayName: 'Veo 3.1 Fast Generate Preview',- enabled: true,- id: 'veo-3.1-fast-generate-preview',- parameters: {- aspectRatio: {- default: '16:9',- enum: ['16:9', '9:16'],- },- duration: { default: 8, enum: [4, 6, 8] },- endImageUrl: {- default: null,- },- imageUrls: {- default: [],- maxCount: 3,- },- prompt: { default: '' },- resolution: {- default: '720p',- enum: ['720p', '1080p', '4k'],- },- seed: { default: null },- },- pricing: {- units: [{ name: 'videoGeneration', rate: 0.35, strategy: 'fixed', unit: 'second' }],- },- releasedAt: '2026-01-13',- type: 'video',- },- {- description:- "Google's video generation and editing model with native audio: text, image and reference-guided video, first/last frame interpolation, and conversational editing.",- displayName: 'Gemini Omni 1.1 Flash',- enabled: true,- id: 'gemini-omni-1.1-flash',- isOfficial: true,- parameters: {- aspectRatio: {- default: '16:9',- enum: ['16:9', '9:16'],- },- duration: { default: 8, max: 10, min: 3, step: 1 },- endImageUrl: {- default: null,- },- imageUrls: {- default: [],- maxCount: 7,- },- prompt: { default: '' },- resolution: {- default: '720p',- enum: ['360p', '720p', '1080p', '4k'],- },- },- pricing: {- // Billed per token: video output is about 5,792 tokens per second of 720p video (~$0.10/s).- // https://ai.google.dev/gemini-api/docs/pricing- units: [- { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'imageInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'videoInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'audioInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },- { name: 'videoGeneration', rate: 17.5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2026-08-27',- type: 'video',- },-];-export const allModels = [...googleChatModels,...googleImageModels,diff --git a/packages/model-bank/src/aiModels/google/video.ts b/packages/model-bank/src/aiModels/google/video.tsnew file mode 100644index 00000000000..0a34249acce--- /dev/null+++ b/packages/model-bank/src/aiModels/google/video.ts@@ -0,0 +1,110 @@+import type { AIVideoModelCard } from '../../types';++/** Veo video generation through the Gemini API. */+export const googleVideoModels: AIVideoModelCard[] = [+ {+ description:+ 'Our latest video generation model, available to developers on the paid tier of the Gemini API.',+ displayName: 'Veo 3.1 Generate Preview',+ enabled: true,+ id: 'veo-3.1-generate-preview',+ parameters: {+ aspectRatio: {+ default: '16:9',+ enum: ['16:9', '9:16'],+ },+ duration: { default: 8, enum: [4, 6, 8] },+ endImageUrl: {+ default: null,+ },+ imageUrls: {+ default: [],+ maxCount: 3,+ },+ prompt: { default: '' },+ resolution: {+ default: '720p',+ enum: ['720p', '1080p', '4k'],+ },+ seed: { default: null },+ },+ pricing: {+ units: [{ name: 'videoGeneration', rate: 0.6, strategy: 'fixed', unit: 'second' }],+ },+ releasedAt: '2026-01-13',+ type: 'video',+ },+ {+ description:+ 'Our latest video generation model, available to developers on the paid tier of the Gemini API.',+ displayName: 'Veo 3.1 Fast Generate Preview',+ enabled: true,+ id: 'veo-3.1-fast-generate-preview',+ parameters: {+ aspectRatio: {+ default: '16:9',+ enum: ['16:9', '9:16'],+ },+ duration: { default: 8, enum: [4, 6, 8] },+ endImageUrl: {+ default: null,+ },+ imageUrls: {+ default: [],+ maxCount: 3,+ },+ prompt: { default: '' },+ resolution: {+ default: '720p',+ enum: ['720p', '1080p', '4k'],+ },+ seed: { default: null },+ },+ pricing: {+ units: [{ name: 'videoGeneration', rate: 0.35, strategy: 'fixed', unit: 'second' }],+ },+ releasedAt: '2026-01-13',+ type: 'video',+ },+ {+ description:+ "Google's video generation and editing model with native audio: text, image and reference-guided video, first/last frame interpolation, and conversational editing.",+ displayName: 'Gemini Omni 1.1 Flash',+ enabled: true,+ id: 'gemini-omni-1.1-flash',+ isOfficial: true,+ parameters: {+ aspectRatio: {+ default: '16:9',+ enum: ['16:9', '9:16'],+ },+ duration: { default: 8, max: 10, min: 3, step: 1 },+ endImageUrl: {+ default: null,+ },+ imageUrls: {+ default: [],+ maxCount: 7,+ },+ prompt: { default: '' },+ resolution: {+ default: '720p',+ enum: ['360p', '720p', '1080p', '4k'],+ },+ },+ pricing: {+ // Billed per token: video output is about 5,792 tokens per second of 720p video (~$0.10/s).+ // https://ai.google.dev/gemini-api/docs/pricing+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'imageInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'videoInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'videoGeneration', rate: 17.5, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-08-27',+ type: 'video',+ },+];diff --git a/packages/model-bank/src/aiModels/openrouter/google.ts b/packages/model-bank/src/aiModels/openrouter/google.tsindex 941725181a1..2d57c2d7044 100644--- a/packages/model-bank/src/aiModels/openrouter/google.ts+++ b/packages/model-bank/src/aiModels/openrouter/google.ts@@ -40,6 +40,44 @@ export const openrouterGoogleModels: AIChatModelCard[] = [},type: 'chat',},+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ vision: true,+ },+ contextWindowTokens: 1_048_576,+ description:+ 'Gemini 4 Neon sits between Hydrogen and Carbon, bringing near-Carbon quality to complex software engineering, knowledge work and science workflows at faster speeds and lower cost.',+ displayName: 'Gemini 4 Neon',+ enabled: true,+ family: 'gemini',+ generation: 'gemini-4',+ id: 'google/gemini-4-neon',+ maxOutput: 65_536,+ // https://openrouter.ai/api/v1/models/google/gemini-4-neon/endpoints+ pricing: {+ units: [+ { name: 'textInput_cacheRead', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'imageInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheWrite', rate: 0.0833, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-11-18',+ // OpenRouter forwards `thinkingLevel` as `reasoning.effort`, including `xhigh`. `urlContext`+ // is a Gemini API tool OpenRouter does not proxy, so it is left out.+ settings: {+ disabledParams: ['temperature', 'top_p'],+ extendParams: ['thinkingLevel5'],+ searchImpl: 'params',+ },+ type: 'chat',+ },{abilities: {imageOutput: true,diff --git a/packages/model-bank/src/aiModels/vertexai.ts b/packages/model-bank/src/aiModels/vertexai.tsindex 5cc40c515d7..8dc3495c564 100644--- a/packages/model-bank/src/aiModels/vertexai.ts+++ b/packages/model-bank/src/aiModels/vertexai.ts@@ -47,6 +47,48 @@ const vertexaiChatModels: AIChatModelCard[] = [},type: 'chat',},+ {+ abilities: {+ audio: true,+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ video: true,+ vision: true,+ },+ contextWindowTokens: 1_048_576,+ description:+ 'Gemini 4 Neon sits between Hydrogen and Carbon, bringing near-Carbon quality to complex software engineering, knowledge work and science workflows at faster speeds and lower cost.',+ displayName: 'Gemini 4 Neon',+ enabled: true,+ family: 'gemini',+ generation: 'gemini-4',+ id: 'gemini-4-neon',+ maxOutput: 65_536,+ /** Global endpoint rates, matching the Gemini API; OpenRouter's `google-vertex/global`+ * endpoint lists the same $3 / $15 / $0.15 cached.+ * @see https://ai.google.dev/gemini-api/docs/pricing+ */+ pricing: {+ units: [+ { name: 'textInput_cacheRead', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'imageInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'videoInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-11-18',+ settings: {+ disabledParams: ['temperature', 'top_p'],+ extendParams: ['thinkingLevel5', 'urlContext'],+ searchImpl: 'params',+ searchProvider: 'google',+ },+ type: 'chat',+ },{abilities: {audio: true,