developing-genkit-python

Originally fromgenkit-ai/skills
Installation
Summary

Build AI applications in Python using Genkit with flows, tools, and multiple model providers.

  • Requires Python 3.14+, uv package manager, and the Genkit CLI; Google AI is the default provider with GEMINI_API_KEY environment variable
  • Supports structured output, streaming, flows, tools, embeddings, and evaluators through a unified async API
  • Includes FastAPI integration for HTTP endpoints and parallel flow execution, plus .prompt file support for prompt templates
  • Use ai.run_main() as the entrypoint for Genkit-driven apps; always verify imports and APIs against references due to frequent SDK changes
SKILL.md

Genkit Python

Prerequisites

  • Runtime: Python 3.14+, uv for deps (install).
  • CLI: genkit --version — install via npm install -g genkit-cli if missing.

New projects: Setup (bootstrap + env). Patterns and code samples: Examples.

Hello World

from genkit import Genkit
from genkit.plugins.google_genai import GoogleAI

ai = Genkit(
    plugins=[GoogleAI()],
    model='googleai/gemini-flash-latest',
)
Installs
33.5K
GitHub Stars
351
First Seen
Apr 23, 2026
developing-genkit-python — firebase/agent-skills