Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

Genkit Flask Plugin

Expose Genkit flows as HTTP endpoints in a Flask application.

Building with a coding agent? Install the Genkit Python skill first.

npx skills add genkit-ai/skills --skill developing-genkit-python

It teaches your agent the current Genkit Python APIs and common gotchas. Source, manual install and skills for other languages: genkit-ai/skills.

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('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

The endpoint name defaults to the flow's name with dots replaced by underscores (e.g., greet_user). To override the endpoint name or prevent clashes with an existing view, pass endpoint= to the route decorator (e.g., @app.post('/api/greet', endpoint='custom_greet')).

Requires Flask 3.1+.

Metadata

Release files for genkit-flask 0.14.0

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

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for genkit-flask 0.14.0
File Size Uploaded Provenance Actions
genkit_flask-0.14.0.tar.gz 14.4 kB With provenance Details for genkit_flask-0.14.0.tar.gz

Built distribution (wheel)

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

Total release size: 25.2 kB

Release files / genkit_flask-0.14.0.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL genkit_flask-0.14.0.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
08d8931c66b9de8aff5e18ad77ab4738b861ec1bca0a6771d03fd73ad1ae5eb0
BLAKE2b-256 checksum
How to use checksums
00409c3761a24f314d67b85f23de4ce0ef3d45661452f8cfb2e0c5c6f1311842
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 19, 2026.

Transparency log

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

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL genkit_flask-0.14.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd7e5914fd88494b47ea1ec6c866cbf5e8d742aa64aae6c16f047057f4d7499e
BLAKE2b-256 checksum
How to use checksums
ba7273056ad94035419fa256b85820e433c49102cdf666aeff78d96118d5e873
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 19, 2026.

Transparency log

Security for genkit-flask 0.14.0

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.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for genkit_flask-0.14.0.tar.gz

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 Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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