For chat / embeddings / images / STT / TTS, use the `openai` package with `base_url='https://api.aigateway.sh/v1'` — AIgateway is drop-in. The `aigateway` package is the typed wrapper for the parts OpenAI doesn't model: long-running jobs, sub-account billing, evals, replays, signed file URLs, and webhook verification.
Python 3.9+. Pure-Python, single dependency on httpx. PyPI distribution name is aigateway-py; the import path is aigateway.
Long-running modalities (video, music, 3D) return a Job. Wait inline or attach a webhook_url and forget about it.
One call returns a scoped key with its own spend cap and analytics.
HMAC-SHA256 over `t.body`. Helper raises if the signature is bad or stale.
Same surface, async/await flavored.