Skip to main content

aiollm-openai

OpenAI's Responses and Files APIs for aiollm, the async-first toolkit for typed HTTP API clients.

OpenAIClient sends OpenAI's own methods (CreateResponse, StreamResponse and the five Files methods) with types generated from OpenAI's official OpenAPI file, and has aiollm's provider-neutral client.generation and client.files, so code written for any aiollm provider runs on it.

Status: pre-alpha. The package was part of aiollm up to 0.14.0 as aiollm.providers.openai; it is now aiollm_openai. Its public API may still change: before 1.0 a breaking change bumps the minor version.

Installation

The package requires Python 3.13 or newer and installs the core it needs, aiollm-core:

pip install aiollm-openai

Or with uv: uv add aiollm-openai. To work on the package itself, see CONTRIBUTING.md.

Quick start

OpenAIClient() reads the key from OPENAI_API_KEY; pass a token to give it yourself.

from aiollm_openai import OpenAIClient


async def ask() -> str:
    async with OpenAIClient() as client:
        response = await client.generation.create(
            model="gpt-6-astra",
            input="Hi",
            instructions="Be brief",
        )
    return response.text

Run it with asyncio.run(ask()).

Documentation

The guide and the API reference are on the aiollm site, aiollm-org.github.io/aiollm: provider clients, shared generation and files. The changes up to 0.14.0 are in aiollm's changelog; the later ones in CHANGELOG.md.

License

MIT. See LICENSE.

Metadata

Release files for aiollm-openai 0.17.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 aiollm-openai 0.17.0
File Size Uploaded Provenance Actions
aiollm_openai-0.17.0.tar.gz 444.5 kB With provenance Details for aiollm_openai-0.17.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiollm-openai 0.17.0
File Interpreter ABI Platform Actions
aiollm_openai-0.17.0-py3-none-any.whl Python 3 none any Details for aiollm_openai-0.17.0-py3-none-any.whl

Total release size: 582.0 kB

Release files / aiollm_openai-0.17.0.tar.gz

Download URL aiollm_openai-0.17.0.tar.gz
Size 444.5 kB
Tags Source
SHA-256 checksum
How to use checksums
79a4ce95ce4fa48d6cd13021262633f0d9374086cbad85f1253ceeaddc84beff
BLAKE2b-256 checksum
How to use checksums
68723cc85e60083b4ee92a2a3fd21c2065921effc3aa7469f62118491ae534d8
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 21, 2026.

Transparency log

Release files / aiollm_openai-0.17.0-py3-none-any.whl

Download URL aiollm_openai-0.17.0-py3-none-any.whl
Size 137.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64a0311245597ad49d2162283ffce0a5a9a6dfd167098074ca1526d57f8298de
BLAKE2b-256 checksum
How to use checksums
06ec008244e222080ff1976ffe8d2ec27a57c60ec002d4cafde5fa16f2cab531
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 21, 2026.

Transparency log

Security for aiollm-openai 0.17.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aiollm_openai-0.17.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 21, 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