flutter_gemini 3.0.0 flutter_gemini: ^3.0.0 copied to clipboard
Flutter Google Gemini SDK. Google Gemini is a set of cutting-edge large language models (LLMs) designed to be the driving force behind Google's future AI initiatives.
import 'package:flutter_gemini/flutter_gemini.dart';
const apiKey = 'AIza------tMww4--------------';
void main() {
Gemini.init(apiKey: apiKey, enableDebugging: true);
Gemini.instance.prompt(parts: [
Part.text('Write a story about a magic backpack'),
]).then((value) {
print(value?.output);
});
}