langchain-kavel
A LangChain tool that generates and edits images with Kavel AI, with no API key needed to start.
pip install langchain-kavel
from langchain_kavel import KavelImageGenerator
tool = KavelImageGenerator()
url = tool.invoke({"prompt": "matte black ceramic mug on pale oak, soft window light",
"aspect_ratio": "16:9"})
# https://cdn.kavel.ai/uploads/kie/image/....webp
Give it to an agent like any other tool:
from langchain.agents import create_agent
agent = create_agent("openai:gpt-5-mini", tools=[KavelImageGenerator()])
agent.invoke({"messages": [{"role": "user", "content": "Make a cover image for a post about sourdough"}]})
Free tier, then your account
Without a key the tool runs on Kavel's free anonymous tier. On 2026-10-02 a fresh client id was granted 5 credits and one generated image spent all five; free output is 1K and watermarked. When the allowance is spent, the tool returns a short message the agent can act on instead of raising.
Pass KavelImageGenerator(api_key=...) or set KAVEL_API_KEY with a key from
kavel.ai/settings/apikeys
to run on your account. That also enables editing (image_url) and model= for any image model on
your plan.
License
MIT.
Metadata
Release files for langchain-kavel 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_kavel-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for langchain_kavel-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_kavel-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_kavel-0.1.0-py3-none-any.whl |
Total release size: 7.4 kB
Release files / langchain_kavel-0.1.0.tar.gz
| Download URL | langchain_kavel-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67306087fd1e5571ec40bf291e8c331a400dd2842b46e4e5a1f5aefaf5adc3b7
|
|
BLAKE2b-256 checksum How to use checksums |
cc7c9034d25b005cf67ff8bf27ca392769fba8699bd87ce0591baf0026e42ed6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / langchain_kavel-0.1.0-py3-none-any.whl
| Download URL | langchain_kavel-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d631cfd43551f287646df78515a4e8dfdf91b4f3bb7a1f1db55f9e11c35a3a1
|
|
BLAKE2b-256 checksum How to use checksums |
fca92db98d7a9f9fdcd9db7515cb1e6b95ffe1068cbf5b7ec2771a2f9fa0929f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Security for langchain-kavel 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.