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 | |
|---|---|---|---|
| langchain_openzoo-0.1.0.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_openzoo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|