Skip to main content

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 / AsyncApiz only. 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://www.xskill.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


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.1.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apiz-0.1.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file apiz-0.1.0.tar.gz.

File metadata

  • Download URL: apiz-0.1.0.tar.gz
  • Upload date:
  • Size: 21.4 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

Hashes for apiz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 63e8ef6214ea8b7eca118fccfc9f3d2bd5c789f7728ac69f83295bb536d73e70
MD5 8568073d8254cf333a592a43dd6a1408
BLAKE2b-256 c41ccb3a31d7b02d4e996c6332e8d953b7bd4a136dc3ef2c41ffe5be42e637d2

See more details on using hashes here.

File details

Details for the file apiz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: apiz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 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

Hashes for apiz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95febc7618e1a4e9da0ae256deac7c431fef524df43401ab170bbb6ebb318e17
MD5 79b6b9de9b615b8c8cfd5b994c1d6876
BLAKE2b-256 106a4375422a86accd0ee2dde4442b2a76938c0324363c6d9042593fe0e6fdb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page