Install the published phaseo package from PyPI.
The Phaseo Python SDK currently provides a synchronous client for the Phaseo Gateway API.
Features
- Typed request models generated from the OpenAPI spec.
- Built-in helpers for chat, responses, messages, images, audio, embeddings, moderations, files, batches, generations, and async video jobs.
- Streaming helpers for text, responses, and messages (
stream_* iterators).
- Control-plane helpers such as models, endpoints, organisations, pricing discovery/calculation, API-key lifecycle, workspace lifecycle, current-key inspection, health, providers, credits, activity, and analytics.
Quick example
What’s included
Phaseo client
chat.completions.create(...) and responses.create(...) compatibility helpers
- Resource helpers such as
client.batches, client.videos, client.files, and client.async_jobs
- Async-job websocket URL helpers for batch and video lifecycle streams
- Model lifecycle helpers such as
get_model_deprecation_info(...) and validate_model(...)
- Streaming iterators for text, responses, and messages
- Generated request/response models in
phaseo.models
Last modified on July 26, 2026