alloy-client
A lightweight Python client for the Alloy server.
Install
pip install alloyai-client
For local development:
pip install -e .
Quick start
from alloy_client import AlloyClient
client = AlloyClient("http://127.0.0.1:8000")
# Images
result = client.image(model_id="qwen-image", prompt="a cinematic portrait")
with open("output.png", "wb") as f:
f.write(result["images"][0])
# Chat (non-streaming)
response = client.chat(
model="qwen3-medium",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response["message"]["content"])
# Audio (non-streaming)
audio = client.audio(
model_id="qwen3-tts-base",
text="Hello from Alloy",
)
print(audio["sample_rate"], len(audio["outputs"]))
Types
The client re-exports minimal Ollama-style types so you can annotate inputs without
pulling in the ollama dependency:
from alloy_client import Message, JsonSchemaValue
Notes
- Streaming is supported for
/imageonly. /chatand/audioare non-streaming for now.
Metadata
Release files for alloyai-client 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| alloyai_client-0.1.4.tar.gz | 5.9 kB | Without provenance | Details for alloyai_client-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alloyai_client-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for alloyai_client-0.1.4-py3-none-any.whl |
Total release size: 13.0 kB
Release files / alloyai_client-0.1.4.tar.gz
| Download URL | alloyai_client-0.1.4.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f28561742ed1bf80511f0e11eb37f35210adc650a22222328e24240efbbbdc5
|
|
BLAKE2b-256 checksum How to use checksums |
ddd20a0bd0a73d5456481e5883eeae02b7c6e5f2cd1b965578154e119dd36d94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / alloyai_client-0.1.4-py3-none-any.whl
| Download URL | alloyai_client-0.1.4-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fae05bca04a9842856ccaca2b37d0de8d52453769803e936d4ab86dcdd276ed1
|
|
BLAKE2b-256 checksum How to use checksums |
6028505fabfd3a6f51522faf7b7e21a760bcfd445029e682806fef01c11bcfc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for alloyai-client 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.