googleapis / googleapis/python-genai

Programmatic Way to Retrieve Token Pricing for Gemini Models?

Aperta
#1,200 8 commenti 9 reazioni 1 assegnatario Rivendicata da @Venkaiahbabuneelam Vedi su GitHub
priority: p3 type: feature request
Lingua principale
Python
Stelle
4k
Fork
1k
Merge medio
2g 12h
PR unite (30g)
41

Descrizione

**Is there a supported API call (or SDK method) to fetch the current pricing for each Gemini model?**
If not, are there any recommended best practices for keeping pricing up-to-date within applications?
Are there plans to provide such a feature in the future?

**Use case:**
I’d like to avoid hard-coding pricing information, to reduce maintenance and prevent discrepancies if Google updates prices.

Thanks in advance!

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.