/bard_api

Reverse engineering of Google's Bard API for dart programming language.

Primary LanguageDartMIT LicenseMIT

Bard

Reverse engineering of Google's Bard chatbot API for dart inspired from Bard.

Installation

dart pub install bard_api
# or
flutter pub install bard_api

Authentication

  1. Go to Bard Site
  2. Open the devtools.
  3. Copy the cookie value of __Secure-1PSID.

Usage

import 'package:bard_api/bard_api.dart';

void main() async {
  final bard = ChatBot(sessionId: "...");
  final result = await bard.ask("Hello?");
  print(result);
}