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

openai-oxide

A high-performance, feature-complete OpenAI client for Rust, Node.js, and Python.

openai-oxide implements the full Responses API, Chat Completions, and 20+ other endpoints with performance primitives like persistent WebSockets, hedged requests, and early-parsing for function calls.

Why openai-oxide?

  • Zero-Overhead Streaming — Custom zero-copy SSE parser, TTFT ~670ms
  • WebSocket Mode — Persistent wss:// connections, 37% faster agent loops
  • Stream FC Early Parse — Execute tools ~400ms before response finishes
  • SIMD JSON — Opt-in AVX2/NEON for microsecond parsing
  • Hedged Requests — 50-96% P99 tail latency reduction
  • WASM First-Class — Full streaming in Cloudflare Workers and browsers

Packages

PackageRegistryInstall
openai-oxidecrates.iocargo add openai-oxide
openai-oxidenpmnpm install openai-oxide
openai-oxidePyPIpip install openai-oxide

OpenAI Compatibility

Parameter names match the official Python SDK exactly. If the OpenAI docs show model="gpt-5.4", use .model("gpt-5.4") in Rust or {model: "gpt-5.4"} in Node.js.

See the OpenAI Docs Mapping for a complete cross-reference.