Skip to main content

Genkit OpenAI Plugin

OpenAI-compatible model provider for Genkit (OpenAI, Azure OpenAI, and other compatible endpoints).

Installation

uv add genkit-openai

Usage

from genkit import Genkit
from genkit_openai import OpenAI

ai = Genkit(plugins=[OpenAI()])

res = await ai.generate(
    model=OpenAI.gpt_model('gpt-5.2'),
    prompt='Suggest 2 catchy names for an AI newsletter.',
)
print(res.text)

Set OPENAI_API_KEY in the environment, or pass api_key= to OpenAI().

Release files for genkit-openai 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-openai 0.12.0
File Size Uploaded
genkit_openai-0.12.0.tar.gz 59.3 kB Details

Built distribution (wheel)

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

Total release size: 100.4 kB

Release files / genkit_openai-0.12.0.tar.gz

Download URL genkit_openai-0.12.0.tar.gz
Size 59.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dc73255eab8af1c6abc8a439cbe49163efe4dbc6cc502d634cd89194878dad34
BLAKE2b-256 checksum
How to use checksums
7e50d5665aa73ef0cd82607b61843507ef11abe29c55ef0f49e7e04130307a24
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_openai-0.12.0-py3-none-any.whl

Download URL genkit_openai-0.12.0-py3-none-any.whl
Size 41.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b022ba87c9f605a8b00be73c08017c679571c073a6a05997991e979438299913
BLAKE2b-256 checksum
How to use checksums
20d9d201150b079cb2e4f7ac5cdd7df28de9895eabfb2dbd1cc621d31bc43209
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