# DARKOZA Python SDK

Version 0.1.0 · API v1 · Python 3.10+ · zero runtime dependencies. Install from the published source archive with pip install ./darkoza-sdk-0.1.0.tar.gz.

Example:

    from darkoza import DarkozaClient
    client = DarkozaClient(api_key="dk_live_...")
    result = client.chat(
        messages=[{"role": "user", "content": "Explain TCP versus QUIC."}],
        task="reasoning",
    )
    print(result["answer"])
    print(client.usage())

Create a key once with DarkozaClient.create_key(name="my-service"). Store both
api_key and management_token in a secret manager. The management token can
revoke only the key created in the same response. Never commit credentials.

Supported tasks: chat, quick, reasoning, artifact, coding, imagination,
goal_plan, and analysis. v1 accepts text messages with user and assistant roles.
Streaming and multimodal inputs are not included in SDK 0.1.0.
