@@ -313,16 +313,21 @@ files in the context."
313313 current))
314314 (plist-get (car (last prompts)) :parts ))))
315315
316+ (defconst gptel--gemini-cost-url " https://ai.google.dev/pricing"
317+ " Web page for current Gemini model pricing." )
318+
316319(defconst gptel--gemini-models
317- ' ((gemini-1.5-pro-latest
320+ ` ((gemini-1.5-pro-latest
318321 :description " Google's latest model with enhanced capabilities across various tasks"
319322 :capabilities (tool-use json media)
320323 :mime-types (" image/png" " image/jpeg" " image/webp" " image/heic" " image/heif"
321324 " application/pdf" " text/plain" " text/csv" " text/html" )
322325 :context-window 2000
326+ :max-output 8192
323327 ; ; input & output price is halved for prompts of 128k tokens or less
324328 :input-cost 2.50
325329 :output-cost 10
330+ :cost-url , gptel--gemini-cost-url
326331 :cutoff-date " 2024-05" )
327332 (gemini-2.0-flash-exp
328333 :description " Next generation features, superior speed, native tool use"
@@ -337,19 +342,23 @@ files in the context."
337342 :mime-types (" image/png" " image/jpeg" " image/webp" " image/heic" " image/heif"
338343 " application/pdf" " text/plain" " text/csv" " text/html" )
339344 :context-window 1000
345+ :max-output 8192
340346 ; ; input & output price is halved for prompts of 128k tokens or less
341347 :input-cost 0.15
342348 :output-cost 0.60
349+ :cost-url , gptel--gemini-cost-url
343350 :cutoff-date " 2024-05" )
344351 (gemini-1.5-flash-8b
345352 :description " High volume and lower intelligence tasks"
346353 :capabilities (tool-use json media)
347354 :context-window 1000
355+ :max-output 8192
348356 :mime-types (" image/png" " image/jpeg" " image/webp" " image/heic" " image/heif"
349357 " application/pdf" " text/plain" " text/csv" " text/html" )
350358 ; ; input & output price is halved for prompts of 128k tokens or less
351359 :input-cost 0.075
352360 :output-cost 0.30
361+ :cost-url , gptel--gemini-cost-url
353362 :cutoff-date " 2024-10" )
354363 (gemini-exp-1206
355364 :description " Improved coding, reasoning and vision capabilities"
@@ -363,28 +372,33 @@ files in the context."
363372 :mime-types (" image/png" " image/jpeg" " image/webp" " image/heic" " image/heif"
364373 " application/pdf" " text/plain" " text/csv" " text/html" )
365374 :context-window 1000
375+ :max-output 8192
366376 :input-cost 0.10
367377 :output-cost 0.40
378+ :cost-url , gptel--gemini-cost-url
368379 :cutoff-date " 2024-08" )
369380 (gemini-2.0-flash-lite-preview-02-05
370381 :description " Gemini 2.0 Flash model optimized for cost efficiency and low latency"
371382 :capabilities (json)
372383 :context-window 1000
373384 :input-cost 0.075
374385 :output-cost 0.30
386+ :cost-url , gptel--gemini-cost-url
375387 :cutoff-date " 2024-08" )
376388 (gemini-2.0-pro-exp-02-05
377389 :description " Next gen, high speed, multimodal for a diverse variety of tasks"
378390 :capabilities (tool-use json)
379391 :context-window 2000
380392 :input-cost 0.00
381393 :output-cost 0.00
394+ :cost-url , gptel--gemini-cost-url
382395 :cutoff-date " 2024-08" )
383396 (gemini-2.0-flash-thinking-exp-01-21
384397 :description " Next gen, high speed, multimodal for a diverse variety of tasks"
385398 :capabilities (json)
386399 :input-cost 0.00
387400 :output-cost 0.00
401+ :cost-url , gptel--gemini-cost-url
388402 :cutoff-date " 2024-08" )
389403 (gemini-2.0-flash-exp
390404 :description " Multi-modal, streaming, tool use 2000 RPM"
@@ -394,6 +408,7 @@ files in the context."
394408 :context-window 1000
395409 :input-cost 0.00
396410 :output-cost 0.00
411+ :cost-url , gptel--gemini-cost-url
397412 :cutoff-date " 2024-08" )
398413 (gemini-2.0-flash-thinking-exp
399414 :description " DEPRECATED: Please use gemini-2.0-flash-thinking-exp-01-21 instead."
@@ -413,10 +428,14 @@ Keys:
413428
414429- `:context-window' : the context window size, in thousands of tokens.
415430
431+ - `:max-output' : maximum number of output tokens.
432+
416433- `:input-cost' : the input cost, in US dollars per million tokens.
417434
418435- `:output-cost' : the output cost, in US dollars per million tokens.
419436
437+ - `:cost-url' : web page for current model pricing.
438+
420439- `:cutoff-date' : the knowledge cutoff date.
421440
422441- `:request-params' : a plist of additional request parameters to
0 commit comments