api
Last updated
Last updated
Warning Do not expose the
__Secure-1PSID
bard_api_key
: (optional)
is_login
: default False
(optional)
Visit https://bard.google.com/
F12 for console
Session: Application → Cookies → Copy the value of __Secure-1PSID
cookie.
Note that while I referred to __Secure-1PSID
value as an API key for convenience, it is not an officially provided API key. Cookie value subject to frequent changes. Verify the value again if an error occurs. Most errors occur when an invalid cookie value is entered.
bard_api_key={__Secure-1PSID}
Now you've saved it, see for example photo.jpg
parameter
filename="example.mp4"
type_mode="wb"
Do something like example