Gemini 1.5 Flash-8B via api

Hi, How can I specifically use 8B via api?
when I create an api from Studio I get this -X POST "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent?
this is not 8B specifically? or is it? how can I be sure?

thanks

Welcome to the forums!

The “Gemini 1.5 Flash” and “Gemini 1.5 Flash 8B” are considered different models. So “gemini-1.5-flash-latest” refers to the non-8B model.

To use the 8B model you would use one of the following:

  • “gemini-1.5-flash-8b-001”
  • “gemini-1.5-flash-8b-latest” (which currently refers to the 001 model)
  • “gemini-1.5-flash-8b” (which currently refers to the 001 model)

If you are doing anything where you expect consistent behavior, you should stick with the numbered (ie - 001) models since the others can change without previous notice.

2 Likes