Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Gemini SDK | ChatSession pricing question

Hi, in all sdk chatSession present field historyInternal. I'm wonder, is it counts token for the history each time user send new message. For example, I've already had 5 messages in history and charged for them, and I'm sending a 6th message, will I be charged only for tokens(words) in my 6th message, or I need to pay for tokens in previous 5 messages.

0 0 82
0 REPLIES 0