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_model('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.12.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.12.0
File Size Uploaded
genkit_flask-0.12.0.tar.gz 9.7 kB Details

Built distribution (wheel)

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

Total release size: 19.5 kB

Release files / genkit_flask-0.12.0.tar.gz

Download URL genkit_flask-0.12.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
effba22bf1fa6eb7ea245be9ad3c3b243f088f996742adaf9c228198cee76b7c
BLAKE2b-256 checksum
How to use checksums
e09db74012b4d559113317f3b507ffb241bca6c9c3ab991214418db96241864f
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 Sep 24, 2026.

Transparency log

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

Download URL genkit_flask-0.12.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b718e95df6cabb52b7a35a2ce85cd2bb0fed79f04dd39ee76674466d4183a88
BLAKE2b-256 checksum
How to use checksums
a8dda034b1659781b1e42fcd2d7e81ea0820a50ef0aa62cf580f5f72c5d82dfd
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 Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.12.0 This release

2 release files

0.10.0

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