langchain-openzoo
LangChain integration for OpenZoo — an OpenAI-compatible inference endpoint with no signup: any API key value works and billing happens per call via x402 or card.
Installation
pip install -U langchain-openzoo
No API key is required. Optionally:
export OPENZOO_API_KEY=sk-openzoo # any value works; useful for tagging calls
export OPENZOO_BASE_URL=http://localhost:8402/v1 # route through a local `npx openzoo` gateway
Chat model
ChatOpenZoo is a thin subclass of ChatOpenAI pointed at https://api.openzoo.fun/v1. Everything ChatOpenAI supports (streaming, tool calling, structured output, async) works the same way.
from langchain_openzoo import ChatOpenZoo
llm = ChatOpenZoo(model="z-ai/glm-5.3-flash")
llm.invoke("Sing about zebras") # note: billed per call
With parameters:
llm = ChatOpenZoo(
model="z-ai/glm-5.3-flash",
temperature=0.2,
max_tokens=512,
# api_key="sk-anything", # optional
# base_url="http://localhost:8402/v1", # optional local gateway
)
Browse the free model catalog at https://api.openzoo.fun/v1/models — model ids look like z-ai/glm-5.3-flash.
Development
python -m venv venv && source venv/bin/activate
pip install -e . pytest
pytest
The tests only cover instantiation and configuration — no network calls are made.
Metadata
Release files for langchain-openzoo 0.1.0
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 |
|---|---|---|---|---|
| langchain_openzoo-0.1.0.tar.gz | 4.4 kB | Without provenance | Details for langchain_openzoo-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_openzoo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_openzoo-0.1.0-py3-none-any.whl |
Total release size: 8.8 kB
Release files / langchain_openzoo-0.1.0.tar.gz
| Download URL | langchain_openzoo-0.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98e7a7eaf48d6f9fd33fca2e495449f5b88941ff134ffa1218236ca6af5ee2fd
|
|
BLAKE2b-256 checksum How to use checksums |
c253baeeb6f9190dfa2e312edbfb7f9a2a871ba1822ef1038b5e6da267b58eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / langchain_openzoo-0.1.0-py3-none-any.whl
| Download URL | langchain_openzoo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91fc7ce480ec6fe2e2fce285f3d4fd1ce723494d693f8dd251ea78e28112e08a
|
|
BLAKE2b-256 checksum How to use checksums |
f08247d57da2278833586120649e8f6c441c4b6b25548ff2d1cf1f4b6959b54d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for langchain-openzoo 0.1.0
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.