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.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| genkit_flask-0.11.0.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| genkit_flask-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / genkit_flask-0.11.0.tar.gz
| Download URL | genkit_flask-0.11.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d111c4624904b59b326edb9bc5b43c82de963576875b6a5c26d108e4ee65f94
|
|
BLAKE2b-256 checksum How to use checksums |
dab827ebd914259636899de89fb13d736e622ab2c66abbdcb5c152a485a83bb7
|
| 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 3, 2026.
Transparency logRelease files / genkit_flask-0.11.0-py3-none-any.whl
| Download URL | genkit_flask-0.11.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e28a9e0f69a772447529c2e8f8a575fe668d459b153d6c28d4d06933df192d0e
|
|
BLAKE2b-256 checksum How to use checksums |
b44aa2bfa93ed15837c3cacfd31320a69cee2581c2e178c83a630d2101e31e16
|
| 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 3, 2026.
Transparency log