Skip to main content

Genkit Flask Plugin

Expose Genkit flows as HTTP endpoints in a Flask application.

Installation

uv add genkit-flask genkit-google-genai

Usage

from flask import Flask
from genkit import Genkit
from genkit_flask import genkit_flask_handler
from genkit_google_genai import GoogleAI

app = Flask(__name__)
ai = Genkit(plugins=[GoogleAI()], model='googleai/gemini-flash-latest')


@app.post('/api/greet')
@genkit_flask_handler(ai)
@ai.flow()
async def greet_user(name: str) -> str:
    res = await ai.generate(prompt=f'Say hello to {name} in one sentence.')
    return res.text

Requires Flask 3.1+.

Release files for genkit-flask 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genkit-flask 0.10.0
File Size Uploaded
genkit_flask-0.10.0.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for genkit-flask 0.10.0
File Interpreter ABI Platform
genkit_flask-0.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.4 kB

Release files / genkit_flask-0.10.0.tar.gz

Download URL genkit_flask-0.10.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
39dabfc78b5365cc2040a84dceaa9a2799b521300eb16de6c4f026209f33a22d
BLAKE2b-256 checksum
How to use checksums
cf27551d1935cb638463b84cccd0775ef55e0dbbd16d774c06edeedf3dec8ad0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.

Transparency log

Release files / genkit_flask-0.10.0-py3-none-any.whl

Download URL genkit_flask-0.10.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a82bc74dec1bd6c35c783da6675a67f69ef42eb85129eb7f9020abf38d452fd
BLAKE2b-256 checksum
How to use checksums
dc8dec6579929d8697ba9c261f8e5f50534589bf3107150b70760ba42ca2519d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.12.0

2 release files

This release

0.10.0 This release

2 release files

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page