Try   HackMD

Build usage simple Bard API

hackmd-github-sync-badge

tags: public,build,bard

How to use?

  • This repo was been retire , bard has been change to Gemini

Clone from my github

git clone https://github.com/tingruikp0925/bardapi_simple.git

Install Python3

brew install python3

Install requirement

pip install -r requirements.txt

Change your token & input on bard_api.py

token='YOUR-SECURE-1PSID-HERE'
input_text = "Hello Bard!"

Run it

python bard_api.py

How to find SECURE?

Go to http://bard.google.com/

Login your google account

Use F12 to open console

Session: Application → Cookies → Secure-1PSID cookie.(have dot)


Source Code:https://github.com/tingruikp0925/bardapi_simple