Firebase Genkit (beta) is a framework with powerful tooling to help app developers build, test, deploy, and monitor AI-powered features with confidence. Genkit is also built from the ground up to be cloud optimized and code-centric, designed to feel familiar to most developers with less new concepts to learn. The Genkit framework itself is free and open source, and integrates with many services that have free tiers to get started.
Genkit is available for TypeScript (Node.js), with Go support in active development.
To be notified when Genkit for Go is ready for early community testing and get invited to our testers chat, submit this form.
[!NOTE] Since Genkit is currently in beta, this means that the public API and framework design may change in backward-incompatible ways.
Getting started is easy:
Install Genkit:
npm i -g genkit
Review the documentation for details and samples.
Unified API for generation across AI models built by Google (Gemini, Gemma) and third party providers. Supports multimodal input, multimedia content generation, and custom options.
Generate structured output as strongly-typed objects with custom schemas for easy integration into your app.
Define custom tools for your AI models to fetch data, display UI, write to a database, and more.
Write well structured prompts with all relevant metadata encapsulated in a single dotprompt file. Supports handlebars templating, history, multimedia, and more.
Build context-aware AI features by indexing your data and dynamically retrieving relevant information from your database. Genkit provides flexible, light-weight abstractions for indexers and retrievers that work with any database provider.
Evaluate your end-to-end AI workflow using a variety of pre-built and custom evaluators. As easy as:
genkit eval:flow myAiWorkflow --input testQuestions.json
Access pre-built components and integrations for models, vector stores, tools, evaluators, observability, and more through Genkit’s open ecosystem of plugins built by Google and the community. For a list of existing plugins from Google and the community, explore the #genkit-plugin keyword on npm.
You can also use this extensibility to easily define custom components whenever existing plugins don’t fit your needs.
For more information:
Deploy your AI feature with a single command through the Firebase or Google Cloud CLI to:
You can also deploy to any container platform where your chosen runtime is supported.
Genkit is fully instrumented with OpenTelemetry and provides hooks to export telemetry data. Easily log traces and telemetry to Google Cloud using pre-built plugins or set up with a custom provider for full end-to-end observability and monitoring in production.
Genkit's developer UI enables developers to prototype, develop, and test their AI features locally, resulting in quick turn-around times, key features include:
Key features:
Genkit works great out-of-the-box with Firebase or Google Cloud projects thanks to official plugins and templates that make it easy to integrate Google Cloud and Firebase services for AI, databases, monitoring, authentication, and deployment. These include:
Interested in trying Genkit? Try it out on Project IDX, Google's AI-assisted workspace for full-stack app development.
Genkit is an open source framework, and we welcome contributions. Information on how to get started can be found in our contributor guide.
Please use our GitHub issue tracker to file feedback and feature requests.
You can also reach out to us using the GitHub discussion forums.
Firebase Genkit Team