@@ -366,6 +366,28 @@ const googleChatModels: AIChatModelCard[] = [
366366 'Nano Banana 是 Google 最新、最快、最高效的原生多模态模型,它允许您通过对话生成和编辑图像。' ,
367367 displayName : 'Nano Banana' ,
368368 enabled : true ,
369+ id : 'gemini-2.5-flash-image' ,
370+ maxOutput : 8192 ,
371+ pricing : {
372+ units : [
373+ { name : 'textInput' , rate : 0.3 , strategy : 'fixed' , unit : 'millionTokens' } ,
374+ { name : 'imageInput' , rate : 0.3 , strategy : 'fixed' , unit : 'millionTokens' } ,
375+ { name : 'textOutput' , rate : 2.5 , strategy : 'fixed' , unit : 'millionTokens' } ,
376+ { name : 'imageOutput' , rate : 30 , strategy : 'fixed' , unit : 'millionTokens' } ,
377+ ] ,
378+ } ,
379+ releasedAt : '2025-08-26' ,
380+ type : 'chat' ,
381+ } ,
382+ {
383+ abilities : {
384+ imageOutput : true ,
385+ vision : true ,
386+ } ,
387+ contextWindowTokens : 32_768 + 8192 ,
388+ description :
389+ 'Nano Banana 是 Google 最新、最快、最高效的原生多模态模型,它允许您通过对话生成和编辑图像。' ,
390+ displayName : 'Nano Banana (Preview)' ,
369391 id : 'gemini-2.5-flash-image-preview' ,
370392 maxOutput : 8192 ,
371393 pricing : {
@@ -805,22 +827,62 @@ const imagenBaseParameters: ModelParamsSchema = {
805827 prompt : { default : '' } ,
806828} ;
807829
830+ const NANO_BANANA_ASPECT_RATIOS = [
831+ '1:1' , // 1024x1024
832+ '2:3' , // 832x1248
833+ '3:2' , // 1248x832
834+ '3:4' , // 864x1184
835+ '4:3' , // 1184x864
836+ '4:5' , // 896x1152
837+ '5:4' , // 1152x896
838+ '9:16' , // 768x1344
839+ '16:9' , // 1344x768
840+ '21:9' , // 1536x672
841+ ] ;
842+
843+ const nanoBananaParameters : ModelParamsSchema = {
844+ aspectRatio : {
845+ default : '1:1' ,
846+ enum : NANO_BANANA_ASPECT_RATIOS ,
847+ } ,
848+ imageUrls : {
849+ default : [ ] ,
850+ } ,
851+ prompt : { default : '' } ,
852+ } ;
853+
808854/* eslint-disable sort-keys-fix/sort-keys-fix */
809855const googleImageModels : AIImageModelCard [ ] = [
810856 {
811857 displayName : 'Nano Banana' ,
812- id : 'gemini-2.5-flash-image-preview :image' ,
858+ id : 'gemini-2.5-flash-image:image' ,
813859 enabled : true ,
814860 type : 'image' ,
815861 description :
816862 'Nano Banana 是 Google 最新、最快、最高效的原生多模态模型,它允许您通过对话生成和编辑图像。' ,
817863 releasedAt : '2025-08-26' ,
864+ parameters : nanoBananaParameters ,
865+ pricing : {
866+ units : [
867+ { name : 'textInput' , rate : 0.3 , strategy : 'fixed' , unit : 'millionTokens' } ,
868+ { name : 'textOutput' , rate : 2.5 , strategy : 'fixed' , unit : 'millionTokens' } ,
869+ { name : 'imageOutput' , rate : 30 , strategy : 'fixed' , unit : 'millionTokens' } ,
870+ ] ,
871+ } ,
872+ } ,
873+ {
874+ displayName : 'Nano Banana (Preview)' ,
875+ id : 'gemini-2.5-flash-image-preview:image' ,
876+ type : 'image' ,
877+ description :
878+ 'Nano Banana 是 Google 最新、最快、最高效的原生多模态模型,它允许您通过对话生成和编辑图像。' ,
879+ releasedAt : '2025-08-26' ,
818880 parameters : CHAT_MODEL_IMAGE_GENERATION_PARAMS ,
819881 pricing : {
820882 units : [
821883 { name : 'textInput' , rate : 0.3 , strategy : 'fixed' , unit : 'millionTokens' } ,
822884 { name : 'textOutput' , rate : 2.5 , strategy : 'fixed' , unit : 'millionTokens' } ,
823- { name : 'imageOutput' , rate : 3 , strategy : 'fixed' , unit : 'millionTokens' } ,
885+ { name : 'imageOutput' , rate : 30 , strategy : 'fixed' , unit : 'millionTokens' } ,
824886 ] ,
825887 } ,
826888 } ,
0 commit comments