Official Python SDK for the apiz.ai AI generation platform
Project description
apiz (Python)
Official Python SDK for the apiz.ai AI generation platform.
Status: Phase 1B scaffolding. Stub
Apiz/AsyncApizonly. Real HTTP client, resources and helpers arrive in Phase 3B.
Install
pip install apiz
Usage (preview)
from apiz import Apiz, AsyncApiz
# Sync
client = Apiz() # reads APIZ_API_KEY from env
task = client.tasks.create(model="fal-ai/flux-2/flash", params={"prompt": "a cat"})
result = client.tasks.wait_for(task.task_id)
# Async
import asyncio
async def main():
async with AsyncApiz() as client:
out = await client.generate(
model="wan/v2.6/image-to-video",
prompt="camera zooms in",
image_url="https://...",
)
asyncio.run(main())
Environment variables
| Var | Default | Purpose |
|---|---|---|
APIZ_API_KEY |
(none) | Bearer token. Get one at https://apiz.ai/#/v2/api-keys |
APIZ_BASE_URL |
https://api.apiz.ai |
Override backend |
APIZ_TIMEOUT |
60 |
Per-request timeout in seconds |
The legacy XSKILL_API_KEY env var is also accepted.
Development
uv venv
uv pip install -e ".[dev]"
uv run pytest # mock-only suite
uv run pytest -m e2e # live backend (requires APIZ_TEST_API_KEY)
uv run ruff check .
uv run mypy src
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
apiz-0.2.0.tar.gz
(24.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
apiz-0.2.0-py3-none-any.whl
(22.4 kB
view details)
File details
Details for the file apiz-0.2.0.tar.gz.
File metadata
- Download URL: apiz-0.2.0.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afb255144b6dbc3ec1bfd8fad24d7ee3ad9433c978ee5d386c9302f8e2cc0b22
|
|
| MD5 |
ce04d200e79749c64d7115a2ae164ff2
|
|
| BLAKE2b-256 |
90e671370bedd5972c7d1186c4161c74b567ba2ac6663b30ce7a5a3fa8940919
|
File details
Details for the file apiz-0.2.0-py3-none-any.whl.
File metadata
- Download URL: apiz-0.2.0-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e49fe4bd5e6de4960d0aac69d941ce20c796b1c204d1c1850729f988a2bce58a
|
|
| MD5 |
114ce44d5552fe2ea34ad4675d3e5ccd
|
|
| BLAKE2b-256 |
d88c2f633b2baf86b8323e4728664601927730dd2525a0b5ae0a65b8262bb370
|