v2.5.0
OpenAI API Gateway SDK
Official SDKs for building applications with OpenAI API Gateway. Type-safe, well-documented, and production-ready.
Official SDKs
Python
openai-gatewaypip install openai-gateway
Node.js
@openai/gatewaynpm install @openai/gateway
TypeScript
@openai/gateway-tsnpm install @openai/gateway-ts
Go
github.com/openai/gateway-gogo get github.com/openai/gateway-go
Rust
openai-gatewaycargo add openai-gateway
Java
com.openai:gateway<dependency>...</dependency>
Terminal โ zsh
$
pip install openai-gateway
Collecting openai-gateway
Downloading openai_gateway-2.5.0-py3-none-any.whl (45 kB)
Installing collected packages: openai-gateway
Successfully installed openai-gateway-2.5.0
$
python -c "import openai_gateway; print('Ready!')"
Ready!
SDK Features
Auto-Retry
Built-in exponential backoff with configurable retry policies
Type Safety
Full TypeScript definitions and Python type hints
Streaming
First-class support for SSE streaming responses
Testing Utils
Mock servers and test fixtures for unit testing
Related Resources