Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Python Installation

Install

pip install openai-oxide
# or
uv pip install openai-oxide
# or
uv add openai-oxide

No Rust toolchain required — prebuilt wheels available.

Setup

from openai_oxide import Client

# Uses OPENAI_API_KEY from environment
client = Client()

# Explicit key
client = Client("sk-...")

Available Methods

MethodDescription
await client.create(model, input)Basic request
await client.create_stream(model, input)Streaming
await client.create_structured(model, input, name, schema)Structured output
await client.create_with_tools(model, input, tools)Function calling

PyPI Package

pypi.org/project/openai-oxide