@@ -366,6 +366,28 @@ const googleChatModels: AIChatModelCard[] = [
366
366
'Nano Banana 是 Google 最新、最快、最高效的原生多模态模型,它允许您通过对话生成和编辑图像。' ,
367
367
displayName : 'Nano Banana' ,
368
368
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)' ,
369
391
id : 'gemini-2.5-flash-image-preview' ,
370
392
maxOutput : 8192 ,
371
393
pricing : {
@@ -805,22 +827,62 @@ const imagenBaseParameters: ModelParamsSchema = {
805
827
prompt : { default : '' } ,
806
828
} ;
807
829
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
+
808
854
/* eslint-disable sort-keys-fix/sort-keys-fix */
809
855
const googleImageModels : AIImageModelCard [ ] = [
810
856
{
811
857
displayName : 'Nano Banana' ,
812
- id : 'gemini-2.5-flash-image-preview :image' ,
858
+ id : 'gemini-2.5-flash-image:image' ,
813
859
enabled : true ,
814
860
type : 'image' ,
815
861
description :
816
862
'Nano Banana 是 Google 最新、最快、最高效的原生多模态模型,它允许您通过对话生成和编辑图像。' ,
817
863
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' ,
818
880
parameters : CHAT_MODEL_IMAGE_GENERATION_PARAMS ,
819
881
pricing : {
820
882
units : [
821
883
{ name : 'textInput' , rate : 0.3 , strategy : 'fixed' , unit : 'millionTokens' } ,
822
884
{ 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' } ,
824
886
] ,
825
887
} ,
826
888
} ,
0 commit comments