Skip to main content

Genkit OpenAI Plugin

Preview — This plugin is in preview and may have API changes in future releases.

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-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().

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genkit_openai-0.9.0.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genkit_openai-0.9.0-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file genkit_openai-0.9.0.tar.gz.

File metadata

  • Download URL: genkit_openai-0.9.0.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for genkit_openai-0.9.0.tar.gz
Algorithm Hash digest
SHA256 eda40e30a957c3ebdf49713970046956eba635429e1df421050147884768901e
MD5 422911282bfa5bdfdd34332b2b572b49
BLAKE2b-256 c0f446e61e8ebe06b070c2868947875b1d28a08f321bfb8383cc4b8b5b42ceae

See more details on using hashes here.

Provenance

The following attestation bundles were made for genkit_openai-0.9.0.tar.gz:

Publisher: publish_python.yml on genkit-ai/genkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file genkit_openai-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: genkit_openai-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 34.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for genkit_openai-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 041bb47867c6bea7527f611f192cef33fc3189e19140fce7c5a76ece367a9184
MD5 dcacdb01288f1fae9af7d4277d31ab57
BLAKE2b-256 50bdd5817cbe890d8511e544745108243b1566bb863b6edb142e2a765fb681bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for genkit_openai-0.9.0-py3-none-any.whl:

Publisher: publish_python.yml on genkit-ai/genkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page