Skip to main content

AIOZ AI SDK for Python

Python client library for the AIOZ AI API. Auto-generated from the Swagger 2.0 specification with typed Pydantic v2 models.

Installation

pip install aiozai-sdk

Quick Start

from aiozai_sdk import AiozAIClient

client = AiozAIClient(api_key="your-api-key")

# Access services
result = client.models.model.post_model_list(input={...})

Error Handling

from aiozai_sdk import AiozAPIError

try:
    result = client.models.model.get_model_by_id(id="model-id")
except AiozAPIError as e:
    print(f"[{e.status_code}] {e.message}{e.method} {e.endpoint}")

Configuration

from aiozai_sdk import AiozAIClient, RetryConfig

client = AiozAIClient(
    api_key="your-api-key",
    base_url="https://api.aiozai.network/api/v1",
    timeout=60.0,
    retry_config=RetryConfig(max_retries=5, base_delay=2.0, max_delay=60.0),
)

Service Groups

Service Access Description Reference
Collections client.collections Collection management docs/collections.md
Competitions client.competitions Competitions & submissions docs/competitions.md
Core client.core Core endpoints docs/core.md
Datasets client.datasets Dataset management docs/datasets.md
Discussions client.discussions Discussions & comments docs/discussions.md
Models client.models Model management docs/models.md
Organizations client.organizations Organization management docs/organizations.md
Public client.public Public endpoints (no auth) docs/public.md
Repositories client.repositories Repository operations docs/repositories.md
Storage client.storage Storage & uploads docs/storage.md
Tasks client.Tasks() Task management docs/tasks.md
Users client.users User management docs/users.md

Requirements

  • Python 3.9+
  • pydantic >= 2.0
  • urllib3 >= 2.0
  • tenacity >= 8.0

License

Apache 2.0


SDK Usage Guide

Authentication Setup

Initialize the client once with your API key and reuse it across all calls:

import os
from aiozai_sdk import AiozAIClient

client = AiozAIClient(api_key=os.environ["AIOZ_AI_API_KEY"])

# Use client.models, client.datasets, etc.

Obtain your API key from the AIOZ AI dashboard.

Common Response Types

These types appear in error responses across all endpoints.

FailResponse (400 Bad Request)

Field Type Description
message string Human-readable error message
status string fail

ErrorResponse (500 Internal Server Error)

Field Type Description
message string Internal error message
status string error

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiozai_sdk-1.0.10.tar.gz (138.0 kB view details)

Uploaded Source

Built Distribution

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

aiozai_sdk-1.0.10-py3-none-any.whl (526.7 kB view details)

Uploaded Python 3

File details

Details for the file aiozai_sdk-1.0.10.tar.gz.

File metadata

  • Download URL: aiozai_sdk-1.0.10.tar.gz
  • Upload date:
  • Size: 138.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for aiozai_sdk-1.0.10.tar.gz
Algorithm Hash digest
SHA256 b386e473cf4acdd8111ebf1852ca20b81333be7ef85bbb85f30e353951f894b1
MD5 90bb4615fa78bcf5c8f87cae665c2011
BLAKE2b-256 44e044c09219a3fcda9c16cecb816678c569d3ddbdbcb6d81f50ffc2dcd9aeb6

See more details on using hashes here.

File details

Details for the file aiozai_sdk-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: aiozai_sdk-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 526.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for aiozai_sdk-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 53b8f38d5da4e4402517a4862f3f0d387da8d248c26eae0f2f54ae3b8e75087f
MD5 6f149490e191b1a9f2b7acec71e7d16d
BLAKE2b-256 c451a1d35eb5d1584012145fdce169dc36073545ef47f117fb6ff50efd8fd40e

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.11

2 files

This release

1.0.10 This release

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page