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.15.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.15.0
File Size Uploaded Provenance Actions
aiollm_openai-0.15.0.tar.gz 432.4 kB With provenance Details for aiollm_openai-0.15.0.tar.gz

Built distribution (wheel)

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

Total release size: 563.8 kB

Release files / aiollm_openai-0.15.0.tar.gz

Download URL aiollm_openai-0.15.0.tar.gz
Size 432.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6376d4643dc17ec36eb702817a9747dba96fae15f7d99a1c66686ca4ff3838dd
BLAKE2b-256 checksum
How to use checksums
cb0800f094cbd4b3bd1e0924bc546c7d7995179c759061b02211e087e3ee1ae1
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 20, 2026.

Transparency log

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

Download URL aiollm_openai-0.15.0-py3-none-any.whl
Size 131.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a165f5695d240985edb8af3bef633b1424279f6592dc1e67a2562c307eabe9a
BLAKE2b-256 checksum
How to use checksums
62ecdf27abd53c2ae61a9de1d2988ef58919acc8ac98f38dd8cb7ecb43091eda
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 20, 2026.

Transparency log

Security for aiollm-openai 0.15.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.15.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 20, 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