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.16.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.16.0
File Size Uploaded Provenance Actions
aiollm_openai-0.16.0.tar.gz 442.9 kB With provenance Details for aiollm_openai-0.16.0.tar.gz

Built distribution (wheel)

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

Total release size: 579.0 kB

Release files / aiollm_openai-0.16.0.tar.gz

Download URL aiollm_openai-0.16.0.tar.gz
Size 442.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1ecbfa14278465cf9d1b7954a1ea1162e0656b0dcc3c5d7c9bb751d423eb6d3a
BLAKE2b-256 checksum
How to use checksums
8280f1fee3e01015d235abfb34363509bfd95a53c0fc0f76347c6f8e6fae4aab
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.16.0-py3-none-any.whl

Download URL aiollm_openai-0.16.0-py3-none-any.whl
Size 136.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
963ce456e8919eb806ab18160f1553f5c1580b212160065dc5ea7f5631defa12
BLAKE2b-256 checksum
How to use checksums
e8a4e8478c1ee9306ad9a9cca3515c1874bb34c907cf5ed0878a4a2fefb66383
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.16.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.16.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